@import url('https://fonts.googleapis.com/css?family=Kanit:300,400,500,700');
body { font-family: 'Kanit', sans-serif; line-height: 1.3 }
a:link,a:visited,a:active { color: #666; transition: all 0.2s }
a:hover { color: #511E7D }
header { box-shadow: 0px 0px 6px rgba(0,0,0,0.2) }
header .Column:nth-child(1) { width: 50% }
header .Column:nth-child(2) { width: 50% }
header img { margin: 5px 14px 5px 0px; height: 72px }
header p { margin: 0px }
header h1 { font-size: 26px; line-height: 1.2; margin: 0px; padding: 10px 0px; font-weight: 400 }
header h1 span { font-size: 18px; color: #666 }
header h1 a:link,header h1 a:visited,header h1 a:active { color: #511E7D }

header .Standard { text-align: right }
header .Standard a { line-height: 82px; }
header .Standard a:hover { color: #511E7D }
body.Mobile .Menu { z-index: 51 }

footer { color: #666; padding-top: 40px; box-shadow: 0px -1px 1px rgba(0,0,0,0.075) }
footer a:link,footer a:visited,footer a:active { color: #666 }
footer a:hover { color: #511E7D }
footer .Row:nth-child(1) .ContentTitle { font-size: 24px; margin-top: 0px; color: #000 }
footer .Row:nth-child(1) .Column:nth-child(1) { width: 49% }
footer .Row:nth-child(1) .Column+.Column { margin-left: 2% }
footer .Row:nth-child(1) .Column:nth-child(2) { width: 23.5% }
footer .Row:nth-child(1) .Column:nth-child(2) strong { font-size: 16px; }
footer .Row:nth-child(1) .Column:nth-child(2) img { margin: 2px 12px 0px 0px }
footer .Row:nth-child(1) .Column:nth-child(3) { width: 23.5% }
footer .Row:last-child { border-top: 1px solid #e7e7e7; padding: 24px 0px 32px 0px; margin-top: 40px }
footer .Row:last-child .Column { width: 50% }
footer .Row:last-child .Column+.Column { text-align: right }


/* slide
===============================================================================*/
.Slide .Gallery { padding-top: 30%; }
.Slide .Gallery > .Nav li.Active { background: #511E7D }
.Slide .Gallery > .Nav li { background: #fff }
.Slide .Gallery > .Next, .Slide .Gallery > .Prev { height: 120px; width: 120px;background: none; }
.Slide .Gallery > .Next:hover, .Slide .Gallery > .Prev:hover { background: none }
.Slide .Gallery:hover > .Next { right: 9% }
.Slide .Gallery:hover > .Prev { left: 9% }
.Slide .Gallery > .Next:hover:before, .Slide .Gallery > .Prev:hover:before { border-color: #511E7D }
main .Slide .Image {  }
main .Slide .Image:after { content: ""; position: absolute; background: rgba(0,0,0,0.4); width: 100%; height: 100%; left: 0px;  }
main .Slide .Detail .Title { font-size: 46px; color:#fff; font-weight: 600 }
main .Slide .Detail .Description { font-size: 30px; color:#511E7D; max-width: 500px; margin: auto; font-weight: 300 }
main .Slide .Detail .Description span { display: block; font-size: 34px; font-weight: 500 }
.carousel-caption { bottom: 30% }
.carousel-caption h2 { font-size: 46px; color:#fff; font-weight: 600 }
.carousel-caption div { font-size: 20px; color:#fff; font-weight: 300 }
/* over slide
===============================================================================*/
main .Row:nth-child(1) section:nth-child(2) { position: relative; top: 0px; z-index: 50; background: #511E7D; padding-bottom: 40px }
main .Row:nth-child(1) section:nth-child(2) .Detail { max-width: 1200px; margin: auto; text-align: center }
main .Row:nth-child(1) section:nth-child(2) .Detail > div {
    float: left;
    padding-top: 9%;
    width: 21%;
    margin: 0px 2%;
    position: relative;
    color: #fff
}
main .Row:nth-child(1) section:nth-child(2) .Detail > div:before {
    content: ""; 
    position: absolute; 
    left: 0px; 
    padding-left: 18%;
    right: 0px;
    top: -76px;    
    width: 100%;
    max-width: 246px;
    padding-top: 85%;
    margin: auto;
    z-index: 1;
    background-position: top right;
    background-repeat: no-repeat;
    background-image: url(/public/assets/sites/images/10/icon1.png);
    background-size: 82%
}
main .Row:nth-child(1) section:nth-child(2) .Detail > div:nth-child(2):before { background-image: url(/public/assets/sites/images/10/icon2.png); }
main .Row:nth-child(1) section:nth-child(2) .Detail > div:nth-child(3):before { background-image: url(/public/assets/sites/images/10/icon3.png); }
main .Row:nth-child(1) section:nth-child(2) .Detail > div:nth-child(4):before { background-image: url(/public/assets/sites/images/10/icon4.png); }
main .Row:nth-child(1) section:nth-child(2) strong { font-size: 24px; margin-bottom: 12px; color: #000; display: block }
main .Row:nth-child(1) section:nth-child(2) a { color: #000; display: block; margin-top: 12px } 

main .Row:nth-child(2) h2 { text-align: center; font-size: 36px; margin: 60px 0px 30px 0px; font-weight: 500 }

main .Row:nth-child(3) { padding-bottom: 80px; text-align: center; font-size: 16px }
main .Row:nth-child(3) h2 { font-size: 28px }
main .Row:nth-child(3) .Column { float: left; width: 363px; }
main .Row:nth-child(3) .Column:nth-child(1) { width: 474px; background: #DCDDDF; color: #000 }
main .Row:nth-child(3) .Column:nth-child(2) { background: #511E7D; color: #fff }
main .Row:nth-child(3) .Column:nth-child(2) a { color: #000 }
main .Row:nth-child(3) .Column:nth-child(3) { background: #231F20; color: #fff }
main .Row:nth-child(3) .Column:nth-child(1) .Detail > div:nth-child(2) { padding: 40px 100px; }
main .Row:nth-child(3) .Column:nth-child(1) h2 { font-size: 32px; line-height: 1.2 }
main .Row:nth-child(3) .Column:nth-child(1) h3 { margin: 0px; font-size: 24px }
main .Row:nth-child(3) .Column:nth-child(2) .Detail > div:nth-child(1) { padding: 30px 50px; }
main .Row:nth-child(3) .Column:nth-child(3) .Detail > div:nth-child(2) { padding: 40px 50px; }
main .Row:nth-child(3) .Column .Detail > div { height: 268px }
main .Row:nth-child(3) h2:first-child { margin: 0px }


main .Row:nth-child(4) { background: url(/public/assets/sites/images/10/bg.png) }
main .Row:nth-child(4) img { float: right }
main .Row:nth-child(4) h2 { padding-top: 80px; font-size: 42px; margin: 0px }
main .Row:nth-child(4) p { font-size: 16px }



body:not(#Page40) main { padding: 20px 0px 40px 0px }
body#Page44 main { padding: 0px }

#Page41 .Gallery img { width: 25% }
#Section86 h2 { text-align: center; margin: 60px 0px 30px 0px; font-weight: 500; }

@media only screen and (max-width: 1199px) {
    .Row { padding-left: 15px; padding-right: 15px }
    .Menu { z-index: 100 }
    .Menu nav ul li a { line-height: 60px; text-align: left; color: #fff }
    .Menu nav ul li a:hover { color: #000 }
    .Menu nav ul { background: #511E7D }


    /* Footer
    ===========================================================================*/
    footer .Name { margin-top: 0px }
    footer .Row:nth-child(1) { padding-bottom: 20px }
    footer .Row:nth-child(1) .Column:nth-child(1) { width: 38% }
    footer .Row:nth-child(1) .Column:nth-child(2) { width: 29% }
    footer .Row:nth-child(1) .Column:nth-child(3) { width: 29% }
    footer .Row:nth-child(2) {padding: 24px 15px 32px 15px; }

    /* Slide
    ===========================================================================*/
    .FirstPage main .Row:first-child { padding: 0px }


    /* Welcome
    ===========================================================================*/
    .FirstPage main .Row:nth-child(3) { max-width: 726px; margin: auto; padding-left: 0px; padding-right: 0px }
    .FirstPage main .Row:nth-child(3) .Column { float: none; width: 100% }
    .FirstPage main .Row:nth-child(3) .Column .Detail > div { float: left; width: 50%; height: 260px; overflow: hidden }
    .FirstPage main .Row:nth-child(3) .Column:nth-child(1) .Detail > div:nth-child(1) { position: relative }
    .FirstPage main .Row:nth-child(3) .Column:nth-child(1) .Detail > div:nth-child(1) img { position: absolute; top: 0px; left: 50%; max-width: none; transform: translate(-50%); -webkit-transform: translate(-50%) }
    .FirstPage main .Row:nth-child(3) .Column:nth-child(1) .Detail > div:nth-child(2) { padding: 30px 50px; float: right }


    /* Main bottom
    ===========================================================================*/
    .FirstPage main .Row:nth-child(4) img { width: 50% }
    .FirstPage main .Row:nth-child(4) h2 { padding-top: 40px }    
}
@media only screen and (max-width: 959px) {
    /* Footer
    ===========================================================================*/
    footer .Name { margin-top: 0px }
    footer .Row:nth-child(1) { padding-bottom: 20px }
    footer .Row:nth-child(1) .Column:nth-child(1) { width: 100%; padding-bottom: 40px }
    footer .Row:nth-child(1) .Column:nth-child(2) { width: 49%; margin: 0px }
    footer .Row:nth-child(1) .Column:nth-child(3) { width: 49% }

    
    /* Slide
    ===========================================================================*/
    .FirstPage main .Slide .Detail { height: 80% }
    .FirstPage main .Row:nth-child(1) section:nth-child(2) .Detail > div:before { top: -54px; }

    /* Main bottom
    ===========================================================================*/
    .FirstPage main .Row:nth-child(4) p { margin: 0.5em 0px }
    .FirstPage main .Row:nth-child(4) h2 { padding-top: 40px; font-size: 28px; padding-top: 10px }
    .FirstPage main .Row:nth-child(4) h3 { font-size: 23px; margin: 0px }
}

@media only screen and (max-width: 577px) {
    header img { height: 60px }
    header h1 { line-height: 1.2; padding: 15px 0px 0px 0px; font-size: 16px }
    header h1 span { font-size: 1; font-size: 13px; letter-spacing: -1px }

    footer .Name { font-size: 24px }
    footer .Row:nth-child(1) .Column:nth-of-type(n) { width: 100%; padding: 0px; text-align }   
    footer .Row:nth-child(1) .Column:nth-of-type(n+2) { margin-top: 40px }
    footer .Row:nth-child(2) .Detail { text-align: center }


    .FirstPage main .Slide .Detail { display: none }
    .FirstPage main .Row:nth-child(1) section:nth-child(2) .Detail > div:before { background-size: 100%; float: left; lfet: 15px; right: auto;width: 30%; height: 100%; padding-top: 0px; top: 15px; }
    .FirstPage main .Row:nth-child(1) section:nth-child(2) { padding-top: 0px; padding-bottom: 0px; text-align: left }
    .FirstPage main .Row:nth-child(1) section:nth-child(2) .Detail > div { width: 100%; padding: 20px 15px 20px 30%; margin: 0px; height: auto; border-top: 1px solid rgba(0,0,0,0.1) }
    .FirstPage main .Row:nth-child(1) section:nth-child(2) .Detail strong { font-size: 16px }
    .FirstPage main .Row:nth-child(1) section:nth-child(2) .Detail { text-align: left; }

    /* Welcome
    ===========================================================================*/
    .FirstPage main .Row:nth-child(3) { padding-bottom: 0px; }
    .FirstPage main .Row:nth-child(2) h2.Name { font-size: 26px; display: none }
    .FirstPage main .Row:nth-child(3) .Column { float: none; width: 100% }
    .FirstPage main .Row:nth-child(3) .Column .Detail > div { float: none; width: 100%; height: auto; overflow: hidden }
    .FirstPage main .Row:nth-child(3) .Column:nth-child(1) .Detail > div:nth-child(1) img { position: static; top: 0px; left: 0%; max-width: 100%; transform: translate(0%); -webkit-transform: translate(0%) }
    .FirstPage main .Row:nth-child(3) .Column:nth-child(1) .Detail > div:nth-child(2),
    .FirstPage main .Row:nth-child(3) .Column:nth-child(2) .Detail > div:nth-child(1),
    .FirstPage main .Row:nth-child(3) .Column:nth-child(3) .Detail > div:nth-child(2) { padding: 30px; float: right }
    .FirstPage main .Row:nth-child(3) .Column:nth-child(2) .Detail > div:nth-child(2),
    .FirstPage main .Row:nth-child(3) .Column:nth-child(3) .Detail > div:nth-child(1) { display: none }


    /* Main bottom
    ===========================================================================*/
    .FirstPage main .Row:nth-child(4) { text-align: center; padding: 20px 0px }
    .FirstPage main .Row:nth-child(4) img { float: none; width: 100% }
    .FirstPage main .Row:nth-child(4) h2 { font-size: 24px; }
    .FirstPage main .Row:nth-child(4) h3 { font-size: 28px; }

    #Page41 .Gallery img { width: 50% }
}

#Gallery11 { text-align: center }