﻿
@font-face {
    font-family: 'NotoSansThai-Light';
    src: url('../plugins/font/notosansthai/NotoSansThai-Light.ttf');
}

@font-face {
    font-family: 'NotoSansThai-Regular';
    src: url('../plugins/font/notosansthai/NotoSansThai-Regular.ttf');
}

@font-face {
    font-family: 'NotoSansThai-Medium';
    src: url('../plugins/font/notosansthai/NotoSansThai-Medium.ttf');
}

@font-face {
    font-family: 'NotoSansThai-SemiBold';
    src: url('../plugins/font/notosansthai/NotoSansThai-SemiBold.ttf');
}

@font-face {
    font-family: 'NotoSansThai-Bold';
    src: url('../plugins/font/notosansthai/NotoSansThai-Bold.ttf');
}

@font-face {
    font-family: 'NotoSansThai-ExtraBold';
    src: url('../plugins/font/notosansthai/NotoSansThai-ExtraBold.ttf');
}

@font-face {
    font-family: 'NotoSansThai-Black';
    src: url('../plugins/font/notosansthai/NotoSansThai-Black.ttf');
}

:root {
    --first-color: #0078D7;
    --first-color-alt: #FAE4D3;
    --first-white: #FFF;
    --first-white-alt: #F1F2F7;
    --first-dark: #333;
    --first-bg: #F4F6FA;

    --font-300: 'NotoSansThai-Light';
    --font-400: 'NotoSansThai-Regular';
    --font-500: 'NotoSansThai-Medium';
    --font-600: 'NotoSansThai-SemiBold';
    --font-700: 'NotoSansThai-Bold';
    --font-800: 'NotoSansThai-ExtraBold';
    --font-900: 'NotoSansThai-Black';
}

body {
    font-family: var(--font-300);
    background-color: var(--first-bg);
    margin: 0;
}

ul {
    list-style: none;
    margin-bottom: 0;
}

a {
    text-decoration: none;
}

.section-top {
    padding-top: 75px;
}

.section {
    padding: 60px 0;
}

#header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #EDF2F9;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.5s;
    z-index: 100;
}

.scroll-header {
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-tnw {
    height: 4.5rem;
    display: flex;
    padding-left: 1rem;
    justify-content: space-between;
    align-items: center;
}

.nav-tnw .logo img {
    width: 50px;
    height: 50px;
}

.nav-tnw .logo {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    color: #333;
}

.nav-tnw .logo:hover {
    color: var(--first-color);
}

.nav-tnw-menu a {
    color: #333;
    font-size: .895rem;
    font-family: var(--font-400);
    position: relative;
}

.nav-tnw-menu a i {
    color: #6C757D;
}

.nav-tnw-item a:hover,
.nav-tnw-link.active,
.nav-tnw-item a:hover i,
.nav-tnw-link.active i,
.nav-tnw-item.active:focus,
.nav-tnw-item li:hover > a,
.nav-tnw-item.active:focus i,
.nav-tnw-item li:hover > a > i,
.nav-tnw-link:hover,
.nav-tnw-link.active,
.nav-tnw-link:hover i,
.nav-tnw-link.active i {
    color: var(--first-color);
    font-weight: 600;
}

.nav-tnw-list {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.nav-tnw-close {
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
}

.nav-tnw-toggle {
    display: inline-flex;
    font-size: 1.25rem;
    cursor: pointer;
}

@media screen and (max-width: 996px) {
    .nav-tnw-menu {
        position: fixed;
        background-color: #FFF;
        width: 80%;
        height: 100%;
        top: 0;
        right: -100%;
        box-shadow: -2px 0 4px hsla(152, 24%, 15%, .1);
        padding: 4rem 0 0 3rem;
        border-radius: 1rem 0 0 1rem;
        transition: .3s;
        z-index: 100;
    }
    
}

@media screen and (min-width: 996px) {

    .nav-tnw-menu {
        margin-left: auto;
    }

    .nav-tnw-list {
        flex-direction: row;
        column-gap: .88rem;
    }

    .nav-tnw-toggle,
    .nav-tnw-close {
        display: none;
    }
}

.nav-tnw-menu.show-menu {
    right: 0;
}

.nav-tnw-link-name {
    padding-left: 10px;
    display: none;
}

/* ------------------------------------------------------------------------------------------------
----- Dropdown Menu
------------------------------------------------------------------------------------------------ */

.nav-tnw-dropdown {
    display: flex;
    align-items: center;
}

.dropdown {
    display: flex;
    align-items: center;
    position: relative;
}

.dropdown-content {
    display: none;
    left: 0;
    padding-top: 4px;
    border-bottom-left-radius: .85rem;
    border-bottom-right-radius: .85rem;
    position: absolute;
    top: 100%;
    background-color: #fff;
    z-index: 1000;
    width: 220px;
}

.dropdown-content-end {
    display: none;
    right: 0;
    padding-top: 4px;
    border-bottom-left-radius: .85rem;
    border-bottom-right-radius: .85rem;
    position: absolute;
    top: 100%;
    background-color: #fff;
    z-index: 1000;
    width: 220px;
}

.dropdown-content a, .dropdown-content-end a {
    font-size: .895rem;
    color: #333;
}

.dropdown-tnw-menusub {
    padding: 30px 0 5px 15px;
}

.dropdown-tnw-menusub li {
    padding-bottom: 5px;
}

.dropdown-tnw-menusub li a {
    padding: 5px 8px;
    border-top-left-radius: .85rem;
    border-bottom-left-radius: .85rem;
    display: block;
    width: 100%;
}

.dropdown-tnw-menusub li a i {
    width: 30px;
}

.dropdown-tnw-menusub li a:hover {
    color: var(--first-color);
    background-color: #F2F3F6;
    font-weight: 600;
}

@media screen and (min-width: 996px) {
    .dropdown-content {
        box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.1);
    }

    .dropdown-content-end {
        box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.1);
    }

    .dropdown:hover .dropdown-content, .dropdown:hover .dropdown-content-end {
        display: block;
    }
}

@media screen and (max-width: 996px) {

    .dropdown {
        display: block;
        position: relative;
    }

    .dropdown.show-dropdown .dropdown-content {
        display: block;
    }

    .dropdown-content {
        position: relative;
        width: 100%;
        border-left: 2px solid #F1F2F7;
    }

    .dropdown.show-dropdown .dropdown-content-end {
        display: block;
    }

    .dropdown-content-end {
        position: relative;
        width: 100%;
    }

    .dropdown-tnw-menusub {
        padding: 10px 0 0 0;        
        border-left: 2px solid #F1F2F7;
    }

    .nav-tnw-link-name {
        display: block;
    }
}

/* ------------------------------------------------------------------------------------------------
----- FOOTER
------------------------------------------------------------------------------------------------ */

.footer {
    padding: 80px 0;
    color: var(--first-white);
    background-color: var(--first-dark);
    height: 100%;
}

.footer hr {
    margin: 2rem 0;
}

.footer p {
    font-size: .895rem;
    color: var(--first-white);
    margin-bottom: 0;
}

.footer h6 {
    font-size: .895rem;
    margin-bottom: 1rem;
}

.footer a {
    font-size: .895rem;
    color: #A8ADAF;
}

.footer a:hover {
    color: var(--first-color);
}

.footer .footer-tnw-list {
    display: flex;
    flex-direction: column;
}

.footer .footer-tnw-list a {
    margin-bottom: .5rem;
}


@media screen and (max-width: 575px) {
    .footer .footer-tnw-list {
        margin-bottom: 1.5rem;
    }
}

/* ------------------------------------------------------------------------------------------------
----- CONTENT
------------------------------------------------------------------------------------------------ */

.breadcrumb-item {
    font-size: .895rem;
    font-family: var(--font-400);
}

.input-tnw-group-end {
    position: relative;
}

.input-tnw-group-end i {
    position: absolute;
    top: 13px;
    right: 10px;
    color: #E5E5E5;
}

.input-tnw-group-end input {
    padding-right: 35px;
}

.input-tnw-group-end input:focus + i {
    color: #0078D7;
}

.form-label {
    font-weight: 600;
    color: #6C757D;
}

.col-form-label {
    font-size: .895rem;
}

.feedback-validation {
    color: #ED4C78;
    font-size: .815rem;
    margin-top: .5rem;
    display: none;
}

.card-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #666D74;
}