*{
    
    padding: 0;
    margin: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai', sans-serif;
}

/* หัวข้อทุกหน้า */
div.title{
    text-align: center;
    margin-top: 2%;
    font-weight: bolder;
}


/* footer */
footer{
    clear: both;
    background-color: #937DC2 !important;
    background-color: #000000 !important;
    color: #ffffff;
    padding: 2%;
}
.logofooter img{
    width: 12em;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 3%;
}

footer>.container>h2{
    text-align: center;
}

.textfooter{
    margin-top: 2%;
    display: flex;
    flex-wrap: wrap;
    
}
.col>.textfooter1{
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.imgfooter>a>img{
    width: 2em;
    margin: 1% auto;
}



.col{
    text-align: center;
 
}
.copyright{
    text-align: center;
    margin-top: 2%;
}
/* ------------- */




.img{
    width: 80%;
    border-radius: 2px;
    float: left;
}

/* -------------------------------
หน้าcontact */
form>input{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-indent: 1em;
}
form>textarea{
    width: 100%;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-indent: 1em;
}
.contact-form{
    padding: 1%;
    padding-top: 2%;
}
button.submit{
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
/* -------------------------
จบหน้า contact */



.card:hover {
    box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2);
}


.cardhome {
  
    display: block; 
    line-height: 1.42857143;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16); 
    transition: box-shadow .25s; 
}

/* .ให้รูปขนาดเท่ากล่อง */
.img-cardhome img{
    width: 100%;
    height: 350px;
    margin-top: 1%;
    object-fit:cover; 
    transition: all .25s ease;
}

.img-cardhome {
    width: 90%;
    height:350px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5%;
    border-top-left-radius:2px;
    border-top-right-radius:2px;
    display:block;
    overflow: hidden;
}
a:link{
    color: #000000;
    text-decoration: none;
}
a:hover{
    color: #000000 !important;
    text-decoration: none !important;
}
a:visited{
    color: #000000;
    text-decoration: none;
}
.card-read-more {
    border-top: 1px solid #D4D4D4;
  }
.card-read-more button a {
    text-decoration: none !important;
    font-weight:600;
    text-transform: uppercase
}


/* incard */
.card-text{
    text-indent: 1.5em;
    font-size: 1em;
}

.card-title {
    margin-top:0px;
    font-weight:600;
    font-size: 1.2em;
}
/* end incard */
.cardhome2{
    margin-bottom: 4%;
    display: block; 
    line-height: 1.42857143;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16); 
    transition: box-shadow .25s; 
}

.imgcardhome1 {
    width: 90%;
    height:200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8%;
    margin-bottom: 8%;
    border-top-left-radius:2px;
    border-top-right-radius:2px;
    display:block;
    overflow: hidden;
}

.imgcardhome1 img{
    margin-top: 5%;
    margin-bottom: 5%;
    width: 100%;
    height: 200px;
    object-fit:cover; 
    transition: all .25s ease;
} 



/* css picturehome */
header{
    margin-top: 4%;
    background-image: url(../picture/AdobeStock_339688088.jpeg);
    height: 70vh;
    width: 100%;
    -webkit-background-size:cover ;
    background-size: cover;
    background-position: center;
    position: relative;
}
/* end css picturehome */


.rewardhome1{
    position: absolute;
    width: 15%;
    margin-top: 3%;
    margin-left: 2%;
}
.rewardhome2{
    position: absolute;
    width: 20%;
    margin-top: 4%;
    margin-left: 2%;
}

.titletrends{
    margin-top: 2%;
    font-weight: 700;
    text-align: center;
}
.view>.btn:hover{
    background-color: #000000 !important;
    color: #ffffff !important;
   
}

/* ---------------
aboutus */


.imgaboutus{
    width: 100%;
    border-radius: 2px;
    
}
.breadcrumb{
    font-size: .9rem;
    margin-top: 4rem;
    background-color: white !important;
}

@media screen and (max-width:922px) {
    .col{
        width: 100%;
    }
    .title h1{
        font-size:3em;
        margin-top: 1%;
    }

}

@media screen and (max-width:576px) {
    .col{
        width: 100%;
    }
    .title iframe{
        width: 80%;
    }
    .title h1{
        font-size:2em;
        margin-top: 1%;
    }
    .rewardhome2{
        width: 12%;
     
    }

}
