body {
    margin: 0;
    font-family: "Kanit", "Roboto", sans-serif !important;
    /* font-family: Arial, sans-serif; */
    scroll-behavior: smooth;
    /* ทำให้เลื่อนหน้าอย่างนุ่มนวล */
}


.header-top {
    overflow: hidden;
    /* background-color: #777474; */
    background-color: #fafafafa;
    /* box-shadow: 0px 3px 4px 0px #d9d9d9; */
    padding: 0px 10px;
    position: fixed;
    /* ทำให้ header อยู่ติดด้านบน */
    top: 0;
    width: 100%;
    transition: top 0.3s;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.header-top a {
    float: left;
    color: #55555569;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 25px;
    /* border-radius: 4px; */
}

.header-top a:hover {
    color: #ff9800;
}

.header-top img.logo {
    width: 150px;
}

.header-top-right {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
    /* border-bottom: 2px solid #eeeeeea3; */
}

.header-top-left {
    float: left;
    display: flex;
    align-items: center;
}


.header-center {
    background-color: #f1f1f178;
    /* margin-top: 80px; */
    /* padding-top: 5px;
    padding-bottom: 5px; */
}


#navbar-menu {
    /* position: sticky; */
    position: relative;
    top: 0;
    /* background-color: #f28b1f; */
    background-color: #fafafa;
    /* background-color: #ff9800; */
    white-space: nowrap;
    /* box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.1); */
    font-size: 16px;
    z-index: 1000;
}

#navbar-menu a {
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    color: #58585a;
    transition: color 0.3s;
}

#navbar-menu a:hover {
    color: #000000;
}

.dropdown {
    /* display: inline-block; */
    position: relative;
}

.dropdown-content {
    display: none;
    /* position: absolute; */
    /* top: 100%; 
    left: 0; */
    background-color: #f9f9f9;
    /* background-color: #434242; */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    margin-top: 0;
    padding: 0;
    width: 100%;
}

.dropdown-item:hover {
    color: #FF9800;
    background-color: #e0e0e0;
}

.dropdown-show {
    display: flex;
    flex-direction: column;
    left: 10%;
}

.over-menu {
    overflow-x: auto;
    white-space: nowrap;
    /* scrollbar-width: thin; */
}

.over-menu::-webkit-scrollbar {
    height: 6px;
}

.over-menu::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
}

.over-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}




.content-sticky {
    padding: 0px;
    background-color: #ffffff;
}

.box-section {
    margin: 20px 0px;
    border-bottom: 1px solid #f1f1f1;
}

.box-content {
    background-color: #ffffff;
    padding: 40px 20px 20px 20px;
    /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
    border-radius: 8px;
    color: #555;
}

.box-content1 {
    background-color: #ffffff;
    padding: 0px 20px 20px 20px;
    /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
    border-radius: 8px;
    color: #555;
}

.box-content img {
    /* width: 100%; */
    /* height: auto; */
    /* border-radius: 8px; */
    /* transition: transform 0.3s ease; */
}

/* .box-content img:hover {
    transform: scale(1.1);
} */


.footer {
    overflow: hidden;
    background-color: #777474;
    /* box-shadow: 0px 3px 4px 0px #d9d9d9; */
    padding: 15px 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    /* transition: top 0.3s; */
    z-index: 1000;
    color: #fff;
}

.footer-logo {
    width: 20%;
}

.cloud-services {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.box {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 1px 2px #e3e3e3;
}

.box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}



.content-hrm,
.content-svr {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.box-hrm {
    width: 250px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
}

.box-svr {
    width: auto;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
}

.box-hrm img,
.box-svr img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.box-hrm h6,
.box-hrm h4,
.box-hrm h5,
.box-svr h6,
.box-svr h4,
.box-svr h5 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    text-align: center;
    color: #555;
}

.box-hrm p,
.box-svr p {
    font-size: 14px;
    color: #666666;
    text-align: center;
    flex-grow: 1;
    padding: 0 10px;
    margin: 0;
}

.btn {
    margin-top: 10px;
    align-self: center;
}


#map-plugin {
    width: 100%;
    overflow: hidden;
}

.page-plugin {
    position: sticky;
    top: 10px;
    width: 100%;
    overflow: auto;
    white-space: nowrap;
    box-shadow: -2px 0px 4px #ececec;
    border-radius: 3px;
}

.page-plugin::-webkit-scrollbar {
    height: 6px;
}

.page-plugin::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
}

.page-plugin::-webkit-scrollbar-track {
    background: #f1f1f1;
}


.box {
    width: 100%;
    max-width: 80px;
    height: auto;
}


.text-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #555;
}


.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
}

.icon-row {
    display: flex;
    /* justify-content: center; */
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
    padding: 20px;
}

.icon-col {
    width: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-col img {
    width: 65px;
    height: auto;
}

.icon-col p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    /* color: #111010; */
}



#background-blur.tab-open {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s, backdrop-filter 0.3s;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* #navbar-menu.tab-open {
    position: sticky;
    top: 0;
    background-color: #fafafa;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    z-index: 1000;
} */

.language-select {
    width: 90px;
    padding: 5px;
    font-size: 16px;
    border: none;
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    background-color: #fafafa;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 30px;
    transition: background-color 0.3s, border-color 0.3s;
}

.language-select option {
    padding: 8px;
}

.language-select:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.language-select:focus {
    /* background-color: #f0f8ff; 
    border-color: #007bff; */
    outline: none;
}

#navbar-news {
    /* position: sticky; */
    position: relative;
    top: 0;
    background-color: #fafafa;
    box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.news-ticker {
    position: relative;
    padding-left: 70px;
    overflow: hidden;
}

.text-ticker {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f28b1f;
    color: white;
    padding: 15px 40px 20px 10px;
    font-weight: bold;
    z-index: 1;
    white-space: nowrap;
    font-size: 24px;
    border-radius: 0px 70px 10px 0px;
}

/* .blinking-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: red; 
    border-radius: 50%; 
    margin-right: 10px;
    animation: blinking 2s infinite;
}

@keyframes blinking {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
} */

.blinking-icon {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #f8d9c8;
    border-radius: 50%;
    margin-right: 10px;
    /* animation: blinking 2s infinite; */
}

.blinking-icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #ffb78e;
    animation: blinking 2s infinite;
}


/* .blinking-icon::before {
    width: 18px;  
    height: 18px; 
    top: -4px;
    left: -4px;
} */


.blinking-icon::after {
    width: 25px;
    height: 25px;
    top: -7px;
    left: -7px;
}

@keyframes blinking {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    /* 100% {
        transform: scale(1.5);  
        opacity: 0.5;
    } */
}

#newsMarquee-link {
    padding: 8px 0px 0px 0px;
    font-size: 18px;
}

#newsMarquee-link a {
    text-decoration: none !important;
    color: #f05323;
}

#newsMarquee-link a:hover {
    text-decoration: underline !important;
    color: #f28b1f;
}

.caption-top {
    text-align: center;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0));
    padding: 5px;
    z-index: 1;
    box-sizing: border-box;  /* Ensure padding is included in the width */
}

.caption-top a {
    text-decoration: none !important;
    color: #9c9c9c;
}

.caption-top a:hover {
    text-decoration: none !important;
    font-size: 18px;
    color: #fafafa;
}

.image-wrapper {
    position: relative;
    width: 100%;  /* Ensure it takes full width of its parent */
    height: 100%; /* Ensure it stretches to full height */
}

.overflow {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 100%; /* Ensure it stretches to full height */
}

.zoom img,
.zoom iframe {
    transition: all 0.2s linear;
    border-radius: 6px;
    width: 100%; 
    height: 100%; /* Fill the height */
    object-fit: cover; /* This will ensure the aspect ratio is maintained */
}

.zoom:hover img,
.zoom:hover iframe {
    transform: scale(1.1);
}

.image-wrapper img,
.image-wrapper iframe {
    width: 100%;
    height: 100%;  /* Ensure the image/iframe fills the space */
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;  /* Allow text wrapping */
}


/* .owl-carousel .item {
    color: #fff;
    border-radius: 5px;
    text-align: center;
} */

.custom-card {
    /* width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 10px;
    background-color: #fff; */
}

.custom-card-header {
    /* background-color: #f4f4f4;
    padding: 15px;
    text-align: center;
    font-weight: bold; */
}

.custom-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-card-body {
    /* padding: 15px; */
}

.custom-card-title {
    /* font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px; */
}

.custom-card-text {
    /* font-size: 14px;
    color: #555; */
}



.banner-section {
    position: relative;
    width: 100%;
    /* max-width: 800px;   */
    /* height: 300px;  */
    margin: 0 auto;
    overflow: hidden;
    z-index: 999;
}

.banner-container {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-carousel-item {
    background-color: #ffffff;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.banner-image {
    width: 100%;
    max-height: 300px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.banner-control-prev,
.banner-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: rgb(0 0 0 / 11%);
    border-radius: 6px;
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.banner-control-prev {
    left: 10px;
}

.banner-control-next {
    right: 10px;
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.banner-pagination {
    width: 8px;
    height: 8px;
    margin: 0 5px;
    border-radius: 50%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: rgb(0 0 0 / 11%);
    cursor: pointer;
}

.banner-pagination.active {
    background-color: rgba(0, 0, 0, 0.3);
}


/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 9999;
    padding-top: 70px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 60%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.modal-close,
.modal-close-sign-in,
.modal-close-forgot-password
 {
    color: #555;
    float: right;
    font-size: 28px;
    font-weight: bold;
}


.modal-close:hover,
.modal-close:focus,
.modal-close-sign-in:hover,
.modal-close-sign-in:focus,
.modal-close-forgot-password:hover,
.modal-close-forgot-password:focus
{
    color: #e91e63;
    text-decoration: none;
    cursor: pointer;
}


.modal-header {
    padding: 2px 16px;
    background-color: #fefefe;
    /* color: white; */
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.modal-body {
    padding: 2px 16px;
}

.modal-body>div {
    margin: 10px;
}

.modal-body>div a {
    text-decoration: none;
    color: #555;
}

.modal-body>div a:hover {
    color: #ff9800;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #fefefe;
    /* color: white; */
}


.emet-login {
    width: 100%;
    border: 1px solid #e2e1e1;
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, .1);
}

.emet-login:focus {
    border-color: #fec086;
    outline: 0;
    box-shadow: 1px 2px 7px 2px rgb(255 234 212);
}


/* For small smartphones */
@media screen and (max-width: 480px) {
    .header-top a {
        float: none;
        display: block;
        text-align: left;
        padding: 6px;
    }

    .header-top-right {
        float: right;
    }

    .header-link {
        display: flex;
    }

    .header-top-left {
        float: none;
    }

    #map-plugin {
        max-width: 280px;
        overflow: hidden;
    }

    .box {
        width: 80px;
        height: 80px;
    }


}

.line-ref {
    border-left: 5px solid #f46e20;
    padding-left: 10px;
}
.line-ref1 {
    border-left: 5px solid #f46e20;
    padding-left: 10px;
    margin-top: 50px;
    line-height: 1.2; /* คุมความสูงข้อความ */
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left-color: #ff8c0a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
to {
    transform: rotate(360deg);
}
}

.hidden {
    display: none;
}

.btn-orange {
    background-color: #f37021;
    color: white;
    border: none;
}

.btn-orange:hover {
    background-color: #d65c1a;
    color: white;
}

/* For medium-sized smartphones */
@media screen and (max-width: 768px) {
    .row>[class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #map-plugin {
        max-width: 420px;
        overflow: hidden;
    }
}

/* For tablets */
@media screen and (max-width: 1024px) {}

/* For small laptops */
@media screen and (max-width: 1366px) {}

/* For standard desktop screens */
@media screen and (max-width: 1920px) {}

/* For large screens (4K resolution) */
@media screen and (min-width: 1921px) {}