body {
    /* font-family: 'Noto Sans', sans-serif; */
    font-family: 'Noto Sans Thai', sans-serif !important;
}

.text3line {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* number of lines to show */
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

#mainMenu nav>ul>li>a {
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}

.imgLogo {
    width: 120px;
}

.centerimg {
    display: flex;
    justify-content: center;
}

.imglogoSlide {
    width: 400px !important;
}

.text-logoSlide {
    font-size: 1.5em;
    margin-top: 40px;
    text-align: center;
}

.dark #mainMenu nav>ul>li>a,
#mainMenu.dark nav>ul>li>a {
    font-size: 1.2em;
    font-weight: 400;
}

.dark #mainMenu nav>ul>li>a:hover,
#mainMenu.dark nav>ul>li>a:hover {
    border-bottom: 2px solid #EC1F2F;
}

.dark #mainMenu nav>ul>li>a.active,
#mainMenu.dark nav>ul>li>a {
    border-bottom: 2px solid #EC1F2F;
}

.header-extras>ul>li>a:not(.btn) i,
.header-extras>ul>li .topbar-dropdown>.title i {
    font-size: 1.2em !important;
    width: 44.6px;
    padding: 14px;
    border: 1px solid #fff;
    border-radius: 100px;
    text-align: center;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;
}

/* .header-extras>ul>li>a:not(.btn) i:hover,
.header-extras>ul>li .topbar-dropdown>.title i:hover {
    border: 1px solid #EC1F2F;
    background-color: #EC1F2F;

} */

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgfoot {
    display: flex;
    justify-content: center;
    background-color: #000;
}

.icon-preview {
    margin-top: 20px;
}

.icon-class {
    width: 100%;
    text-align: center;
}

.textfootercenter {
    display: flex;
    justify-content: center;
}

.PtextFooter {
    text-align: center;
    width: 60%;
    color: #fff;
}

.bgrow {
    background-color: #fff;
}

.div-center {
    padding: 40px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btnSeemore {
    font-size: 1.2em;
    text-transform: uppercase;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px 10px 20px;
}

.btnSeemore:hover {
    color: #fff !important;
    background-color: #000;
}

.line-edit {
    clear: both;
    position: relative;
    width: 10%;
    margin-bottom: 40px;
    border-top: 3px solid #bababa;
    border-radius: 10px;
}

.imgconver {
    width: 100%;
    height: 490px;
    object-fit: cover;
    object-position: center center;
}

.textp {
    text-align: center;
}

.texp1 {
    color: #000;
    font-size: 1.5em;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.textp2 {
    color: #000;
    font-size: 1.3em;
}

.divtextp3 {
    display: flex;
    justify-content: center;
}

.textp3 {
    color: #000;
    font-size: 1.2em;
    width: 55%;
}

.imglogo-body {
    width: 150px;
}

.pbody-col {
    color: #000;
    font-size: 1em;
    margin-bottom: 40px;
}

/* slide-client */
.slide-item {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    padding: 0 10px;
}

.imgbg1 {
    width: 500px;
    position: absolute;
    /* ต้องกำหนด position เพื่อให้ z-index ทำงานได้ */
    z-index: -1;
    /* กำหนดให้มีค่าต่ำกว่าฉากหลังหน้า */
    right: 80px;
    top: 20px;
}

.imgbg2 {
    width: 500px;
    position: absolute;
    /* ต้องกำหนด position เพื่อให้ z-index ทำงานได้ */
    z-index: -1;
    /* กำหนดให้มีค่าต่ำกว่าฉากหลังหน้า */
    right: 1180px;
    bottom: 20px;
}

.post-image img {
    border-radius: 22px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    -webkit-border-radius: 22px;
    -moz-border-radius: 22px;
    -ms-border-radius: 22px;
    -o-border-radius: 22px;
}

.post-item.border .post-item-wrap {
    border-radius: 30px;
}

.textreader {
    text-transform: uppercase;
}

.textreader:hover {
    text-transform: uppercase;
    color: #EC1F2F;
}

.item-link {
    font-weight: 500;
    font-size: 1em;
}

.linedetai {
    margin: 20px 0;
}

.item-link:hover {
    color: #EC1F2F;
}

.portfolio-item .portfolio-description {
    top: 80% !important;
}

.tabs.tabs-clean .nav-tabs .nav-link.active {
    border: 0;
    background-color: #000;
    color: #fff;
}

.tabs.tabs-clean .nav-tabs .nav-link {
    border-radius: 30px;
    border: 1px solid #000;
    color: #000;
    margin: 10px;
    font-size: 1.2em;
    font-weight: 300;
}

.imgmat {
    /* width: 350px !important; */
    height: 400px !important;
    overflow: hidden;
    /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */

    /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
    object-fit: cover;
    /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
    object-position: center;
}

.textbranch {
    color: #000;
    font-size: 1em;
}

.text-h-branch {
    font-size: 2em;
    font-weight: 500;
    color: #000;
}

.imgbranch {
    border-radius: 30px;
    height: 320px;
    width: 100%;
    overflow: hidden;
    /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */
    /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
    object-fit: cover;
    /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
    object-position: center;
}

.bg-address {
    border-radius: 30px;
    background-color: #f5f5f5;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.p-address {
    color: #000;
    text-align: center;
    margin-left: 5px;
}

.img-address {
    width: 12px;
    height: 12px;
}

.type-img {
    border-radius: 30px;
    border: 1px solid #000;
    padding: 3px 15px;
    position: relative;
    bottom: 220px;
    left: 10px;
    background-color: #000;
    color: #fff;
}

.imgwelcome {
    border-radius: 30px;
    height: 320px !important;
    /* width: 350px !important; */
    overflow: hidden;
    /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */
    /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
    object-fit: cover;
    /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
    object-position: center;
    padding: 0 10px;
}

.imgheadcar {
    height: 356px !important;
    width: 1690px !important;
    overflow: hidden;
    /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */
    /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
    object-fit: cover;
    /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
    object-position: center;
}

.p-car {
    display: inline;
}

.p-caraddress {
    color: #000;
    text-align: center;
    /* width: 70%; */
}

/* #page-title {
  padding: 0;
} */

.textcarslide {
    text-transform: uppercase;
    color: #fff;
    font-weight: 400 !important;
    font-size: 3em !important;
    text-align: center;
}

.textcar-p-slide {
    text-transform: uppercase;
    color: #fff;
    font-weight: 300 !important;
    font-size: 2em !important;
    text-align: center;
}

.parallax-container {
    background-position: 50% 50% !important;
}

.btnbranch {
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
}

.imgslider-client {
    width: 100%;
    padding: 3px;
}

.btntype {
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid #000;
    color: #000;
    margin: 10px;
    font-size: 1.2em;
    font-weight: 300;
}

.btntype:hover {
    color: #000;
}

.btntype.active {
    color: #fff;
    background-color: #000;
}

.slide-item-new {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* CSS สำหรับ dots ใน slick carousel */
.slick-dots {
    bottom: 10px;
    list-style: none;
    text-align: center;
    padding: 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #EC1F2F;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
    background-color: #EC1F2F;
    border-color: #EC1F2F;
    /* ตัวอย่างการเปลี่ยนสีขอบเมื่อ active */
}

.portfolio-item .portfolio-description a:hover i,
.portfolio-item .grid-description a:hover i,
.portfolio-item .portfolio-links a:hover i,
.grid-item .portfolio-description a:hover i,
.grid-item .grid-description a:hover i,
.grid-item .portfolio-links a:hover i {
    background-color: #EC1F2F;
    border: #EC1F2F;
}

.flickity-page-dots .dot {
    box-shadow: inset 0 0 0 2px #EC1F2F
}

.flickity-page-dots .dot:after {
    background-color: #EC1F2F;
    box-shadow: 0 0 1px #EC1F2F;
}

.img-new-detai {
    width: 100%;
    border-radius: 30px;
}

.text-detai {
    padding-top: 20px;
    font-size: 1.5em;
    font-weight: 500;
    color: #000;
}

.text-date-detai {
    color: #BABABA;
    font-size: 0.9em;

}

.text-news-1 {
    color: #000;
    text-align: justify;
    font-size: 1.2em;
}

.sidebar .widget .post-thumbnail-list .post-thumbnail-entry>img {
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */
    /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
    object-fit: cover;
    /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
    object-position: center;
}

.portfolio-item .portfolio-image,
.portfolio-item .portfolio-video,
.portfolio-item .grid-image,
.portfolio-item .grid-video,
.portfolio-item .flickity-viewport,
.grid-item .portfolio-image,
.grid-item .portfolio-video,
.grid-item .grid-image,
.grid-item .grid-video,
.grid-item .flickity-viewport {
    border-radius: 30px;
}

.imgcar {
    border-radius: 30px;
}

.contentdetai {
    margin: 40px 0;
}

.seemoreevent {
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid #000;
    color: #000;
    margin: 10px;
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 50px;
}

.imgtype {
    border-radius: 30px;
    /* width: 240px !important; */
    height: 240px !important;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
}


.seemoreevent:hover {
    border: 1px solid #000;
    color: #fff;
    background-color: #000;
}

.margin-newevent {
    margin-bottom: 20px !important;
}

.imgService {
    margin: 10px;
}

.imgtype {
    border-radius: 30px;
    /* width: 240px !important; */
    height: 240px !important;
    overflow: hidden;
    /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */
    /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
    object-fit: cover;
    /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
    object-position: center;
}

/* size-xl*/
@media (min-width:1200px) {


    .portfolio-item .portfolio-image,
    .portfolio-item .portfolio-video,
    .portfolio-item .grid-image,
    .portfolio-item .grid-video,
    .portfolio-item .flickity-viewport,
    .grid-item .portfolio-image,
    .grid-item .portfolio-video,
    .grid-item .grid-image,
    .grid-item .grid-video,
    .grid-item .flickity-viewport {
        border-radius: 30px;
        width: 350px;
        height: 400px;
    }

    .imgcar {
        border-radius: 30px;
        width: 270px !important;
        height: 270px !important;
        overflow: hidden;
        /* เพื่อป้องกันรูปภาพเกินขอบเขตที่กำหนด */
        /* ใช้ object-fit เพื่อปรับขนาดรูปให้เต็มพื้นที่โดยไม่เสียสัดส่วน */
        object-fit: cover;
        /* ใช้ object-position เพื่อกำหนดตำแหน่งของรูป */
        object-position: center;
    }


}

/* size-lg ipad นอน*/
@media (min-width:992px) and (max-width:1199px) {
    .imgbg1 {
        right: 0;
    }

    .imgbg2 {
        left: 0;
    }

    /* .slick-slide img {
    width: 220px;
  } */
}


/* size-md ipad ตั้ง*/
@media (min-width:768px) and (max-width:991px) {

    /* .slick-slide img {
    width: 150px;
  } */
    .bg-address {
        padding: 20px;
    }

    .p-caraddress {
        font-size: 0.8em;
    }

    .img-address {
        width: 20px;
        height: 20px;
    }

    .textp3 {
        width: 90%;
    }

    .imgbg1 {
        left: 500px;
    }

    .imgbg2 {
        right: 450px;
    }
}


/* size-xs มือถือ*/
@media (max-width:576px) {

    .imgwelcome {
        padding: 10px 10px;
    }

    .seemoreevent {
        padding: 8px 15px;
        border-radius: 30px;
        border: 1px solid #000;
        color: #000;
        margin: 10px;
        font-size: 1.2em;
        font-weight: 300;
        margin-bottom: 50px;
        margin-top: 50px;
    }

    .textp3 {
        width: 100%;
    }

    .portfolio-item,
    .grid-item {
        padding: 0 !important;
    }

    .text-h-branch {
        font-size: 2em;
        font-weight: 500;
        color: #000;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    .bg-address {
        padding: 20px;
        margin-bottom: 15px;
    }

    .btnbranch {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin: 0 !important;
    }

    .btntype {
        padding: 11px 28px !important;
        border-radius: 30px;
        border: 1px solid #000;
        color: #000;
        margin: 2px;
        font-size: 1.2em;
        font-weight: 300;
    }

    /* .slick-slide img {
    width: 80px;
  } */

    .imgconver {
        width: fit-content;
    }

    .imgconver {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center center;
    }

    .line-edit {
        margin-bottom: 20px;
    }

    .div-center {
        padding-top: 10px;
    }

    .imgbg1 {
        width: 250px;
        position: absolute;
        /* ต้องกำหนด position เพื่อให้ z-index ทำงานได้ */
        z-index: -1;
        /* กำหนดให้มีค่าต่ำกว่าฉากหลังหน้า */
        left: 250px;
        top: 50px;
    }

    .imgbg2 {
        width: 250px;
        position: absolute;
        /* ต้องกำหนด position เพื่อให้ z-index ทำงานได้ */
        z-index: -1;
        /* กำหนดให้มีค่าต่ำกว่าฉากหลังหน้า */
        right: 250px;
        bottom: 10px;
    }
}
