
/* index_.css */
body {
    margin: 0;
    font-family: "Kanit", "Roboto", sans-serif !important;
    scroll-behavior: smooth;
}
html,
body.is-mobile {
  min-width: 345px !important;
  overflow-x: hidden !important;
}

body.is-tablet {
  /* min-width: 767px !important; */
}

body.is-desktop {
  min-width: 768px !important;
}

@media (max-width: 768px) {
    .card-fancy {
        margin-bottom: 15px;
    }
}

.header-top {
    overflow: hidden;
    background-color: #fafafafa;
    padding: 10px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.header-top a {
    color: #ffffff;
    text-align: center;
    /* padding: 8px; */
    text-decoration: none;
    font-size: 14px;
    line-height: 25px;
}

.header-top a:hover {
    color: white;
}

.header-top img.logo {
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.header-top-right a#myBtn-sign-in,
.header-top-right a[href*="register"] {
    display: inline-block;
    padding: 8px 15px;
    font-size: 14px;
    background: #ffffffff;
    color: #555;
    border-radius: 4px;
    white-space: nowrap;
    box-sizing: border-box;
}

.header-top-right .header-link a[href*="shop"] {
    padding: 8px 15px;
    font-size: 14px;
    display: inline-block;
    white-space: nowrap;
    background: #ffa719;
    color: #555;
    border-radius: 4px;
    box-sizing: border-box;
}

.language-select {
    padding: 6px;
    font-size: 15px;
    color: #555;
    border: none;
     border-radius: 4px;
}

.language-select option {
    padding: 8px;
}

.language-select:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.language-select:focus {
    outline: none;
}

.header-center {
    background-color: #f1f1f178;
}

#navbar-menu {
    position: relative;
    top: 0;
    background-color: #fafafa;
    white-space: nowrap;
    font-size: 16px;
    z-index: 1000;
}

#navbar-menu a {
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

#navbar-menu a:hover {
    color: #000000;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    background-color: #f9f9f9;
    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;
}

.over-menu::-webkit-scrollbar {
    height: 6px;
}

.over-menu::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
}

.over-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#navbar-news {
    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: #ff9900;
    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 {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #f8d9c8;
    border-radius: 50%;
    margin-right: 10px;
}

.blinking-icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #ffb78e;
    animation: blinking 2s infinite;
}

.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;
    }
}

#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;
}

.content-sticky {
    padding-bottom: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}


.box-section {
    margin: 20px 0px;
    border-bottom: 1px solid #f1f1f1;
}

.box-content {
    background-color: #ffffff;
    padding: 0px 0px 80px 0px;
    border-radius: 8px;
    color: #555;
}

.box-content1 {
    background-color: #ffffff;
    padding: 0px 20px 20px 20px;
    border-radius: 8px;
    color: #555;
}

.footer {
    overflow: hidden;
    background-color: #777474;
    padding: 15px 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    color: #fff;
}

.footer-logo {
    width: 20%;
}

.cloud-services, .content-hrm, .content-svr {
    display: flex;
    justify-content: center;
    align-items: stretch;
    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-sizing: border-box;
}

.box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

.box-hrm, .box-svr {
    width: 250px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    flex-grow: 1;
    flex-basis: 250px;
}

.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;
    padding: 20px;
    box-sizing: border-box;
}

.page-plugin {
    position: sticky;
    top: 10px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: -2px 0px 4px #ececec;
    border-radius: 3px;
    padding: 10px 0;
}

.page-plugin::-webkit-scrollbar {
    height: 6px;
}

.page-plugin::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
}

.page-plugin::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.page-plugin .box {
    display: inline-flex;
    width: auto;
    min-width: 80px;
    height: 80px;
    margin: 0 5px;
    vertical-align: top;
}

.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;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
}

.icon-col {
    width: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-col img {
    width: 65px;
    height: auto;
}

.icon-col p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    word-break: break-word;
}

#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;
}

.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;
    color: #9c9c9c;
}

.caption-top a {
    text-decoration: none !important;
    color: inherit;
}

.caption-top a:hover {
    text-decoration: none !important;
    font-size: 18px;
    color: #fafafa;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.overflow {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 100%;
}

.zoom img,
.zoom iframe {
    transition: all 0.2s linear;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom:hover img,
.zoom:hover iframe {
    transform: scale(1.1);
}

.image-wrapper img,
.image-wrapper iframe {
    width: 100%;
    height: 100%;
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.banner-section {
    position: relative;
    width: 100%;
    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: 360px;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.banner-control-prev,
.banner-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    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: rgb(0 0 0 / 11%);
    cursor: pointer;
}

.banner-pagination.active {
    background-color: rgba(0, 0, 0, 0.3);
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 70px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.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
}

@-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
    }
}

.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;
    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;
}

.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);
}

.line-ref {
    padding-left: 10px;
}
.line-ref1 {
    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;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .header-top-left {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }
    .header-top img.logo {
        max-width: 120px;
        margin-bottom: 5px;
    }
    .header-top a {
        font-size: 13px;
        padding: 5px;
    }

    .header-top-right {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 6px;
        margin-top: 10px;
    }
    .header-top-right a#myBtn-sign-in,
    .header-top-right a[href*="register"],
    .header-top-right .header-link a[href*="shop"] {
        font-size: 11px;
        padding: 5px 8px;
        margin: 0;
    }
    .language-select {
        font-size: 12px;
        padding: 3px 6px;
        width: 80px;
        padding-left: 20px;
    }

    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #map-plugin {
        max-width: 420px;
        overflow: hidden;
        padding: 10px;
    }
    .modal-content {
        width: 90%;
    }

    .box-hrm, .box-svr {
        width: 100%;
        max-width: 300px;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 5px;
    }
    .header-top img.logo {
        max-width: 100px;
    }
    .header-top-right a#myBtn-sign-in,
    .header-top-right a[href*="register"],
    .header-top-right .header-link a[href*="shop"] {
        font-size: 10px;
        padding: 4px 6px;
    }
    .language-select {
        font-size: 11px;
        padding: 2px 4px;
        width: 70px;
        padding-left: 15px;
    }

    #map-plugin {
        max-width: 280px;
        overflow: hidden;
    }

    .box-content, .box-content1 {
        padding: 20px 10px;
    }
    .box-hrm h6, .box-hrm h4, .box-hrm h5,
    .box-svr h6, .box-svr h4, .box-svr h5 {
        font-size: 16px;
    }
    .box-hrm p, .box-svr p {
        font-size: 13px;
    }
    .caption-top {
        font-size: 12px;
        padding: 3px;
    }
    .caption-top a:hover {
        font-size: 14px;
    }
    .icon-col {
        width: 55px;
    }
    .icon-col img {
        width: 55px;
    }
    .icon-col p {
        font-size: 12px;
    }
    .box-hrm, .box-svr {
        max-width: 280px;
    }
}

@media (max-width: 375px) {
    .header-top {
        padding: 3px;
    }
    .header-top img.logo {
        max-width: 90px;
    }
    .header-top-right {
        gap: 4px;
        justify-content: space-around;
    }
    .header-top-right a#myBtn-sign-in,
    .header-top-right a[href*="register"],
    .header-top-right .header-link a[href*="shop"] {
        font-size: 9px;
        padding: 3px 5px;
    }
    .language-select {
        font-size: 10px;
        width: 60px;
        padding-left: 10px;
    }
}
      .valid {
            color: #4CAF50;
        }
        
        .invalid {
            color: #ff3d00;
        }
        .box-consent{
            border: 1px solid #d2d2d2;
            padding: 20px;
            border-radius: 3px;
        }
        


    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #f1f1f1;
        border-bottom: 1px solid #ddd;
        position: relative;
        z-index: 1000;
    }

    .header-top-left {
        display: flex;
        align-items: center;
    }

    .header-top .logo {
        height: 55px;
        max-height: 55px;
        width: auto;
    }

    .header-top-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .header-top-buttons {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .header-top-buttons a,
    .header-top-buttons button {
        padding: 8px 15px;
        border-radius: 4px;
        text-decoration: none;
        color: white;
        font-size: 14px;
        white-space: nowrap;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        transition: background-color 0.3s;
    }

    .header-top-buttons .store-btn {
        background: #ff9900;
    }

    .header-top-buttons .store-btn:hover {
        background: #ff9900;
    }

    #logout-btn {
        background: #ff3333;
    }

    #logout-btn:hover {
        background: #cc0000;
    }

    .language-select-container {
        position: relative;
        display: inline-block;
        z-index: 1001;
    }

    .flag-icon {
        width: 24px;
        height: auto;
        cursor: pointer;
        border: 1px solid #ddd;
        border-radius: 2px;
    }

    .flag-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #f9f9f9;
        min-width: 120px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1003;
        border-radius: 4px;
        padding: 5px 0;
    }

    .flag-dropdown a {
        color: black;
        padding: 8px 16px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .flag-dropdown a:hover {
        background-color: #f1f1f1;
    }

    .header-social-links {
        display: flex;
        gap: 5px;
    }

    .header-social-links a {
        background: #ff9900;
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s;
    }

    .header-social-links a:hover {
        background-color: #ff9900;
    }

    .header-mobile {
        display: none;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: transparent;
        z-index: 1000;
        position: relative;
    }

    .header-mobile .logo {
        height: 70px;
        width: auto;
        display: block;
    }

    .mobile-dropdown-tab {
        position: static;
        left: auto;
    }

    .mobile-dropdown-button {
        background-color: transparent;
        color: #333;
        padding: 10px;
        border: none;
    }

    .hamburger {
        color: #333;
        font-size: 28px;
        cursor: pointer;
    }

    .mobile-dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1002;
        border-radius: 4px;
        padding: 10px 0;
    }

    .mobile-dropdown-content a {
        padding: 8px 12px;
    }

    .mobile-dropdown-content a,
    .mobile-dropdown-content button {
        color: #555;
        text-decoration: none;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border: none;
        cursor: pointer;
    }

    .mobile-dropdown-content a[href*="store"],
    .mobile-dropdown-content button[id*="logout"] {
        background-color: #ffa719;
        color: white;
    }

    .mobile-dropdown-content a[href*="store"]:hover,
    .mobile-dropdown-content button[id*="logout"]:hover {
        background-color: #ff9900;
    }

    .mobile-dropdown-content a:hover,
    .mobile-dropdown-content button:hover {
        background-color: #f1f1f1;
    }

    .navbar-desktop {
        background-color: #ff9900;
        position: relative;
        z-index: 999;
        padding: 6px 0;
    }

    .desktop-menu-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        white-space: nowrap;
        gap: 35px;
    }

    .desktop-menu-item {
        position: relative;
        display: inline-block;
        color: #ffffff;
        text-decoration: none;
        padding: 10px 15px;
        font-size: 20px;
        transition: background-color 0.3s;
    }

    .desktop-menu-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .desktop-dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        min-width: 180px;
        border-radius: 4px;
        text-decoration: none;
    }

    .desktop-menu-item:hover .desktop-dropdown-content {
        display: block;
    }

    .desktop-dropdown-content a {
        color: #565656;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        white-space: normal;
    }

    .desktop-dropdown-content a:hover {
        background-color: #f1f1f1;
    }

    .navbar-mobile-container {
        display: none;
        position: relative;
        background-color: #ff9900;
    }

    .hamburger {
        font-size: 28px;
        cursor: pointer;
        color: #555;
    }

    .mobile-slide-out-menu {
        background-color: #ff9900;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        overflow-y: auto;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 60px;
    }

    .mobile-slide-out-menu.open {
        transform: translateX(0);
    }

    .mobile-slide-out-menu a {
        color: #fff;
        text-decoration: none;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 18px;
        display: block;
    }

    .mobile-slide-out-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-slide-out-menu .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-slide-out-menu .dropdown-content {
        display: none;
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 20px;
    }

    .mobile-slide-out-menu .dropdown-content.show {
        display: block;
    }

    .mobile-slide-out-menu .dropdown-content a {
        padding: 10px 25px;
        font-size: 16px;
        background-color: rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .close-btn {
        position: absolute;
        top: 15px;
        right: 25px;
        font-size: 36px;
        color: #fff;
        cursor: pointer;
    }

    @media (max-width: 1024px) {
        .header-top {
            display: none;
        }

        .header-mobile {
            display: flex;
        }

        .navbar-desktop {
            display: none;
        }

        .navbar-mobile-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1em;
        }
    }

    @media (min-width: 1025px) {
        .navbar-mobile-container {
            display: none;
        }
    }

    #navbar-news {
        position: relative;
        z-index: 998;
    }

    .news-ticker {
        position: relative;
        background-color: #ffffffff;
        color: #555;
        font-weight: bold;
        z-index: 998;
        white-space: nowrap;
        font-size: 24px;
        border-radius: 0px 70px 10px 0px;
    }

    @media (max-width: 768px) {
        .text-ticker {
            font-size: 18px;
            padding: 10px 20px 15px 5px;
        }
    }

    @media (max-width: 480px) {
        .text-ticker {
            font-size: 14px;
            padding: 8px 15px 10px 5px;
        }
    }

    a {
        color: #ffffff;
        ;
    }

    .language-select-container {
        position: relative;
        display: inline-block;
        z-index: 1001;
    }

    .language-display {
        display: flex;
        align-items: center;
        padding: 8px 15px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        gap: 10px;
        font-size: 14px;
        font-weight: bold;
        min-width: 80px;
    }

    #flag-dropdown-list {
        display: none;
        position: absolute;
        background-color: #fff;
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 150px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 9999999;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    #flag-dropdown-list li a {
        color: black;
        padding: 10px 15px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    #flag-dropdown-list .flag-icon {
        width: 24px;
        height: 18px;
        object-fit: cover;
        border: 1px solid #eee;
    }
/* ─────────────────────────────────────────────────────────────
   <picture> ที่ img_pic() สร้างขึ้น ต้องไม่มีผลกับ layout ของ "การ์ดรูป"
   ค่าเริ่มต้นของ <picture> คือ display:inline ทำให้ <img> ข้างใน
   คิด height:100% เทียบกับ <picture> แทนกล่องแม่ตัวจริง
   → .box-image img { height:100%; object-fit:cover } จะยุบความสูงทันที
     ที่รูปมีคู่ webp (มีคู่บ้างไม่มีบ้าง = การ์ดสูงไม่เท่ากันทั้งหน้า)

   ⛔ ห้ามประกาศเป็น `picture { display: contents }` ทั้งเว็บเด็ดขาด
      Bootstrap ใช้ `.ratio > * { position:absolute; width:100%; height:100% }`
      ซึ่งเป็น selector ลูกตรง พอ <picture> ไม่สร้างกล่อง position:absolute
      จะไม่มีผล <img> หลุดไปไหลต่อท้ายตัวเว้นสัดส่วน 16:9
      ส่วนบนโชว์ background-image ของกล่อง = การ์ดวิดีโอหน้าแรกเห็นรูปซ้อนสองชั้น
      (template/video/video_home.php เขียน <picture> ไว้เองอยู่ก่อนแล้ว)
      จึงต้องจำกัดขอบเขตเฉพาะกล่องที่ต้องการเท่านั้น
   ───────────────────────────────────────────────────────────── */
.box-image picture,
.block-image-top picture,
.card-image-wrapper picture,
.sub-news-image-wrapper picture,
.zoom picture {
    display: contents;
}

/* ─────────────────────────────────────────────────────────────
   2026-08-28 — เว้นระยะใต้แถบแชร์บนหน้ารายละเอียด

   แถบแชร์อยู่ชิดขวาบน แล้วชื่อเรื่อง (h1) ตามมาทันทีโดยไม่มีระยะห่าง
   ตัว h1 ถูกสร้างอัตโนมัติจากเนื้อหาพร้อมสไตล์ margin:0 0 .6em ติดมาด้วย
   ซึ่งเว้นแค่ด้านล่าง ด้านบนจึงเป็นศูนย์ ทั้งสองก้อนเลยติดกัน

   แก้ที่แถบแชร์แทนการไปแก้ h1 เพราะ h1 ถูกประกอบขึ้นในโค้ดพร้อมสไตล์ในบรรทัด
   ซึ่งชนะไฟล์สไตล์เสมอ และหน้ารายละเอียดทั้งห้าชนิดใช้แถบแชร์ก้อนเดียวกัน
   วางไว้ที่ไฟล์กลางจึงมีผลครบทุกหน้าโดยไม่ต้องแก้ห้าไฟล์
   (บนจอมือถือแถบนี้ถูกซ่อนอยู่แล้ว จึงไม่กระทบ)
   ───────────────────────────────────────────────────────────── */
.social-share-top {
    margin-bottom: 28px;
}

/* news_.css */
.content-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.box-news {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}


.box-image {
    flex: 1; 
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 250px;
    overflow: hidden;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box-image img:hover {
    transform: scale(1.1);
}

.box-content {
    flex: 1; 
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box-content p,
.box-content h6,
.box-content ul {
    margin: 0;
}

.box-news ul {
    padding-left: 20px;
}

.text-news{
    text-decoration: none;
    color: #555;
}

@media (max-width: 1024px) {
    .content-news {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-news {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content-news {
        grid-template-columns: 1fr;
    }
}

/* product.css */
/* แยกออกจาก views/product.php เมื่อ 2026-08-19 */
.pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .pagination a {
            display: inline-block;
            margin: 0 5px;
            padding: 0px 10px;
            text-decoration: none;
            color: #555;

            border-radius: 4px;
            transition: background-color 0.3s, color 0.3s;
        }

        .pagination a:hover {
            background-color: #f1f1f1;
            color: #ffa719;
        }

        .pagination a.active {
            background-color: #ffa719;
            color: white;
            border: 1px solid #ffa719;
        }

        .pagination a[disabled] {
            color: #ccc;
            pointer-events: none;
            border-color: #ccc;
        }

        .btn-search {
            border: none;
            background-color: #ffa719;
            color: #ffffff;
            border-radius: 0px 10px 10px 0px;
        }

/* back_bar.css */
/* แถบปุ่มย้อนกลับบนมือถือ — คู่กับ template/back_bar.php (สร้าง 2026-09-07)
   ค่าเริ่มต้นคือ "ซ่อน" เพราะจอใหญ่มีเมนูเต็มอยู่แล้ว ไม่ต้องมีปุ่มนี้ */

.td-backbar {
    display: none;
}

@media (max-width: 768px) {

    .td-backbar {
        display: block;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 6px 12px;
    }

    .td-backbar-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        padding: 6px 4px;      /* เผื่อพื้นที่นิ้วกดให้สูงราว 32px */
        color: #777;
        font-size: 14px;
        line-height: 1.2;
        text-decoration: none;
    }

    .td-backbar-link:active {
        color: #ff9900;
    }

    .td-backbar-arrow {
        font-size: 20px;
        line-height: 1;
        color: #ff9900;
    }

    /* ชื่อหมวดยาว ๆ (ภาษาอังกฤษ/เกาหลี) ต้องไม่ดันแถวจนขึ้นบรรทัดใหม่ */
    .td-backbar-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
