﻿.cd-main-body {
    /*background-image: url('../../../Images/MainPage/bg.png');
    background-repeat: repeat;*/
    background-color: #ebebeb;
    padding: 30px;
    padding-left: 5%;
    padding-right: 5%;
}

.cd-main-header {
    -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
}

.cd-primary-nav a:hover {
    cursor: pointer;
    text-decoration: none;
}

.cd-primary-nav > li > a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .cd-primary-nav > li > a.active {
        color: #00aeef;
        box-shadow: inset 0 -2px 0 #00aeef;
    }

.cd-primary-nav .cd-nav-simple > li > a > .bullet {
    display: none;
}

@media only screen and (max-width: 1169px) {
    .cd-primary-nav > li > a:hover, .cd-primary-nav > li > a.active {
        color: #ffffff;
        background-color: #00aeef;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-primary-nav .cd-nav-simple {
        position: absolute;
        top: 80px;
        width: 100vw;
        background: #ffffff;
        padding: 20px 50px 70px;
        box-shadow: inset 0 1px 0 #e2e3df, 0 3px 6px rgba(0, 0, 0, 0.05);
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: opacity .3s 0s, visibility 0s 0s;
        -moz-transition: opacity .3s 0s, visibility 0s 0s;
        transition: opacity .3s 0s, visibility 0s 0s;
    }

        .cd-primary-nav .cd-nav-simple::after {
            clear: both;
            content: "";
            display: table;
        }

        .cd-primary-nav .cd-nav-simple.is-hidden {
            opacity: 0;
            visibility: hidden;
            -webkit-transition: opacity .3s 0s, visibility 0s .3s;
            -moz-transition: opacity .3s 0s, visibility 0s .3s;
            transition: opacity .3s 0s, visibility 0s .3s;
        }

        .cd-primary-nav .cd-nav-simple > li {
            width: 22%;
            float: left;
            margin: 0 4% 10px 0;
        }

            .cd-primary-nav .cd-nav-simple > li:nth-child(4n+2) {
                margin-right: 0;
            }

            .cd-primary-nav .cd-nav-simple > li > a {
                /* secondary nav title */
                color: #333333;
                font-size: 1.4rem;
                /*font-weight: bold;
                margin-bottom: .6em;*/
                border-bottom: none;
                -webkit-transition: color 0.2s, background 0.2s, border 0.2s;
                -moz-transition: color 0.2s, background 0.2s, border 0.2s;
                transition: color 0.2s, background 0.2s, border 0.2s;
            }

                .cd-primary-nav .cd-nav-simple > li > a > .bullet {
                    display: inline-block;
                    color: #00aeef;
                }

        .cd-primary-nav .cd-nav-simple a {
            /*height: 30px;
            line-height: 30px;
            padding: 0 18% 0 0;
            color: #2e3233;
            border-bottom: none;
            font-size: 1.4rem;*/
        }

        .cd-primary-nav .cd-nav-simple > .see-all {
            /* this is the BIG See all button at the bottom of the dropdown menu */
            display: block;
            position: absolute;
            left: 0;
            bottom: 0;
            height: 60px;
            width: 100%;
            overflow: hidden;
            /* reset some inherited style */
            margin: 0;
            padding: 0;
        }

            .cd-primary-nav .cd-nav-simple > .see-all a {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                font-size: 2.2rem;
                font-weight: bold;
                text-align: center;
                line-height: 60px;
                border-top: 1px solid #e2e3df;
                color: #333333;
                background-color: #ffffff;
                /* reset some inherited style */
                border-bottom: none;
                margin: 0;
                padding: 0;
                -webkit-transition: color 0.2s, background 0.2s, border 0.2s;
                -moz-transition: color 0.2s, background 0.2s, border 0.2s;
                transition: color 0.2s, background 0.2s, border 0.2s;
            }

                .cd-primary-nav .cd-nav-simple > .see-all a:hover {
                    cursor: default;
                    color: #333333;
                    background-color: #ffffff;
                    /*border-color: #2e3233;*/
                }

                .cd-primary-nav .cd-nav-simple > .see-all a[href]:hover {
                    cursor: pointer;
                    color: #ffffff;
                    background-color: #00aeef;
                    /*border-color: #2e3233;*/
                }
}

.cd-primary-nav .cd-nav-simple > li > a:hover, .cd-primary-nav .cd-nav-simple > li > a.active {
    color: #ffffff;
    background-color: #00aeef;
}

    .cd-primary-nav .cd-nav-simple > li > a:hover > .bullet, .cd-primary-nav .cd-nav-simple > li > a.active > .bullet {
        color: #ffffff;
    }

.has-children > a::before, .has-children > a::after, .go-back a::before, .go-back a::after {
    background: #ffffff;
}

.nav-is-fixed .cd-main-content {
    top: 80px;
}

.cd-search {
    top: 80px;
    border-top: 1px solid rgba(0,0,0,0);
}

    .cd-search:before {
        content: '';
        line-height: 0;
        font-size: 0;
        width: 0;
        height: 0;
        border-top: 50px solid #ffffff;
        border-bottom: 0px solid transparent;
        border-left: 20px solid transparent;
        border-right: 0px solid transparent;
        position: absolute;
        top: 0;
        left: -20px;
    }

@media only screen and (min-width: 1170px) {
    .nav-is-fixed .cd-main-content {
        top: 110px;
    }

    .cd-search {
        /*height: 120px;*/
        top: 110px;
    }

    /*.cd-search input {
            padding: 0 2em;
            font-size: 3.2rem;
            font-weight: 300;
        }*/
}

.cd-sub-header {
    position: relative;
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.cd-sub-header {
    height: 30px;
    background-color: #00aeef;
    z-index: 3;
}

.nav-is-fixed .cd-sub-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.nav-is-fixed .cd-main-header {
    top: 30px;
}

@media only screen and (max-width: 1169px) {
    .cd-sub-header.nav-is-visible {
        -webkit-transform: translateX(-260px);
        -moz-transform: translateX(-260px);
        -ms-transform: translateX(-260px);
        -o-transform: translateX(-260px);
        transform: translateX(-260px);
    }

    .nav-on-left cd-sub-header.nav-is-visible {
        -webkit-transform: translateX(260px);
        -moz-transform: translateX(260px);
        -ms-transform: translateX(260px);
        -o-transform: translateX(260px);
        transform: translateX(260px);
    }
}

@media only screen and (min-width: 1170px) {
    .cd-sub-header::after {
        clear: both;
        content: "";
        display: table;
    }
}

.cd-sub-header .cd-btn-list {
    float: right;
    background-color: #2d3640;
    height: 30px;
    list-style-type: none;
    padding-right: 12px;
    padding-left: 12px;
}

    .cd-sub-header .cd-btn-list:before {
        content: '';
        line-height: 0;
        font-size: 0;
        width: 0;
        height: 0;
        border-top: 0px solid transparent;
        border-bottom: 30px solid #2d3640;
        border-left: 12px solid transparent;
        border-right: 0px solid transparent;
        position: absolute;
        top: 0;
        margin-left: -24px;
    }

    .cd-sub-header .cd-btn-list > li {
        float: left;
        display: inline-block;
        padding: 0 5px;
    }

        .cd-sub-header .cd-btn-list > li > a {
            display: inline-block;
            color: #ffffff;
            line-height: 30px;
            height: 30px;
            width: 30px;
            text-align: center;
        }

            .cd-sub-header .cd-btn-list > li > a:hover {
                border-radius: 16px;
                background-color: #00aeef;
            }

        .cd-sub-header .cd-btn-list > li.li-lang {
            padding: 3px 5px;
        }

            .cd-sub-header .cd-btn-list > li.li-lang > table td {
            }

            .cd-sub-header .cd-btn-list > li.li-lang > table a {
                display: inline-block;
                color: #00aeef;
                border: 1px solid #00aeef;
                background-color: #ffffff;
                font-size: 12px;
                line-height: 24px;
                height: 24px;
                width: 25px;
                text-align: center;
                text-decoration: none;
            }

            .cd-sub-header .cd-btn-list > li.li-lang > table td:first-of-type > a {
                border-top-left-radius: 6px;
                border-bottom-left-radius: 6px;
                border-right-width: 0;
            }

            .cd-sub-header .cd-btn-list > li.li-lang > table td:last-of-type > a {
                border-top-right-radius: 6px;
                border-bottom-right-radius: 6px;
                border-left-width: 0;
            }

            .cd-sub-header .cd-btn-list > li.li-lang > table a:not(.active):hover {
                cursor: pointer;
                /*color: #ffffff;
                background-color: #333333;*/
                color: #333333;
            }

            .cd-sub-header .cd-btn-list > li.li-lang > table a.active {
                color: #ffffff;
                background-color: #00aeef;
            }

.cd-sitemap-footer {
    display: table;
    table-layout: fixed;
    width: 100%;
    background: #3A788F;
    background: -moz-linear-gradient(left, #244668 0%, #51abb7 100%);
    background: -webkit-linear-gradient(left, #244668 0%,#51abb7 100%);
    background: linear-gradient(to right, #244668 0%,#51abb7 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#244668', endColorstr='#51abb7',GradientType=1 );
}

    .cd-sitemap-footer .cd-sitemap-title {
        display: inline-block;
        font-family: 'ThaiSansNeue';
        font-size: 18px;
        color: #ffffff;
        text-decoration: none;
        line-height: 40px;
        height: 40px;
        padding: 0 10px;
        background-color: #00aeef;
    }

        .cd-sitemap-footer .cd-sitemap-title .bullet-collapsed,
        .cd-sitemap-footer .cd-sitemap-title.collapsed .bullet-expanded {
            display: none;
        }

        .cd-sitemap-footer .cd-sitemap-title.collapsed .bullet-collapsed,
        .cd-sitemap-footer .cd-sitemap-title .bullet-expanded {
            display: inline;
        }

    .cd-sitemap-footer .cd-sitemap {
        padding-top: 10px;
        padding-bottom: 10px;
    }

        .cd-sitemap-footer .cd-sitemap .cd-box-page {
            display: table-cell;
            width: 1%;
            border-right: 20px solid transparent;
        }

            .cd-sitemap-footer .cd-sitemap .cd-box-page:last-of-type {
                border-right: 0;
            }

            .cd-sitemap-footer .cd-sitemap .cd-box-page a.page-head {
                display: block;
                font-size: 15px;
                font-family: ThaiSansNeue;
                color: #ffffff;
                border-bottom: 1px solid rgba(255,255,255,0.2);
            }

            .cd-sitemap-footer .cd-sitemap .cd-box-page a.page-child {
                font-size: 12px;
                color: #dddddd;
            }

    .cd-sitemap-footer .cd-list-page, .cd-sitemap-footer .cd-list-other {
        list-style-type: none;
    }

    .cd-sitemap-footer .cd-list-other {
        float: right;
    }

        .cd-sitemap-footer .cd-list-other > li {
            float: left;
        }

            .cd-sitemap-footer .cd-list-other > li > a {
                display: inline-block;
                font-family: 'ThaiSansNeue';
                color: #ffffff;
                padding: 10px;
            }

                .cd-sitemap-footer .cd-list-other > li > a:hover {
                    background-color: #00aeef;
                    text-decoration: none;
                }

.cd-main-footer {
    background-color: #2d3640;
    color: #ffffff;
    padding: 30px 0;
}

    .cd-main-footer .cd-list-social {
        margin-top: 10px;
        list-style-type: none;
    }

        .cd-main-footer .cd-list-social > li {
            float: left;
            display: inline-block;
        }

            .cd-main-footer .cd-list-social > li:not(:first-of-type) {
                margin-left: 10px;
            }

            .cd-main-footer .cd-list-social > li > a {
                display: inline-block;
                color: #cccccc;
                line-height: 25px;
                height: 25px;
                width: 25px;
                text-align: center;
            }

                .cd-main-footer .cd-list-social > li > a:hover {
                    border-radius: 16px;
                    color: #ffffff;
                    background-color: #00aeef;
                }

    .cd-main-footer .cd-list-rule {
        float: right;
        list-style-type: none;
        display: inline-block;
    }

        .cd-main-footer .cd-list-rule > li {
            float: left;
            /*display: inline-block;*/
        }

    .cd-main-footer a {
        color: #cccccc;
    }

        .cd-main-footer a:hover {
            color: #ffffff;
        }

.cd-btn-scrolltop {
    display: none;
    position: fixed;
    right: 2%;
    bottom: 2%;
    z-index: 999999;
    font-size: 20px;
    line-height: 40px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    padding: 0;
    border-width: 0;
    -webkit-box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.5);
    outline: none;
}

.cd-btn-scrolltop {
    color: #ffffff;
    background-color: #00aeef;
    border: 5px solid #00aeef;
}

    .cd-btn-scrolltop:hover, .cd-btn-scrolltop:focus {
        /*background-color: #0a1f33;*/
        color: #00aeef;
        background-color: #ffffff;
    }
