﻿.slick-list {
    overflow: hidden;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0,0,0,.45);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: all;
    }

.offcanvas-right {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    transition: right .3s ease;
    box-shadow: -4px 0 16px rgba(0,0,0,.12);
}

    .offcanvas-right.show {
        right: 0;
    }

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-body .nav-link {
    padding: .65rem 1.25rem;
    color: #343a40;
}

    .offcanvas-body .nav-link:hover {
        background: #f8f9fa;
        color: #007bff;
    }

.hide {
    visibility: hidden;
}

.navbar {
    /*background-color: #d71920;*/
    padding-left: clamp(16px, 5vw, 100px) !important;
    padding-right: clamp(16px, 5vw, 100px) !important;
    transition: padding 0.25s ease-in-out;
}

.navbar-brand {
    margin: 0 !important;
}

    .navbar-brand img {
        height: 50px;
    }

.navbar-custom {
    display: flex;
    justify-content: space-between;
    font-family: "Noto Sans Thai", 'Open Sans', sans-serif;
    /*font-family: "Prompt",'Open Sans',sans-serif;*/
}

@media (max-width: 991px) {
    .navbar-custom {
        display: none;
    }

    .main-nav .navbar-collapse {
        display: none;
    }
}

@media (min-width: 0px) and (max-width: 991px) {
    .navbar-brand img {
        height: 44px;
    }
}

@media (min-width: 992px) and (max-width: 1023px) {
    .navbar-brand img {
        height: 40px;
    }
}

.main-nav .navbar-toggler {
    /* -webkit-align-self: flex-start; */
    /*-ms-flex-item-align: start;*/
    /* align-self: flex-start; */
    /* padding: 0; */
    /* background: transparent; */
    /* border: none; */
    /* cursor: pointer; */
    /* border-radius: 0px; */
    /* position: absolute; */
    /* right: 0px; */
    /* top: 5px; */
    /* transition: all 0.5s ease-in-out; */
    /* margin-top: 0px; */
    /* z-index: 5550; */
    position: unset;
    display: contents;
}

.navbar-toggler-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    /*color: #fff;*/
    color: #12203E;
}

    .navbar-toggler-icon i {
        font-size: 24px;
    }


@media (min-width: 992px) {
    .main-nav .navbar-toggler {
        display: none;
    }
}

.offcanvas-header .img-logo {
    height: 40px;
    width: auto;
}

@media (max-width: 991px) {
    .topbar {
        display: none !important;
    }
}

.topbar {
    display: flex;
    align-items: center;
    /*background-color: #EFF5F5;*/
    /*background-color: #0d2945;*/
    background-color: #b42328;
}

    .topbar .navbar {
        /*background-color: #EFF5F5;*/
        width: 100%;
        padding: 0;
    }


.nav-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.boxed-menu .topbar a.btn {
    padding: 0 !important;
    width: 100px;
    font-size: 12px;
    font-weight: 600 !important;
}

.topbar-content {
    display: flex;
    align-items: center;
}

.topbar-con {
    display: flex;
    align-items: center;
}

.black-ribbon {
    height: 90px;
}

.boxed-menu .topbar .btn-logout-box {
    /*color: #b42328 !important;*/
}

.boxed-menu .topbar .btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    /*background: rgba(255,255,255,.96);*/
    /*border: 1px solid rgba(255,255,255,.35);*/
    background: #fcf8f8;
    border: 1px solid rgba(180,35,40,.10);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    transition: all .25s ease;
}

    .boxed-menu .topbar .btn-logout i,
    .boxed-menu .topbar .btn-logout span {
        color: #b42328 !important;
        border: 0 !important;
        width: auto !important;
        margin-right: 0;
        font-weight: 500;
    }

    .boxed-menu .topbar .btn-logout:hover {
        transform: translateY(-2px);
        background: #fff;
        box-shadow: 0 10px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05);
    }


.boxed-menu .topbar i {
    height: unset;
}

.topbar p, .topbar a {
    margin: 0;
}
/*#pageTop {*/
/*display: block;*/
/*position: fixed;
    top: 0;*/
/*width: 100%;
    left: 0px;
    right: 0px;*/
/*}*/

#pageTop {
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow 0.2s;
}

    #pageTop.scrolled {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    #pageTop.navbar {
        /*width: 100vw;
    color: #2C3E50;
    height: 70px;
    padding: 0 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;*/
        /*color: #d71920;*/
        color: #12203E;
        /*background: transparent;*/
        background: rgba(255, 255, 255, 0.85);
    }

        #pageTop.navbar.scrolled {
            background: rgba(255, 255, 255, 0.85); /* ขาวโปร่ง */
            backdrop-filter: blur(10px); /* glass effect */
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }

        #pageTop.navbar a {
            color: #12203E;
        }

.menu-modern {
    padding: 12px;
    border: none;
    border-radius: 18px;
    /*min-width: 360px;*/
    background: #fff;
    box-shadow: 0 20px 40px rgba(18,32,62,.08), 0 8px 20px rgba(18,32,62,.05);
    border: 1px solid rgba(18,32,62,.05);
}

    .menu-modern .dropdown-item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 16px;
        margin: 4px 0;
        border-radius: 14px;
        color: #12203E;
        font-weight: 500 !important;
        /*transition: all .28s cubic-bezier(.22,1,.36,1);*/
        transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
    }
        /*.menu-modern .dropdown-item i:first-child {
            width: 20px;
            color: #5B84D7;
            transition: .3s;
        }*/
        /*.menu-modern .arrow {
        margin-left: auto;
        opacity: 0;
        transform: translateX(-8px);
        transition: .25s;
        color: #4F86F7;
    }*/

        .menu-modern .dropdown-item:hover {
            background: #F6F9FE;
            /*color: #1D4ED8;*/
            /*color: #163b5c;*/
            transform: translateX(4px);
            color: #3e6c95 !important;
            /*font-weight: 600 !important;*/
            /*box-shadow: inset 0 0 0 1px rgba(62,108,149,.08), 0 8px 18px rgba(18,32,62,.05);*/
        }

        .menu-modern .dropdown-item::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            bottom: 10px;
            width: 4px;
            border-radius: 99px;
            /*background: linear-gradient( to bottom, #4F86F7, #2F6FDD );*/
            /*background: linear-gradient( to bottom, #7AACE1, #5594D8 );*/
            background: linear-gradient( to bottom, #4A6F91, #3e6c95 );
            transform: scaleY(0);
            transition: .25s;
        }

        .menu-modern .dropdown-item:hover::before {
            transform: scaleY(1);
        }

        .menu-modern .dropdown-item:hover .arrow {
            opacity: 1;
            transform: translateX(0);
        }
        /*.menu-modern .dropdown-item:hover i:first-child {
        transform: scale(1.15);
        color: #2F6FDD;
    }*/

        .menu-modern .dropdown-item:focus-visible {
            outline: none;
            /*background: #F6F9FE;*/
            /*background: linear-gradient( 90deg, rgba(62,108,149,.07), rgba(62,108,149,.03) );*/
            /*box-shadow: 0 0 0 3px rgba(79,134,247,.18);*/
            /*box-shadow: 0 0 0 1px rgba(79,134,247,.12), 0 8px 20px rgba(79,134,247,.08);*/
            background: linear-gradient( 90deg, rgba(62,108,149,.04), rgba(62,108,149,.015) );
            box-shadow: inset 0 0 0 1px rgba(62,108,149,.08), 0 4px 12px rgba(18,32,62,.04);
        }

        .menu-modern .dropdown-item:active {
            transform: translateX(6px) scale(.98);
        }

        .menu-modern .dropdown-item a:hover {
            color: #3e6c95 !important;
            /*font-weight: 600 !important;*/
        }

        .menu-modern .dropdown-item span {
            /*color: #3e6c95 !important;*/
            /*font-weight: 600 !important;*/
            font-size: 14px;
            line-height: 1.3;
            flex: 1;
            min-width: 0;
            white-space: normal;
            overflow-wrap: anywhere; /* ตัดได้ทุกตำแหน่งหากจำเป็น */
        }

@media (max-width: 1023px) {
    .menu-modern .dropdown-item span {
        font-size: 12px;
    }

    .dropdown-menu {
        min-width: 210px;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .menu-modern .dropdown-item span {
        font-size: 13px;
    }
}

@media (min-width: 1300px) {
    .dropdown-menu {
        min-width: 280px;
    }
}

.boxed-menu .topbar {
    padding: 0;
}

.nav-topbar {
    height: 40px;
}

.topbar-content {
    display: inline-flex;
    align-items: end;
    gap: 10px;
}

    .topbar-content img {
        height: 26px;
    }

.text-logo-bc {
    font-family: "Noto Sans";
    font-size: 18px;
    font-weight: 800;
    color: aliceblue;
    cursor: default;
}

.topbar-con .topbar-content {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.boxed-menu .topbar .topbar-con .topbar-content i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    height: auto;
    width: auto;
    color: aliceblue;
    font-size: 13px;
}

.boxed-menu .topbar .topbar-con .topbar-content a {
    /*color: #bcbcbd;*/
    color: #ffffffba;
}


.boxed-menu .topbar i {
    top: 0;
    display: inline-block;
    position: relative;
    /*width: 45px;*/
    /* border: 1px solid #e5e5e5; */
    /* height: 45px; */
    margin-right: 10px;
    line-height: unset;
    /* line-height: 45px; */
    text-align: center;
    /* border-radius: 50%; */
}

#hero {
    position: relative;
    overflow: hidden;
    background: #fff;
}

    #hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 40%; /* ส่วนที่ต้องการให้ค่อยๆ จาง */
        z-index: 1;
        pointer-events: none;
        background: linear-gradient( to bottom, rgba(255,255,255,0), #F5F7FA );
    }

    #hero > * {
        position: relative;
        z-index: 2;
    }
