:root,
[data-bs-theme=light] {
    --bs-body-bg1: #fff;
    --bs-body-bg2: #f2f2f2;
    --bs-body-bg3: #fff0;
    --bs-body-bg4: #809494;
    --bs-body-bg5: #809494;
    --bs-body-bg6: #6e8181;
    --bs-dark-text-emphasis1: #000;
    --bs-dark-text-emphasis: #000;
    --bs-body-counter: #f5f5f5;
    --bs-text-counter: #333;
    --bs-text-head: #462f6a;
    --bs-text-but: #fff;
    --bs-text-coun: #8d65a1;
}

[data-bs-theme=dark] {
    color-scheme: dark;
    --bs-body-bg: #fff;
    --bs-body-bg1: #fff;
    --bs-body-bg2: #fff;
    --bs-body-bg3: #fff;
    --bs-body-bg4: #fff;
    --bs-body-bg5: #fff;
    --bs-body-bg6: #fff;
    --bs-dark-text-emphasis1: #000;
    --bs-dark-text-emphasis: #000;
    --bs-body-counter: #3d3d3d;
    --bs-text-counter: #f5f5f5;
    --bs-text-head: #9f81df;
    --bs-text-but: #494949;
    --bs-text-coun: #fff;
}

#navbar {
    background-color: var(--bs-body-bg1);
    /* Black background color */
    position: sticky;
    top: 0;
    /* overflow: hidden;*/
    z-index: 99;
    /* Transition effect when sliding down (and up) */
    box-shadow: 4px 0 20px -5px rgba(0, 0, 0, 0.2);

}

.scrolled {
    background-color: var(--bs-body-bg1) !important;
    box-shadow: 4px 0 20px -5px rgba(0, 0, 0, 0.2);
    /* สีเมื่อเลื่อนลง */
}

@media (max-width: 576px) {
    .dropdown-item::after {
        transform: rotate(90deg) !important;
    }
}

.dropdown .dropdown-menu .set-menu li {
    padding: 0 !important;
}

.header-top {
    position: relative;
    z-index: 1;
    padding: 0 105px 0 0;
    background-color: #247959;
}

.header-contact li a i {
    color: #247959;
}

.navbar-brand img {
    width: 85%;
}

.header-top__left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 8px 15px;
}

.header-top__left::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background-color: #000;
    z-index: -1;
    left: 0;
    top: 0;
    bottom: 0;
}

.header-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-contact li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header-contact li a {
    color: #fff;
    margin-right: 15px;
    font-size: x-small;
}

.header-social a i {
    color: #73b35a;
    margin-right: 8px;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-active-color) !important;
    text-decoration: none;
    background-color: #73b35a !important;
}

.header-layout4 .header-social a {}

.header-social a {
    display: inline-block;
    color: #fff;
    line-height: 1;
    margin-right: 15px;
    font-size: x-small;
}

.header-links>ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    gap: 35px;
}

.header-links>ul>li>a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}



.navbar-toggler {
    color: var(--bs-dark-text-emphasis);
}

/* Style the navbar links */
#navbar a {
    font-size: 17px;
    display: block;
    color: var(--bs-dark-text-emphasis);
    text-decoration: none;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-nav .dropdown-menu {
    position: static;
    background-color: #f9f9f9;
    border: none;
    margin-top: 0px;
    width: 100%;
    border-radius: 0;
    padding: 0;
}

@media only screen and (max-width: 991px) {
    .dropdown-mega {
        display: inline-grid !important;
    }

    .mega-content {
        background-color: #fff;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .mega-content img {
        display: none;
    }

    .mega-content h6 a {
        text-align: left !important;
        margin-bottom: 10px;
    }
}

.mega-content h6 a {
    text-align: center;
    margin-bottom: 10px;
}
 .mega-content img {
        margin-bottom: 20px;
    }
.mega-content h6 {
    margin-bottom: 20px;
    font-weight: 200;
}

.navbar-nav .dropdown-menu li {
    padding: 0;
}

.navbar-nav .dropdown-menu a {
    color: #000 !important;
    font-weight: 200;
    font-size: 15px;
    padding: 5px;
}



#navbar a:hover {
    color: var(--bs-dark-text-emphasis);
}

.navbar-nav li {
    padding: 0 8px;
}

.main-header .menu-right-content {
    position: relative;
    display: flex;
    align-items: center;
}

.main-header .menu-right-content .support-box {
    position: relative;
    display: block;
    padding: 12px 40px 10px 80px;
    margin-right: 30px;
}

.main-header .menu-right-content .support-box .icon {
    position: absolute;
    display: inline-block;
    left: 0px;
    top: 0px;
    width: 56px;
    height: 56px;
    line-height: 62px;
    text-align: center;
    background: #0084ce;
    font-size: 30px;
    border-radius: 50%;
}

.main-header .menu-right-content .support-box .icon i {
    color: #fff;
    margin-top: -10px;
}

.main-header .menu-right-content .support-box span {
    position: relative;
    display: block;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 2px;
    color: #809494;
}

.main-header .menu-right-content .support-box h6 {
    position: relative;
    display: block;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

.main-header .menu-right-content .btn-box {
    position: relative;
    width: 250px;
}

.main-header .menu-right-content .btn-box a {
    position: relative;
    display: inline-block;
    font-size: 17px;
    line-height: 17px;
    color: #fff;
    font-weight: 700;
    padding: 20px 30px;
    width: 250px;
    text-transform: uppercase;
}

.main-header .menu-right-content .btn-box a {
    color: #fff !important;
    background: #0084ce;
}






.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */


/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* rtl:begin:ignore */
.marketing .col-lg-4 p {
    margin-right: .75rem;
    margin-left: .75rem;
}

/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
    margin: 5rem 0;
    /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
/* rtl:begin:remove */
.featurette-heading {
    letter-spacing: -.05rem;
}

/* rtl:end:remove */

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {

    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .featurette-heading {
        font-size: 50px;
    }
}

@media (min-width: 62em) {
    .featurette-heading {
        margin-top: 7rem;
    }
}