/* @import url('https://fonts.googleapis.com/css2?family=Prompt:wght@200;300;400&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Prompt:wght@200;300;400;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;   
    font-family: 'Prompt', sans-serif;
    /* font-family: 'Montserrat', sans-serif; */
    font-size: .9rem;
}

/* html {
    font-size: calc(60% + 0.8vmin);
} */

html, body {
    /* width: 100%;
    height: 100%; */
    font-size: calc(60% + 0.8vmin);
    overflow-x: hidden;
    /* overflow: hidden; */
}


/* web */
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}

nav {
    background: rgba(0, 0, 0, 0.1);
}

.nav-wrapper  {
    /* padding 1rem รอบด้าน */
    /* padding: 1rem; */
    position: relative;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 0.5rem 6.25rem 0.5rem;
    text-transform: uppercase;
    /* font-weight: 300; */
    /* background: rgba(0, 0, 0, 0.1); */
    /* background: rgba(4, 88, 141, 0.4); */

    backdrop-filter: blur(50px);

}


.menu  {
    display: flex;
    /* padding: 1rem 1rem; */

}
.menu li{
    margin: 0.2rem 0.9rem;
    position: relative;
}
/* .menu li:first-child{ 
    margin-left: 0; */
    /* font-family: 'IBM Plex Sans Thai', sans-serif; */
    /* font-size: 0.25rem;
} */
/* .menu li:last-child{ 
    margin-right: 0;
    font-size: 0.25rem;
} */


.menu li a:hover {
    /* display:inline-block; */
    /* position: absolute; */
    border-bottom:0.1rem solid #279839;
    /* padding-bottom:0.1rem; */
}

.drop_menu {
    display: none;
}
.menu li:hover .drop_menu {
    display: block;
    position: absolute;
    width: 18rem; 
    left: -0.8rem;
    top: 100%;
    text-transform: capitalize;
    font-weight: 200;
    color: #fffffff5;
    /* border-bottom:0.1rem solid #fff; */
    /* background-color: violet; */
    /* margin-top: 0.2rem ; */
    margin-left: 1rem;
}
.menu li:hover .drop_menu ul {
    display: block;
    /* margin: 10px; */
}
.menu li:hover .drop_menu ul li {
    padding-top: 0.625rem;
    padding-left: 20px;
}



/* box */
.box {
    
    /* position: relative; */
    width: 100%;
    padding-left: 0.9rem;
    /* แนวตั้ง */
    justify-content: center;
    min-height: 90vh;
    color: #fff;
    /* text-align: center; */
}

.box video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.contain {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    /* gap: 2rem; */
    padding-left: 4rem;
    padding-top: 13%;
    /* margin-top: 12%; */
    
}
.contain h1 {
    letter-spacing: 0.125rem;
    /* line-height: 1; */
    font-weight: 80;
    font-style: normal;
    font-size: 2.1rem;
    text-align: left;
    text-transform: uppercase;
}
.contain h1 span{
    font-size: 2.1rem;
    font-weight: 600;

}
.contain p {
    font-size: 0.9rem;
    font-weight: 0.50;
    opacity: 0.7;
    width: 35%;
}



/* @media (max-width: 688px) {
    html {
        font-size: 80%;
    }
    .contain {
        text-align: center;
        align-items: center;
        padding-left: 1rem;
        padding-top: 30%;
    }

    .box {

        min-height: 8คvh;
    }
} */

/* Our Business */


.container2 {
    /* max-width: 1140px; */
    /* width: 100%; */
    /* margin: 0.1rem auto; */
    background-size: cover;
    padding: 2rem 0;
}
.blog-con {
    display: flex;
    width: 90%;
    margin: 0.5rem auto;
}
.blog-info {
    width: 100%;
    padding: 3rem 8.5rem 1rem 8.5rem;
    color: #252525b7;
}

.blog-info h2 {
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: 800;
    color: #1C4A81;
    letter-spacing: .063rem; 
    text-transform: uppercase;

    display:inline-block;
    border-bottom:0.625rem solid #279839;
    padding-bottom:0.3rem;
}
.blog-info p {
    padding: 1rem 0;
    font-size: 1.1rem;
}


/* Hero */
.hero {
    background-color: #F9F9F9;
}

.hero-title h2 {
    margin: 4rem 8rem 1rem 8rem;
    font-size: 2rem;
    font-weight: 800;
    color: #1C4A81;
    letter-spacing: .063rem; 
    text-transform: uppercase;

    display:inline-block;
    border-bottom:0.625rem solid #279839;
    padding-bottom:0.3rem;
}
.hero-con {
    display: flex;
    width: 90%;
    margin: 0.5rem auto;
    padding-bottom: 2rem;
    /* background-color: #f0f0f0; */
}

.hero-info {
    width: 100%;
    margin-top:1rem;
    padding: 0rem 3rem;
    color: #252525b7;
}

.hero-info p {
    font-size: 1.1rem;
}

/* .hero-info h2 {
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: 800;
    color: #1C4A81;
    letter-spacing: .063rem; 
    text-transform: uppercase;

    display:inline-block;
    border-bottom:0.625rem solid #279839;
    padding-bottom:0.3rem;

} */
/* .hero-info p {
    margin:  0;
} */

.hero-info .hero-btn {
    /*ปุ่มแบบ inline จะไม่สามารถใส่ Padding ได้ */
    display: inline-block;
    background-color: orange;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}
.hero-img img {
    padding: 0rem 2rem;
    width: 100%;
}

/* about */
.about {
    position: relative;
    text-align: center;
    color: #fff;
    /* border-top: 8px solid #279839; */
    background-image: url("img/about_bg.png");
    background-size: cover;
    height: 31rem;
  }

  .ready {
    position: relative;
    text-align: center;
    color: #fff;
    /* border-top: 8px solid #279839; */
    background-image: url("img/ready_bg.png");
    background-size: cover;
    height: 35rem;
  }


  .toppage_detail {  
    /*position: relative; */
    width: 100%;
    padding-left: 0.9rem;
    /* แนวตั้ง */
    justify-content: center;
    min-height: 20vh;
    color: #fff;
    text-align: center;
    color: #fff;
  }
  .toppage_detail img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 35%;
    object-fit: cover;
    z-index: -1;
    /*opacity: 0.9;
    filter: alpha(opacity=90);*/
  }
  .contain_detail {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    padding-top: 4%; 
  }
  .contain_detail h1 {
    letter-spacing: 0.125rem;
    /* line-height: 1; */
    font-weight: bold;
    font-style: normal;
    font-size: 2.1rem;
    text-transform: uppercase;
  }

  .blog-content {
    width: 100%;
    padding: 3rem 8.5rem 1rem 8.5rem;
    color: #252525b7;
  }

  .blog-content h2 {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1C4A81;
    letter-spacing: .063rem; 
    text-transform: uppercase;

    display:inline-block;
    border-bottom:0.125rem solid #279839;
    padding-bottom:0.3rem;
  }
  .blog-content p {
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  .blog-condetail {
    /* align-items: center; */
    width: 100%;
    margin: 1.5rem 1rem; 
    justify-content: center;
  }
  .blog-condetail img {
    text-align: center;
    padding-bottom: 2rem;
  }
  .blog-condetail h5 {
    color: #252525b7;
    font-size: 1.125rem;
    font-weight: 400;
  }
  .blog-condetail h5 b{
    color: #1C4A81;
    font-size: 1.125rem;
    font-weight: 800;
  }
  .blog-condetail b{
    color: #252525b7;
    font-size: 1.125rem;
    font-weight: 500;
  }
  .blog-condetail p {
    padding: 2rem 0;
    color: #252525b7;
    font-size: 1.1rem;
    font-weight: 300;
    overflow: hidden;
    text-overflow: clip;
  }
  .blog-condetail p .hightl{
    padding: 2rem 0;
    color: #1C4A81;
    font-size: 1.1rem;
    font-weight: 300;
    overflow: hidden;
    text-overflow: clip;
  }
  .blog-condetail .p2 {
    padding: .5rem 0  2rem 0;
    color: #252525b7;
    font-size: 1.1rem;
    font-weight: 300;
    overflow: hidden;
    text-overflow: clip;
  }
  .blog-condetail a {
    padding: 2rem 0;
    color: #1C4A81;
    font-size: 1.1rem;
    font-weight: 300;
  }
  .blog-condetail a:hover {
    padding: 2rem 0;
    color: #1C4A81;
    font-size: 1.1rem;
    font-weight: 300;
    text-decoration: underline;
  }


  .about  img {
    /* position: absolute;
    /* left: 0;
    top: 0; */
    /* width: 100%;
    height: auto; */
    object-fit: cover;
    z-index: -1; 
}

.about-con {
    display: flex;
    width: 90%;
    /* margin: 2.5rem auto; */

    /* background-color: #f0f0f0; */
}
.about-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: cover;
}
.about-info h2{
    margin: 2rem 0;
    font-weight: 600;
    /* font-style: normal; */
    font-size: 2.3rem;
    /* text-align: left; */
    text-transform: uppercase;

    display:inline-block;
    border-bottom: 0.625rem solid #279839;
    padding-bottom: 0.625rem;
}
.about-info p {
    /* width: 536px; */
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 0.50;
    /* opacity: 0.7; */
    text-align: left;
    line-height: 1.8;
}
.about-info .about-btn {
    margin-top: 3rem;
    /*ปุ่มแบบ inline จะไม่สามารถใส่ Padding ได้ */
    display: inline-block;
    /* background-color: orange; */
    color: #fff;
    padding: .7rem 4rem;
    border-color: #fff;
    border-style: solid;
    border-width: thin;
    /* border-radius: 5px; */
    text-decoration: none;
}

.button3 {
    background-color: none; 
    color: #fff; 
    border: 1px solid #fff;
  }
  
.button3:hover {
    background-color: #4FB073;
    color: white;
    border: none ;
  }

.about-bar {
    /* display: flex;
    justify-content: center;
    color: #279839; */
    
    border: 3px solid #279839;
    /* border-radius: 5px; */
}

/* footer */
.footer-top {
    /* margin-top: 2rem; */
    padding: 3rem;
    background-color: #1C4A81;
    color: #fff;
    line-height: 1.8;

}

.footer-top-con {
    display: grid;
    /* grid-template-columns: 1.5fr 1fr 1fr 1fr; */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: 2rem;
}

.footer-top-item-con {
    display: flex;
    /* margin: 1rem 0; */
    
}

.footer-top-item h4 {
    font-size: 0.8rem;
    font-weight: 200;
    opacity: 0.5;
    text-transform: uppercase;

}
.footer-top-item p {
    font-size: 1rem;
    font-weight: 700;
}


/* แบบรวม */
.footer-top-item:nth-child(2) h4 ,
.footer-top-item:nth-child(3) h4 {
    margin-bottom: 1rem;   
}
.foot_logo img {
    width: 10rem;
}
.footer-bottom {
    
    background-color: #1C4A81;
    /* padding: 1rem; */
    /* เพื่อให้มันต่อกัน */
    display: flex;
    /* เพื่อให้ดัน Logo และ เมนูให้อยู่ชิดซ้ายและขวา */
    justify-content:  space-between;
    /* จัดให้อยู่กึ่งกลาง ในแนวตั้ง */
    align-items: center;
    /* height: 100px; */
    /* อ้างอิงกับ Hamberger menu*/
    position: relative;
    padding-bottom: 2rem;
}

.footer-bottom .social {
    margin: 0 2.5rem;
    white-space: 2rem ;

}

.footer-bottom .copy {
    color: #fff;
    margin-right: 5rem;
    font-size: 1.5rem;
    opacity: 50%;

}
.footer-bottom .copy h4{
    color: #fff;
    margin-right: 1rem;
    font-size: 1rem;

}

/* Hamburger Menu */
.ham-menu {
    display: inline-block;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 2rem;
  }
  
  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
  }
  
  /* Rotate first bar */
  .change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
  /* Fade out the second bar */
  .change .bar2 {opacity: 0;}
  
  /* Rotate last bar */
  .change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }

  .menu-active {
    display: block !important;
  }


@media only screen and (min-width: 678px)  {
    .ham-menu {
        display: none;
    }
}

@media only screen and (max-width: 678px)  { /*Hamburger Menu*/
    .menu {
        display: none;
    }
    .nav-wrapper {
        padding: 1rem;
        height: auto;
        flex-direction: column;
        padding: 1rem 0;
        align-items: flex-start;
    }
    .nav-wrapper img {
        padding-left: 1rem;
    }
    .menu {
        width: 100%;
    }
    .menu li {
        padding: .5rem 0;
        padding-left: 1rem;
        position: relative; 
    }
    .menu li:hover .drop_menu {
        display:contents; 
        position: absolute;
        width: 100%; 
        height: auto;
        left: -0.8rem;
        top: 100%;
        text-transform: capitalize;
        font-weight: 200;
        color: #fffffff5;
        /* border-bottom:0.1rem solid #fff; */
        /* background-color: violet; */
        /* margin-top: 0.2rem ; */
        margin-left: 1rem;
    }
}


/* Responsive */
@media sereen and (max-width: 1006px) {
    .contain p {
        width: 90%
    }
}

@media screen and (max-width:700px){
    .blog .blog-info {
        padding: 1rem 4rem;
    }
}

@media screen and (max-width:678px){
/* @media (max-width: 678px), 
       (max-width: 391px) { */

    html {
        font-size: 80%;
    }
    .contain {
        text-align: center;
        align-items: center;
        padding-left: 1rem;
        padding-top: 30%;
    }

    .box {

        min-height: 80vh;
    }
    
    nav{
        flex-direction: column;
    }
    nav .logo{
        margin-bottom: 15px;
    }
    nav .menu li{
        margin: 0 7px
    }

    .about-info p {
        width: 25rem;
    }
    .hero-con {
        display: flex;
        flex-direction: column;
        width: 90%;
        margin: 0.5rem auto;
        padding-bottom: 2rem;
        /* background-color: #f0f0f0; */
    }
    .hero-title h2 {
        margin: 4rem 8rem 1rem 5rem;
        
    }
    .hero-img img {
        padding: 3rem 2rem;
        width: 100%;
    }


}


/* @media (max-width:500px){ */

    

/* } */







