
*{
    font-family: "Noto Sans Thai";
}

html{
    overflow-x: hidden;
    width: 100vw;
}

body{
    margin:0 !important;
}

/*Navbar*/
.nav {
    width: 100%;
    /*height: 65px;*/
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    position: fixed;
    /*        line-height: 65px;*/
    text-align: center;
    background: #19346e;
    z-index: 20;
}

.nav div.logo {
    float: left;
    width: auto;
    /*height: 65px;*/
    padding-left: 1rem;
}

.nav div.logo a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    /*line-height: 82px;*/
}

.nav div.logo a:hover {
    color: #00E676;
}

.nav div.main_list {
    /*height: 65px;*/
    float: right;
}

.nav div.main_list ul {
    width: 100%;
    /*height: 65px;*/
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav div.main_list ul li {
    width: auto;
    /*height: 65px;*/
    padding: 0;
    padding-right: 1.5rem;
}
.nav div.main_list ul{
    padding:0.5rem;
}
.nav div.main_list ul li{
    line-height: 1rem;
}

.nav div.main_list ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    /*font-weight: 500;*/
}

.nav div.main_list ul li a:hover {
    color: #ffc424 !important;
}


/* Home section */

.home {
    width: 100%;
    height: 100vh;
    background-image: url(https://images.unsplash.com/photo-1498550744921-75f79806b8a7?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=b0f6908fa5e81286213c7211276e6b3d&auto=format&fit=crop&w=1500&q=80);
    background-position: center top;
    background-size:cover;
}

.navTrigger {
    display: none;
}

.nav {
    padding-top: 0;
    padding-bottom: 0;
    /*        -webkit-transition: all 0.4s ease;
            transition: all 0.4s ease;*/
}

.section-hero-wrapper{
    display: none;
}

/* Media qurey section */

@media screen and (min-width: 768px) {
    /*        .container {
                margin: 0;
            }*/
    .nav div.logo {
        display:none !important;
    }
    .login-menu-top{
        display: block;
    }
    .section-hero-wrapper{
        display: block !important;
    }
}

@media screen and (max-width:768px) {
    .login-menu-top{
        display: none;
    }
    .nav{
        top:0;
    }
    .navTrigger {
        display: block;
    }
    .nav div.main_list {
        width: 100%;
        height: 0;
        overflow: hidden;
    }
    .nav div.show_list {
        height: auto;
        display: none;
    }
    .nav div.main_list ul {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: #262626;
        /*same background color of navbar*/
        background-position: center top;
    }
    .nav div.main_list ul li {
        width: 100%;
        text-align: right;
        padding-right: 0 !important;
    }
    .nav div.main_list ul li a {
        text-align: center;
        width: 100%;
        font-size: 1rem;
        padding: 20px;
        line-height: 40px;
    }
    .nav div.media_button {
        display: block;
    }
}


/* Animation */
/* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */

.navTrigger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    /* margin: auto; */
    position: absolute;
    right: 11px;
    top: 15px;
    bottom: 0;
}

.navTrigger i {
    background-color: #ffffff;
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 4px;
}

.navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
}

.navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
}

.navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
}

@-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

@-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

.affix {
    padding: 0;
    background-color: #111;
}

.myH2 {
    text-align:center;
    font-size: 4rem;
}
.myP {
    text-align: justify;
    padding-left:15%;
    padding-right:15%;
    font-size: 20px;
}
@media all and (max-width:700px){
    .myP {
        padding:2%;
    }
}

/*End Navigation*/

div.section{
    padding:0 2rem 0 2rem;
}

div.section.hero{
    padding-top:2rem;
    padding-bottom:4rem;
}
div.section.values{
    padding-top:5rem;
    padding-bottom:4rem;
}


/* COLORS */

.nav .logo, .footer__logo{
    /*filter: hue-rotate(60deg) brightness(1.15);*/
}
.navlinks a, .nav__item a{
    color: #ffffff !important;
}
.navlinks a:hover, .nav__item a:hover{
    color: #ffc424 !important;
}
.button-primary{
    color:black !important;
    background-color: #ffc424 !important;
    border: #ffc424 !important;
    font-size:0.8rem;
}
.button-primary:hover{
    background-color: #0d335a !important;
    border: #0d335a !important;
}
.footer{
    background: #19346e !important;
}
.nav__title{
    color: #ffffff;
    font-weight: 500 !important;
    font-family: 'Noto Sans Thai' !important;
    font-size:1rem !important;
    border-bottom: thin solid #165698;
    padding-bottom: 19px;
}
.navTrigger i {
    background-color: white !important;
}
.legal{
    color: #727272 !important;
}
.legal__links{
    font-size:0.8rem !important;
    color:white !important;
}


.section.hero{
    /*background: white !important;*/
    background-repeat: no-repeat !important;
    background-position-x: right !important;
}
.section.hero .container{
    padding: 0 !important;
}
.section.hero .spacer{
    height:96px;
}
.section.hero .hero-heading{
    color:white;
    margin:0 !important;
}
.main-heading{
    color: #ffc13b !important;
}
.sub-heading{
    padding-top: 4rem;
    font-size: 1.8rem;
    line-height: 24px;
}
.section-second-wrapper{
    background: black !important;
}
.section.second{
    /*background: url("/assets/frontend/images/samt-mobile_02.jpg");*/
    background-repeat: no-repeat !important;
    background-position-x: left !important;
    height: 475px;
    color:white;
    position:relative;
}
.section-second-wrapper img{
    width:100%;
    height:auto;
    max-width: 450px;
}
.section.second .connector{
    margin-top:0rem;
    text-align: right;
    line-height: 25px;
}
.section.second .cta{
    margin-top: 14rem;
    text-align: center;
}

#values-connector{
    position:absolute;
    left:0;
    bottom:-10px;
    line-height: 34px;
    width: 100vw;
}

.section.values{
    /*background: url('/assets/frontend/images/samt-mobile_05.jpg');*/
    background: #ff2444;
    background-size: cover !important;
    color:white;
    position: relative;
}

.section.values .logo-wrapper{
    position: relative;
    top: -55px;
    left: 0;
}

.section.values .logoimg{
    position: absolute;
    top: -38px;
    left: 0;
}

.section.values .headimg{
    position: absolute;
    top: -75px;
    left: 85px;
}

.section.categories{
    background: url("/assets/frontend/images/samt-mobile_06.jpg");
    background-repeat: no-repeat !important;
    background-position-x: left !important;
    background-size:cover;
    height: 100vw;
    color:white;
    position:relative;
}


.section.get-help{
    padding-top:5rem;
}


#mauticform_input_prospectfirsttimefreetrialform_submit{
    color: black !important;
    background-color: #ffc424 !important;
    border: #ffc424 !important;
    font-size: 1.5rem;
}

#mauticform_input_prospectfirsttimefreetrialform_submit:hover{
    background-color: #44d12e !important;
    border: #44d12e !important;
}


/*Phablet*/
@media (max-width:549px){
    .section.hero .container{
        padding: 0 !important;
        margin: 0 !important;
    }
    .section.second .container{
        padding: 0 !important;
        margin: 0 !important;
    }
    .container{
        width:100%;
    }
}

@media (min-width:550px) and (max-width:879px){
    h4 {
        font-size: 2.4rem !important;
    }
    .section.hero .spacer{
        height:100px;
    }
    .section.second{
        background: url("/assets/frontend/images/samt-mobile_02.jpg");
        height: 500px;
        background-size: contain;
        padding-top:58px;
    }
    .section.values .logoimg {
        left: 10%;
    }
    .section.values .headimg{
        left: calc(10% + 55px);
    }
}

/*Tablet*/
@media (min-width:880px){
    .section.hero .spacer{
        height:90px;
    }
    .section.second{
        background: url("/assets/frontend/images/samt-mobile_02.jpg");
        height: 525px;
    }
    .section.values .logoimg {
        left: 10%;
    }
    .section.values .headimg{
        left: calc(10% + 55px);
    }
}

/*Desktop*/
@media (min-width:1025px){
    .section.second{
        background: url("/assets/frontend/images/samt-mobile_02.jpg");
        height: 625px;
    }
    .section.values .logoimg {
        left: 10%;
    }
    .section.values .headimg{
        left: calc(10% + 55px);
    }
}