/*
Theme Name: Mira
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/** =============== Font ================= **/

@font-face {
    font-family: 'Sarabun';
    src: url("/wp-content/themes/mira/fonts/Sarabun-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: 'Sarabun';
    src: url("/wp-content/themes/mira/fonts/Sarabun-Light.ttf");
    font-weight: 300;
}

@font-face {
    font-family: 'Sarabun';
    src: url("/wp-content/themes/mira/fonts/Sarabun-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: 'Sarabun';
    src: url("/wp-content/themes/mira/fonts/Sarabun-SemiBold.ttf");
    font-weight: 600;
}

@font-face {
    font-family: 'Sarabun';
    src: url("/wp-content/themes/mira/fonts/Sarabun-Bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: 'UTM';
    src: url('/wp-content/themes/mira/fonts/UTMAvoBold.woff2') format('woff2'), url('/wp-content/themes/mira/fonts/UTMAvoBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UTM';
    src: url('/wp-content/themes/mira/fonts/UTMAvo.woff2') format('woff2'), url('/wp-content/themes/mira/fonts/UTMAvo.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


.header-main .nav > li > a {
	font-family: 'Sarabun', sans-serif;
    font-weight:700;
	font-size:18px;
}
body{
	font-family:'UTM';
}


/* list template */
.list-template {
    display: flex;
    flex-wrap: wrap;
/*     justify-content: space-between; */
}
/* .list-template .temp-item {
    max-width: 24%;
} */
.list-template .temp-item img {
    transition: 4s;
    /* height: 100%; */
    /* width: 100%; */
}
.list-template .temp-item:hover img {
    transform: translate(0, calc(-100% + 17rem));
}
.list-template .temp-item .temp-img {
    height: 250px;
    overflow: hidden;
}
.list-template .temp-item {
max-width: 32%;
    border: 1px solid #ccc;
    text-align: center;
    margin-top: 15px;
    border-radius: 10px;
    margin-left: 7px;
    margin-right: 7px;
    overflow: hidden;
}
.temp-content {
    min-height: 75px;
    position: relative;
    padding-top: 10px;
}
.temp-content h3 {
    font-size: 16px;
}
.temp-content h3 {
	padding: 0px 10px 10px 10px;
}
a.btn-temp-demo {
    background: #0e68c8;
    color: #fff;
    max-width: 50%;
    width: 50%;
    padding: 7px;
    font-size: small;
}
a.btn-temp-contact {
    max-width: 50%;
    width: 50%;
    font-size: small;
    padding: 7px;
    background: #02a4a5;
    color: #fff;
}
.temp-group-btn {
    display: flex;
    position: absolute;
    width: 100%;
    top: -34px;
    opacity: 0;
}
.temp-item:hover .temp-group-btn {
    opacity: 1;
}
.website-template-more {
    text-align: center;
    margin-top: 20px;
}
.template-2025 ul.nav {
    justify-content: center !important;
}
.noti {
    text-align: center;
    margin-top: 20px;
}
.sg-template {
    max-width: 1210px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.sg-main-box {
    width: 69%;
}
.sg-box-text{
    width: 29%;
    margin-top: 35px;
}
p.txt-before-tt {
    margin-bottom: 5px;
}
.sg-btn-contact a {
    background: #d42027;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
}
.sg-btn-contact a:hover{
    background: #fff;
    color: #d42027 ;
    transition: 0.7s;
    border: 1px solid #d42027;
}
.sg-btn-contact {
    margin-bottom: 20px;
    margin-top: 20px;
}
.template-2025 .tabbed-content .tab {
    margin-left: 10px;
    margin-right: 10px;
}
swiper-slide.swiper-slide-active img {
    transition: 7s;
}
swiper-slide.swiper-slide-active img:hover {
    transform: translate(0, calc(-100% + 30rem));
}
swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

swiper-slide {
    background-position: center;
    background-size: cover;
    width: 500px;
    height: 500px;
}

swiper-slide img {
    display: block;
    width: 100%;
}



/* list template */
@media(max-width:768px) {
    .list-template .temp-item {
        max-width: 47%;
    }
    .sg-template {
        max-width: 97%;
    }
}

@media( max-width:600px ){
    .list-template .temp-item {
        max-width: 100%;
    }
    .sg-main-box {
        width: 100%;
    }
    .sg-box-text {
        width: 100%;
    }
    .sg-btn-contact {
        text-align: center;
    }
    .sg-box-text h1 {
        text-align: center;
    }
    p.txt-before-tt {
        text-align:center;
    }
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}


