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


.card {
    display: block; 
    /* margin-bottom: 2%; */
    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-card img{
    width: 100%;
    height: 290px;
    margin-top: 1%;
    object-fit:cover; 
    transition: all .25s ease;
}

.img-card {
    width: 90%;
    height:290px;
    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
}

.card-text{
    text-indent: 1.5em;
}
 
.card2{
    margin-bottom: 4%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;

}
.img-card1 {
    width: 90%;
    height:180px;
    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;
}
.img-card1 img{
    width: 100%;
    height: 180px;
    object-fit:cover; 
    transition: all .25s ease;
} 

@media only screen and (min-width:321px) and (max-width:480px){
    .card {
        margin-bottom: 5%;
    }
    .card2{
        margin-top: 4%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    
    }
}

.box2{
    margin-top: 2%;
}

.imgoffice{
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.titleoffice{
    text-align: center;
    margin-top:3%;
    font-weight:600;
    font-size: 1em;
}

.titleoffice2{
    text-align: center;
    margin-top: 5%;
}
.imgoffice1{
    width: 50%;
}
.imgoffice{
    width: 100%;
}

.cardoffice{
    box-shadow: none !important; 
    transition: none !important; 
}