@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: "Kanit", sans-serif;
}

a {
    text-decoration: none !important;
}

i {
    font-family: FontAwesome;
}

.container-fluid {
    background: #fff;
    padding: 0 !important;
}

#navbar-box {
    padding: 0;
    position: fixed;
    display: flex;
    flex-direction: column;
    z-index: 99;
    background: transparent;
}

#nav-tool {
    background: #F5FBFF;
    padding: 5px 0;
}

.header-navbar {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbox-1 {
    display: flex;
    gap: 15px;
}

.icon-left-navbar {
    color: #01499D;
}

.icon-left-navbar:hover {
    color: #01418b;
}

.icon-left-navbar svg {
    vertical-align: sub;
    width: 14px;
    height: 14px;
    position: relative;
    top: -2px;
}

#link-main {
    margin-right: 1rem;
}

#blindness-font,
#blindness-color {
    display: flex;
    gap: 10px;
    align-items: center;
}

.font_style {
    font-size: 20px;
    border: 1px solid #C9C9C9;
    border-radius: 8px;
    width: 40px;
    height: 35px;
    text-align: center;
    background: #fff;
    color: #000;
}

.color_style {
    font-size: 20px;
    border: 1px solid #C9C9C9;
    border-radius: 8px;
    width: 40px;
    height: 35px;
    text-align: center;
    background: #000;
}

.font_style:hover,
.color_style:hover {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.color_style:nth-child(2) {
    background: #fff;
}

.toolbox-3 .header-navbar {
    margin: 0;
    padding: 0;
}

.toolbox-3 .header-navbar svg {
    vertical-align: sub;
    width: 18px;
    height: 18px;
    position: relative;
    top: -2px;
}

.menuslide {
    position: relative;
}

.menu-ham {
    width: fit-content;
    position: absolute;
}

/* ปุ่ม hamburger */
.hamburger {
    width: 40px;
    height: 40px;
    border: none;
    background: #01499D;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
    border-radius: 25px;
}

/* animation เป็นกากบาท */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* sidebar */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: #f5f6f8;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    z-index: 999;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-menu h4 {
    padding: 0.5rem 1rem;
}

.menu-header {
    font-weight: 600;
    margin-bottom: 15px;
    padding: 1.5rem 1rem;
    background: #E9F4FF;
}

.menu-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.menu-list li {
    margin-bottom: 10px;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #01499D;
    transition: 0.2s;
}

.menu-list a:hover {
    background: #f6e8de;
    color: #01499D;
}



#nav-menu {
    background: #ffffffb8;
    padding: 0;
    border-radius: 0 0 100px 0;
    box-shadow: rgb(0 0 0 / 9%) 1.95px 14px 10px -6px
}

.bannerhead {
    width: 100%;
}

.bannerhead img {
    width: 100%;
    height: 100%;
}

.mn-box-1 {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mn-box-2 {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 16px;
    font-family: sans-serif;
}

/* ปุ่มหน้าหลัก */
.nav-item:nth-child(1) {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 10px;
    background-color: #01499D;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
}

.nav-item:nth-child(1):before {
    content: url(/assets/portals/1/images/2026/icon-home.png);
    position: relative;
    top: 2px;
}

.nav-item {
    display: none;
}

.nav-item:nth-last-child(1) {
    display: flex !important;
    align-items: center;
}

#server_menu .navbar-nav {
    display: block;
}

#server_menu .nav-item {
    padding: 15px;
    display: inline-flex;
    align-items: center;
}

.nav.nav-pills {
    gap: 10px;
}

.top-nav #menulist .navbar-default .nav.nav-pills li.nav-item:nth-child(1)>a {
    color: #fff !important;
}

.top-nav #menulist .navbar-default .nav.nav-pills li.nav-item>a {
    color: #000000 !important;
    padding: 0 5px;
}

#server_menu li.nav-item.dropdown.open .dropdown-menu {
    position: absolute;
    -webkit-animation: fadein 0.5s;
    /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 0.5s;
    /* Firefox < 16 */
    -ms-animation: fadein 0.5s;
    /* Internet Explorer */
    -o-animation: fadein 0.5s;
    /* Opera < 12.1 */
    animation: fadein 0.5s;
}

.collapse:not(.show) {
    display: flex !important;
}

/* dropdown */
.nav-dropdown {
    position: relative;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    padding: 8px 6px;
}

.arrow {
    font-size: 12px;
    margin-left: 4px;
}

/* เมนูย่อย */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    list-style: none;
    padding: 6px 0;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    display: none;
    z-index: 100;
}

.dropdown-menu ul {
    padding: 0;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: transparent !important;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 14px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background-color: #f0f4f8;
}

/* hover แสดงเมนู */
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-language {
    background: #C45500;
    border-radius: 5px;
    padding: 0 1rem;
}

.nav-language .nav-link,
.nav-language .nav-link:hover {
    color: #fff;
}

.nav-language .arrow i {
    position: relative;
    top: -2px;
}

.searchbox {
    background: #fff;
    padding: 7px 9px 7px 1rem;
    border-radius: 10px;
    position: relative;
    display: flex;
}

.btnsearch {
    color: #fff;
    background: #01499D;
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    align-content: center;
    border: 0;
}

.searchinput {
    border: 0;
    outline: 0;
    padding-right: 5px;
}

#nav-contact {
    display: flex;
    flex-direction: column;
    width: fit-content;
    position: fixed;
    right: 20px;
    top: 40%;
    gap: 10px;
    z-index: 9;
}

.contactsocial {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border-radius: 38px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 1rem 4px;
}

.ct-tel {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    align-content: center;
    background: #FF760D;
}

.ct-social svg [fill] {
    fill: #888888;
}

.ct-social:hover svg [fill] {
    fill: #01499D;
}

.topbtn {
    position: absolute;
    right: 3rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px;
    padding: 8px 1rem;
}


.footer {
    position: relative;
    background: #fff;
}

.bgfooter {
    background: url(/assets/portals/1/images/2026/ft-left.png), url(/assets/portals/1/images/2026/ft-right.png);
    background-size: contain, 445px;
    background-repeat: no-repeat;
    background-position: left top, right bottom;
    position: absolute;
    width: 100%;
    height: 100%;
}


.contentfooter {
    background: url(/assets/portals/1/images/2026/bg-footer.png);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 70px 70px 0 0;
    padding: 3rem 0 0;
}

.topbtn a {
    display: flex;
    gap: 10px;
    align-items: center;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1fr 25% 1fr;
    position: relative;
    z-index: 1;
    gap: 25px;
}

.ct-footer {
    display: flex;
    flex-direction: column;
    position: relative;
}

.ct-footer .icon-left-navbar {
    color: #ffffff;
    font-size: 20px;
}

.ct-footer .icon-left-navbar:hover {
    color: #f7f7f7;
}

.ct-footer .icon-left-navbar svg {
    vertical-align: sub;
    width: 25px;
    height: 25px;
    position: relative;
    top: 0;
}

.cdbox {
    background: #E8EEFF;
    padding: 1rem 0;
    text-align: center;
    color: #01499D;
    width: 100%;
    margin-top: 2rem;
}

.btncontact {
    background: #fff;
    border-radius: 40px;
    padding: 5px 1rem;
    color: #01499D;
    font-size: 20px;
    align-content: center;
    font-weight: 600;
}

.btncontact-cc {
    background: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-content: center;
    text-align: center;
}

.btncontact-cc svg {
    width: 40px;
    height: 40px;
}

.btncontact:hover,
.btncontact-cc:hover {
    background: #F5FBFF;
}

.map-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.btnmap {
    background: #01499D;
    border-radius: 40px;
    padding: 8px 2rem;
    color: #fff;
    font-size: 18px;
    align-content: center;
    font-weight: 400;
    width: fit-content;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btnmap:hover {
    background: #FF760D;
}

.bg-row-2 {
    background: url(/assets/portals/1/images/2026/bg-row2.png);
    background-size: 100%;
    background-position-y: bottom;
    background-repeat: no-repeat;
}

.text-black {
    color: #000000;
}

.text-blue {
    color: #01499D;
}

.logobox {
    margin-left: 60px;
}

.server_menulist_mb {
    display: block;
}

#nav-menu {
    padding: 10px 0;
}

.menu-list {
    padding-top: 0;
}

.nav.nav-pills {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
}

.nav-item:nth-child(1) {
    background-color: transparent;
    color: #01499d;
    padding: 0 10px;
}

.nav-item:nth-last-child(1) {
    padding: 0 10px;
    flex-wrap: wrap;
}

.server_menulist_mb #menulist .navbar-default .nav.nav-pills li.nav-item>a {
    color: #01499d !important;
    padding: 8px 20px;
}

.nav-item:nth-child(1):before {
    content: url(/assets/portals/1/images/2026/icon-home-b.png);
    position: relative;
    top: 2px;
}

.nav-item:nth-last-child(1):before {
    content: url(/assets/portals/1/images/2026/icon-disabled-b.png);
    position: relative;
    top: 2px;
}

.server_menulist_mb #menulist .navbar-default .nav.nav-pills li.nav-item>.dropdown-toggle {
    padding: 15px 0;
}

.server_menulist_mb .dropdown-menu {
    position: relative;
    flex: 1;
    left: 0 !important;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.server_menulist_mb .nav-item.dropdown>.dropdown-menu {
    display: none;
}

.server_menulist_mb .nav-item.dropdown.open>.dropdown-menu {
    display: block;
}

.dropdown-menu ul {
    width: 100%;
}

.dropdown-menu li a {
    padding: 8px 0;
}

@media only screen and (max-width: 1200px) {
    #nav-tool .container {
        max-width: 100%;
    }

    .grid-footer {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .header-navbar {
        padding: 0;
    }

    #link-main {
        margin-right: 0;
    }

    .header-navbar,
    .toolbox-1 {
        gap: 10px;
    }
}

@media only screen and (max-width: 1100px) {
    #nav-menu .container {
        max-width: 85%;
    }

    #nav-tool>.container>.d-flex {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .nav.nav-pills {
        gap: 10px;
        display: flex;
        flex-wrap: nowrap;
    }
}

@media only screen and (max-width: 992px) {

    .container,
    #nav-menu .container {
        max-width: 90% !important;
    }

    .bannerhead {
        height: 580px;
    }

    .bannerhead img {
        object-fit: cover;
    }

    .bgfooter {
        background-position: left -200px top, right -200px bottom;
    }

    .menu-ham {
        left: -50px;
        top: 50%;
    }

    .top-nav {
        padding: 10px 0;
    }

    .searchinput {
        width: 130px;
    }

    .grid-footer {
        grid-template-columns: 1fr;
    }

    .toolbox-1,
    #link-main {
        display: none;
    }

    #nav-tool>.container>.d-flex {
        gap: 15px;
    }

    .server_menulist_mb {
        display: block !important;
    }

    #server_menulist {
        display: none;
    }

    #nav-menu {
        padding: 10px 0;
    }

    .menu-list {
        padding-top: 0;
    }

    .nav.nav-pills {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .nav-item:nth-child(1) {
        background-color: transparent;
        color: #01499d;
        padding: 0 10px;
    }

    .nav-item:nth-last-child(1) {
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .server_menulist_mb #menulist .navbar-default .nav.nav-pills li.nav-item>a {
        color: #01499d !important;
        padding: 8px 20px;
    }

    .nav-item:nth-child(1):before {
        content: url(/assets/portals/1/images/2026/icon-home-b.png);
        position: relative;
        top: 2px;
    }

    .nav-item:nth-last-child(1):before {
        content: url(/assets/portals/1/images/2026/icon-disabled-b.png);
        position: relative;
        top: 2px;
    }

    .server_menulist_mb #menulist .navbar-default .nav.nav-pills li.nav-item>.dropdown-toggle {
        padding: 15px 0;
    }

    .server_menulist_mb .dropdown-menu {
        position: relative;
        flex: 1;
        left: 0 !important;
        border: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .server_menulist_mb .nav-item.dropdown.open>.dropdown-menu {
        display: block;
    }

    .dropdown-menu ul {
        width: 100%;
    }

    .dropdown-menu li a {
        padding: 8px 0;
    }

    #row-2_area .col-lg-3,
    #row-2_area .col-lg-9,
    #row-2_area-2 .col-lg-3,
    #row-2_area-2 .col-lg-9,
    #row-2_area-3 .col-lg-3,
    #row-2_area-3 .col-lg-9 {
        flex: 0 0 auto;
        width: 100%;
    }

    #row-2_col-2 {
        margin: 2rem 0;
    }
}

@media only screen and (max-width: 890px) {
    .bgfooter {
        background-position: left -500px top, right -500px bottom;
        background-size: 100%, 100%;
    }

    .grid-footer {
        grid-template-columns: 1fr;
    }

    .ct-footer {
        width: 90%;
        margin: auto;
    }

    .ct-footer>.d-flex.flex-column {
        width: 100%;
    }

    .grid-footer .ct-footer:nth-child(2)>.fs-2.text-white {
        display: none;
    }

    .detailbox>.fw-light.text-white br {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .logobox {
        margin-left: 0;
    }

    .bannerhead {
        height: 530px;
    }

    .menu-ham {
        left: -20px;
        width: 100%;
    }

    #nav-tool>.container>.d-flex {
        gap: 5px;
    }

    .mn-box-2 {
        display: none;
    }

    .hamburger {
        margin-left: auto;
    }

    #nav-menu .container {
        max-width: 95% !important;
        padding: 0;
    }

    .toolbox-2 .d-none-sm {
        display: none;
    }

    #nav-tool .container {
        max-width: 100% !important;
    }
}

@media only screen and (max-width: 590px) {
    .bannerhead {
        height: 415px;
    }

    #row-1_col-12 {
        padding-top: 4rem;
    }
}

@media only screen and (max-width: 500px){
    .bannerhead {
        height: 350px;
    }
}