@charset "utf-8";

/* CSS Document */

html,
body {
    font-family: "Noto Sans Thai", Helvetica, Tahoma;
    font-size: 18px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    color: #999;
    position: relative;
}

/* html:before{
content: "";
background-color: rgba(255,0,0,0.5);
width: 20px;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 999;
}
html:after{
content: "";
background-color: rgba(255,0,0,0.5);
width: 20px;
height: 100%;
position: fixed;
top: 0;
right: 0;
z-index: 999;
} */

::placeholder {
    color: #CCC;
}

.reveal {
    display: block;
    position: relative;
    transform: translateY(200px);
    opacity: 0;
    transition: 0.5s all ease;
}

.revealleft {
    transform: translateY(0) translateX(-200px);
}

.revealright {
    transform: translateY(0) translateX(200px);
}

.reveal.active {
    transform: translateY(0) translateX(0);
    opacity: 1;
}

h1,
h2,
h3,
h4 {
color: #2e3192;
margin:0 0 10px 0;
}

* {
    outline: none;
    box-sizing: border-box;
    word-break: break-word;
    position: relative;
}

button {
    border: 0;
    padding: 5px 10px;
    font-weight: normal;
    font-size: 16px;
    font-family: Prompt, Helvetica, Tahoma;
    text-align: center;
    box-sizing: border-box;
    color: #FFF;
    border: 0;
}

input,
select,
textarea {
    font-family: "Noto Sans Thai", Helvetica, Tahoma;
    appearance: none;
    -webkit-appearance: none;
    font-size: 18px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    background-color: #fff;
    z-index: 1;
    color: #999;
    padding: 7px 10px;
}

textarea {
    resize: none;
}

select {
    background-color: #fff;
    padding-right: 30px;
    background-position-x: calc(100% - 10px);
    background-position-y: 50%;
    background-repeat: no-repeat;
    background-size: 12px;
    background-image: url(data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>);
}

*:required {
}

input:invalid, textarea:invalid {
}

option {
}

:disabled,
:invalid {
}

a:link,
a:visited {
    color: #999;
    text-decoration: none;
}

a:hover {
    color: #000;
}

a:active,
a:focus {
    outline: none;
}

a:active,
a:hover {
    outline-width: 0;
}

div {
    position: relative;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.txt-left {
    text-align: left;
}

.txt-center {
    text-align: center;
}

.txt-right {
    text-align: right;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 40px -20px;
    padding: 0;
    width: auto;
}

.col1,
.col10,
.col11,
.col12,
.col2,
.col3,
.col4,
.col5,
.col6,
.col7,
.col8,
.col9 {
    padding: 0 20px;
}

.col12 {
    width: 100%;
}

.col11 {
    width: 91.66666667%;
}

.col10 {
    width: 83.33333333%;
}

.col9 {
    width: 75%;
}

.col8 {
    width: 66.66666667%;
}

.col7 {
    width: 58.33333333%;
}

.col6 {
    width: 50%;
}

.col5 {
    width: 41.66666667%;
}

.col4 {
    width: 33.33333333%;
}

.col3 {
    width: 25%;
}

.col2 {
    width: 16.66666667%;
}

.col1 {
    width: 8.33333333%;
}

.container {
    max-width: 1350px;
    padding: 0;
    margin: 40px auto;
    display: block;
}

.logo-img {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: #555;
}

.logo-img-scale {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.header-box {
    padding: 0 20px;
}
.header-box-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -20px;
}
.header-box-col {
    display: flex;
    padding: 10px 20px;
    transition: all 0.3s;
}
.head-logo{
width: 30%;
}

.head-logo img {
    width: auto;
    height: auto;
    max-height: 80px;
    transition: all 0.3s;
}
.head-logo.active img{
max-height: 40px;
}

.head-menu {
    width: 70%;
    align-self: center;
    justify-content: flex-end;
    column-gap: 40px;
}
.head-menu ul {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding: 0;
    margin: 0;
    column-gap: 20px;
    justify-content: flex-end;
    list-style: none;
}
.head-menu li{
padding: 0;
margin: 0;
}
.head-menu a{
display: block;
color: #999;
}
.head-lang {
    align-self: center;
    justify-content: end;
}
.head-lang img{
max-height: 16px;
}
a.btn-lang{
display: flex;
column-gap: 10px;
align-items: center;
}
.langbox {
    position: absolute;
    z-index: 1;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.2s;
    top: 30px;
    right: 0;
    width:150px;
}
.langbox.active {
    visibility: visible;
    transform: translateY(0);
}
.langbox ul {
    justify-content: center;
    background-color: #FFF;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    align-items: center;
    column-gap: 10px;
}
.langbox li {
flex: 1;
}
.langbox li a {
    display: flex;
    column-gap: 10px;
    align-items: center;
    white-space: nowrap;
    justify-content: center;
}

.langbox img {
    width: auto;
    height: auto;
    max-height: 16px;
}
.headmain-menu {
    width: 100%;
    padding: 0 20px;
    align-items: center;
}
.headmain-menu ul {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding: 0;
    margin: 0 auto;
    column-gap: 10px;
    font-size: 20px;
    list-style: none;
    width: 100%;
}
.headmain-menu li {
    padding: 0;
    margin: 0;
    flex: auto;
    display: flex;
    justify-content: center;
}
a.btn-submenu {
    display: flex;
    align-items: baseline;
    padding: 5px 30px 5px 0;
    color: #999;
    z-index: 2;
}
.btn-submenu.nolink{
padding: 5px 30px;
}
.btn-submenu.nolink:before{
content:"";
}
a.btn-submenu.active{
color: #2e3095;
}
a.btn-submenu:before {
    content: "\F282";
    position: absolute;
    right: 0;
    top: 13px;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
}
a.btn-submenu.active:before {
    transition: all 0.3s;
    transform: translateY(5px);
}
.headmain-menu .submenu {
    display: block;
    position: absolute;
    background-color: #FFF;
    width: 100%;
    min-width: 250px;
    top: 40px;
    left: 50%;
    margin: 0 auto;
    transform: translate(-50%, -10px);
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
    visibility: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.35);
}
.submenu.active {
    transform: translate(-50%, 0);
    opacity: 1;
    z-index: 1;
    visibility:visible;
}
.headmain-menu .submenu ul{
display: flex;
flex-direction: column;
padding: 5px;
}
.headmain-menu .submenu li {
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
}
.headmain-menu .submenu li a{
width: 100%;
padding: 7px 10px;
}
.headmain-menu .submenu li a:hover{
background-color: #FCFCFC;
}

.head-appointment {
    padding: 0;
    flex: none;
}
.head-appointment a {
    background-color: #2e3192;
    padding: 20px;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 15px;
}
.head-appointment img{
max-height: 24px;
}
.headmain-menu:before {
    content: "";
    background-image: url(../img/header-line.jpg);
    background-position: left top;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    width: 100vw;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.headmain-menu:after {
    content: "";
    background-image: url(../img/header-line.jpg);
    background-position: left top;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    width: 100vw;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
}
.headmain-menu.active:after {
display: none;
}
.footer-box {
    padding: 40px 20px;
    background-image: url(../img/footer-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
}
.footer-box-row {
    display: flex;
    flex-direction: row;
    width: auto;
    max-width: 1350px;
    column-gap: 40px;
}

.footer-box-col{
}
.footer-box-col p{
margin: 0;
}
.address {
    width: 40%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin: 0;
    flex: none;
}
.footer-box .main-title{
margin: 0;
}
.footer-box .main-title-txt{
padding-bottom: 0;
}
.footerlist {
    width: 60%;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}
.address img {
    width: auto;
    height: auto;
    max-height: 64px;
}
.subcol{
display: flex;
flex-direction: column;
row-gap: 20px;
}

.address .title{
font-size: 20px;
color: #2e3192;
}
.subcol .tel, .subcol .mail {
    display: flex;
    align-items: center;
    column-gap: 20px;
    margin: 0;
}
.copyright{
display: flex;
justify-content: center;
background-color: #2e3192;
color: #FFF;
padding: 40px 20px;
}
.copyright a{
color: #FFF;
}
.copyright-row {
    display: flex;
    column-gap: 20px;
    width: 100%;
    max-width: 1350px;
    justify-content: space-between;
}
.copyright-col{
}
.copyright-col.policy{
display: flex;
column-gap: 40px;
}
.footer-list-col dl, .footer-list-col ul {
    list-style: none;
    padding: 0;
    margin: -5px -15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    color: #999;
}
.footer-list-col dd,.footer-list-col li{
padding: 5px 15px;
margin: 0;
}
.footer-list-col dd{
flex: auto;
color: #2e3192;
}
.footer-list-col dd a{
color: #2e3192;
font-weight: bold;
}
.footer-list-col li{
flex: none;
}
.list-title{
margin-bottom: 10px;
font-weight: bold;
color: #2e3192;
}
.footer-list-col dd a,.list-title{
font-size: 18px;
}
.livechat{
display: none;
}

/***************************************************************************************/

.banner-box{
transition: all 0.5s;
}
.banner-box-scale{
width: 100%;
position: relative;
padding-top: 32.29%;
}
.banner-box-scaleimg{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.banner-box-scaleimg img{
width: 100%;
height: 100%;
object-fit: cover;
}
.main-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
margin-bottom: 40px;
}
.main-title-txt {
    flex: auto;
    font-size: 40px;
    color: #2e3192;
    padding-bottom: 10px;
}
.main-title-txt::before {
    content: "";
    background-color: #04baf3;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180px;
    height: 2px;
}
.main-title-txt::after{
    content:"";
    background-color: #f97e1a;
    position: absolute;
    bottom: 0;
    left: 180px;
    width: 40px;
    height: 2px;
}
.filter-box {
    display: flex;
    margin: 0;
    column-gap: 10px;
}
.filter-boxcol{
    flex: auto;
    padding: 0;
}
.filter-input {
    min-width: 500px;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    column-gap: 15px;
    justify-content: center;
    overflow: hidden;
    align-items: center;
}
.filter-input input {
    border: 0;
    text-align: center;
    background-image: url(../img/search.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-left: 40px;
    max-width: 100%;
}
.filter-input:before {
    content: "";
    background-image: url(../img/header-line.jpg);
    background-repeat: repeat-y;
    background-size: contain;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.filter-input:after {
    content: "";
    background-color: #FFF;
    position: absolute;
    width: 99%;
    height: 90%;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    border-radius: 12px;
    z-index: 0;
}
.filter-boxcol.btn-filter {
    width: 120px;
    max-width: 120px;
    flex: auto;
}
.btn-filter button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #3eaf7c;
    border-radius: 15px;
    height: 100%;
}