
/* 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;
}

/* content.css */
/* แยกออกจาก template/content.php เมื่อ 2026-08-19 */
/* เพิ่มโค้ดส่วนนี้เข้าไป */
    body,
    html {
        overflow-x: hidden;
        /* background-color: #f0f2f5; กำหนดสีพื้นหลังหลักของ body เพื่อให้ดูสะอาดตา */
    }

    /* *** 🆕 แก้ไข: ใช้ class เดียว (line-ref) และ line-ref-custom สำหรับหัวข้อทั้งหมด *** */
    .line-ref-link {
        color: inherit; /* ให้สีตัวอักษรเป็นไปตาม h2 */
        text-decoration: none; /* ลบขีดเส้นใต้ */
        display: block; /* ทำให้คลิกได้ทั้งบล็อก h2 */
        cursor: pointer;
    }
    
    .line-ref,
    .line-ref-custom {
        display: block;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
        font-weight: 600;
        color: #555;
        position: relative;
        text-align: left;
        width: fit-content;
        padding-left: 15px;
    }

    .line-ref:after,
    .line-ref-custom:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 3px;
        height: 2.5rem;
        background-color: #ff9900;
        /* สีเส้นหลัก */
        border-radius: 2px;
    }

    /* สไตล์สำหรับหัวข้อที่อยู่บนพื้นหลังสีเข้ม (สีขาว) */
    .line-ref-white {
        color: #fff !important;
    }

    .line-ref-white:after {
        background-color: #fff !important;
    }
    
    /* สไตล์สำหรับส่วน "อะไรใหม่" ที่ปรับปรุงใหม่ (คงเดิม) */
    .news-wrapper {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 40px;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
    }
    
    /* ... สไตล์ที่เหลือของ news-wrapper, news-main-card, ฯลฯ คงเดิม ... */
    
    /* สไตล์สำหรับบล็อกสินค้าเดิม */
    .section.product-bg {
        padding: 30px 0;
    }

    /* ตัวห่อเนื้อหาของบล็อกโครงการ — padding ซ้าย-ขวา 20px มีเฉพาะที่นี่
       ทำให้หัวข้อ/การ์ดของโครงการเยื้องเข้าไป 20px มากกว่าทุกหมวด จึงตัดออก */
    .box-content-shop {
        padding: 40px 0 20px;
        border-radius: 8px;
        color: #555;
    }

    .article-luxury-section {
        padding: 40px 0;
        border-radius: 6px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    /* สไตล์สำหรับบล็อกเนื้อหาหลักแบบมีขอบ (content-block) */
    .content-block {
        padding: 1.5rem;

        width: 100%;
        /* ********** แก้ไข: เพิ่มระยะห่างด้านล่าง 3em ********** */
        margin-bottom: 3em;
    }

    .content-wrapper1 {
        max-width: 90%;
        margin: 0 10%;
    }

    .content-wrapper {
        max-width: 90%;
        margin: 0 6%;
    }

    /* สไตล์สำหรับพื้นหลังสีเต็มจอ (full-width-block)
       09-08 เลิกใช้ท่า width:100vw + left:50% + margin -50vw
       เหตุผล: 100vw นับ "รวมแถบเลื่อนของเบราว์เซอร์" แต่บล็อกอื่นกว้างเท่าเนื้อหาจริง
       บล็อกนี้จึงเลื่อนออกซ้ายและล้นขอบขวาข้างละครึ่งของแถบเลื่อน (~8px ที่จอ 375px)
       ⇒ หัวข้อกับการ์ดข้างในไม่เคยตรงแนวกับหมวดอื่นเลย ทั้งมือถือและเดสก์ท็อป
       บล็อกนี้เป็นลูกตรงของ body อยู่แล้ว width:100% จึงเต็มความกว้างหน้าเว็บพอดี
       พื้นหลังสีส้มยังเต็มขอบจอเหมือนเดิม แค่ไม่ล้นออกไปอีก */
    .full-width-block {
        width: 100%;
        position: relative;
        /* padding ซ้าย-ขวาเท่า .content-block เพื่อให้กรอบในเริ่มที่เดียวกัน */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        /* ********** แก้ไข: เพิ่มระยะห่างด้านล่าง 3em ********** */
        margin-bottom: 3em;
        margin-top: 2em;
    }

    /* ต้องเป็นค่าเดียวกับ .content-wrapper เป๊ะ ไม่งั้นส่วนนี้เยื้องกว่าหมวดอื่น
       (จอ ≤576px มีกฎรวมสองคลาสนี้เป็น 95%/auto อยู่ท้ายไฟล์แล้ว) */
    .full-width-content-inner {
        max-width: 90%;
        margin: 0 6%;
    }

    /* .full-width-content-inner .line-ref-custom {
        color: #fff;
    } */

    /* .full-width-content-inner .line-ref-custom:after {
        background-color: #fff;
    } */


    /* สไตล์สำหรับปุ่มคัดลอกลิงก์ที่ปรับปรุงใหม่ (คงเดิม) */
    .copy-link-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /* ********** แก้ไข: ลดขนาดปุ่ม ********** */
        width: 36px;
        height: 36px;
        border: 1px solid #ccc;
        background-color: #fff;
        color: #666;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        /* ********** แก้ไข: ลดขนาด font ********** */
        font-size: 1.2rem;
    }

    .copy-link-btn:hover {
        background-color: #f0f0f0;
        border-color: #999;
        color: #333;
    }

    .content-sticky1 {
        padding-bottom: 0px;
        background-color: #ffffff;
        /* display: flex; */
        justify-content: end;
    }


    /* สไตล์เพิ่มเติมสำหรับก้อนแชร์ */
    .share-container-right {
        display: flex;
        /* ใช้ flexbox จัดก้อนแชร์ */
        justify-content: flex-end;
        /* ผลักก้อนไปทางขวา */
        width: 100%;
        /* ต้องกว้างเต็มพื้นที่เพื่อให้ justify-content ทำงานได้ */
        padding-top: 30px;
    }

    .share-container-left {
        display: flex;
        /* ใช้ flexbox จัดก้อนแชร์ */
        justify-content: flex-start;
        /* คงก้อนไว้ทางซ้าย (ค่า default ก็ได้ แต่ใส่เพื่อความชัดเจน) */
        width: 100%;
        padding-bottom: 3em;
    }

    /* ********** โค้ดที่เพิ่ม: สไตล์สำหรับไอคอนแชร์ใน mobile ********** */
    /* FIX: กำหนดขนาดการแสดงผลให้เป็น 36x36px เพื่อแก้ปัญหา Image Natural Dimensions */
    .social-share a img {
        width: 36px ;
        height: 36px ;
        max-width: 36px; 
        max-height: 36px; 
        display: block;
        /* แก้ปัญหาช่องว่างด้านล่างรูปภาพ */
    }

    /* ปรับขนาดไอคอน Twitter/X ที่มีการกำหนด width="36" height="36" ใน HTML
       ให้เหลือ 36px เพื่อความเป็นมาตรฐานและแก้ปัญหา Responsive Image */
    .social-share a img[alt="Share on Twitter"] {
        width: 28px ;
        height: 28px ;
        max-height: 36px !important;
        /* height: auto !important;
        width: auto !important; */
    }

    /* Responsive (คงเดิม) */
    @media (max-width: 992px) {
        .news-wrapper {
            grid-template-columns: 1fr;
        }
    }

    /* ********** แก้ไข: ปรับการจัดเรียงในโหมดมือถือ ********** */
    @media (max-width: 576px) {
        .news-wrapper {
            padding: 0 20px;
        }

        .news-side-img-wrapper {
            width: 100px;
        }

        /* ปรับ padding ของ content-wrapper ให้เหลือพื้นที่ขอบน้อยลง (หากจำเป็น) */
        .content-wrapper,
        .full-width-content-inner {
            max-width: 95%;
            margin: 0 auto;
        }

        .content-wrapper1 {
            /* ตรงนี้ใช้ 90% และ 10% อาจจะทำให้ชิดขวามากไป ปรับเป็น auto เพื่ออยู่ตรงกลาง */
            max-width: 95%;
            margin: 0 auto;
        }

        /* ********** เพิ่ม: ปรับระยะห่างระหว่างปุ่มแชร์ในโหมดมือถือ ********** */
        .social-share div {
            gap: 5px !important;
            /* ลดระยะห่างระหว่างปุ่ม */
        }

        /* ปรับขนาดตัวอักษร "แชร์หน้านี้" ในโหมดมือถือ */
        .share-container-left p,
        .share-container-right p {
            font-size: 16px !important;
        }
    }

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

/* ปรับขนาดปุ่ม Share ในมือถือ */
@media (max-width: 768px) {
    .social-share a img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .social-share a img[alt="Share on Twitter"] {
        width: 24px !important;
        height: 24px !important;
    }

    .copy-link-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }

    .share-container-left p,
    .share-container-right p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .social-share a img {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }

    .social-share a img[alt="Share on Twitter"] {
        width: 20px !important;
        height: 20px !important;
    }

    .copy-link-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.8rem !important;
    }

    .share-container-left p,
    .share-container-right p {
        font-size: 12px !important;
    }

    .social-share div {
        gap: 3px !important;
    }
}

/* content-2.css */
/* แยกออกจาก template/content.php เมื่อ 2026-08-19 */
.home-intro {
        max-width: 820px;
        margin: 0 auto;
        padding: 46px 16px 34px;
        text-align: center;
    }
    .home-intro .page-h1 {
        font-size: clamp(24px, 3.4vw, 38px);
        font-weight: 700;
        line-height: 1.3;
        color: #2b2b2b;
        margin: 0 0 14px;
    }
    .home-intro .home-intro-sub {
        font-size: clamp(15px, 1.4vw, 17px);
        line-height: 1.8;
        color: #6b6b6b;
        margin: 0 auto;
        max-width: 62ch;
    }
    @media (max-width: 768px) {
        .home-intro { padding: 30px 14px 24px; text-align: left; }
    }

/* 2026-08-20 — ซ่อนหัวเรื่อง H1 + คำโปรยจากหน้าแรกชั่วคราว (user สั่ง รอดีไซน์ใหม่)
   🔑 จงใจไม่ใช้ display:none และไม่ลบออกจาก HTML เพราะ H1 ตัวนี้คือของที่เพิ่งเพิ่ม
      ตอนแก้ SEO เมื่อ 2026-08-19 (ทั้งเว็บไม่เคยมี H1 มาก่อน) ถ้าเอาออกจากหน้า
      หน้าแรกจะกลับไปไม่มีหัวเรื่องให้ Google อ่านอีกครั้ง
   วิธีนี้ (visually hidden) คนไม่เห็น แต่ Google กับโปรแกรมอ่านหน้าจอยังอ่านได้ตามปกติ
   เปิดคืนเมื่อดีไซน์มา: ลบทั้งบล็อกนี้ทิ้ง */
.home-intro {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Blog_Blog_home.css */
/* แยกออกจาก template/Blog/Blog_home.php เมื่อ 2026-08-19 */
/* CSS ส่วนเดิมคงไว้เพื่อรักษา Layout */
    .card-premium {
        border: none;
        border-radius: 6px;
        overflow: hidden;
        background-color: #ffffff;
        color: #333;
        transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
        height: 100%;
        display: flex;
        flex-direction: column;
        min-height: 250px; 
    }
    .card-premium:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    .news-box-title {
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #555;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.5rem; 
        line-height: 1.3em;
    }
    .sub-news-image-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 6px 6px 0 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        height: 170px;
    }
    .sub-news-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .sub-news-title {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
        font-size: 1.1rem; 
        margin-bottom: 4px;
        color: #555;
    }
    #mainBlogCarousel .carousel-item img {
        height: 450px;
        width: 450px;
        object-fit: cover;
        border-radius: 6px 6px 0 0;
    }
    .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0,0,0,0.4);
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 10;
        border-radius: 50%;
    }
    .scroll-btn.left { left: 10px; }
    .scroll-btn.right { right: 10px; }

    .blog-wrapper-container {
        position: relative;
        max-width: 100%;
        margin: auto;
    }
    
    .blog-scroll {
        display: flex;
        gap: 1rem;
        scroll-behavior: smooth;
        overflow-x: auto;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-top: 10px;
    }

    .blog-scroll::-webkit-scrollbar {
        display: none;
    }

    .blog-card {
        flex: 0 0 calc(20% - 1.6rem);
        height: auto;
        min-width: 200px;
    }

    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
        border: none;
        border-radius: 6px;
        overflow: hidden; 
        background-color: #fff;
        transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .card-image-wrapper {
        padding-top: 100%;
        position: relative;
        border-radius: 6px;
    }
    
    .card-img-top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .card-body {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        flex-grow: 1;
        min-height: 100px;
    }

    .card-title {
        font-weight: 600;
        margin-bottom: 5px;
        color: #555;
        font-size: 1.1rem;
        line-height: 1.3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #777;
        font-size: 0.9rem;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: #77777738;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
        z-index: 5;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .scroll-btn:hover {
        background-color: #77777738;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .scroll-btn.left {
        left: -20px;
    }

    .scroll-btn.right {
        right: -20px;
    }

    @media (max-width: 1600px) {
        .blog-card {
            flex: 0 0 calc((100% - 8rem) / 5);
        }
    }
    @media (max-width: 1400px) {
        .blog-card {
            flex: 0 0 calc((100% - 6rem) / 4);
        }
    }
    @media (max-width: 1200px) {
        .blog-card {
            flex: 0 0 calc((100% - 4rem) / 3);
        }
    }
    @media (max-width: 992px) {
        .blog-card {
            flex: 0 0 calc((100% - 2rem) / 2);
        }
    }
    @media (max-width: 768px) {
        .blog-card {
            flex: 0 0 calc((100% - 2rem) / 2);
        }
    }
    @media (max-width: 576px) {
        .blog-card {
            flex: 0 0 90%;
        }
    }

/* ── ส่วนบทความหน้าแรกบนมือถือ (เพิ่ม 2026-09-07) ────────────────────────
   ค่าเริ่มต้นคือ "ซ่อน" ทั้งคู่ เพื่อให้จอใหญ่เหมือนเดิมทุกประการ
   ตัวที่เปิดใช้งานอยู่ใน app/css/mobile.css (@media max-width: 768px) */
.blog-sub-mobile-only {
    /* การ์ดพวกนี้มี class d-flex ของ bootstrap ติดมาด้วย ซึ่งเป็น !important
       จึงต้อง !important เหมือนกัน ไม่งั้นจอใหญ่จะโผล่ครบ 8 ใบ (ต้องเห็นแค่ 4) */
    display: none !important;
}

.blog-sub-btn {
    display: none;
}

/* ── ป้าย NEW บนเรื่องล่าสุด (09-08) ────────────────────────────────
   จอใหญ่: เกาะการ์ดใหญ่สไลด์แรก · จอมือถือ: เกาะการ์ดเล็กใบแรก
   (การ์ดใหญ่ถูกซ่อนบนมือถือ จึงไม่มีป้ายซ้ำสองที่)
   พื้นหลังส่วนบทความเป็นสีเทาอ่อน ป้ายจึงเป็นสีส้มของแบรนด์ */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    pointer-events: none;
}

.new-badge--blog {
    background: #ff9900;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* project_project_home.css */
/* แยกออกจาก template/project/project_home.php เมื่อ 2026-08-19 */
/* Style สำหรับส่วน Project ที่ปรับปรุงใหม่ */
.project-carousel {
    position: relative;
    /* เพิ่ม padding-left และ padding-right เพื่อให้เงาแสดงผลครบ */
    /* padding-left: 50px;
    padding-right: 50px; */
    /* ลบ overflow: hidden; ออกจากที่นี่ */
}

/* เพิ่มสไตล์สำหรับ carousel item ที่แสดงผล 4 กล่อง */
.project-carousel .carousel-inner {
    overflow: hidden;
}

.project-carousel .project-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: scroll; /* ทำให้เลื่อนได้ด้วย scrollbar */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; /* ทำให้เลื่อนแบบนุ่มนวล */
    /* เพิ่ม padding-top เพื่อป้องกันส่วนบนของกล่องถูกตัดเมื่อ hover */
    padding-top: 10px;
}

/* ซ่อน scrollbar */
.project-carousel .project-slider::-webkit-scrollbar {
    display: none;
}
.project-carousel .project-slider {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.project-carousel .col-md-3 {
    flex: 0 0 auto; /* ป้องกันการย่อขนาด */
    width: 25%;
    max-width: 25%;
}

@media (max-width: 768px) {
    .project-carousel .col-md-3 {
        width: 100%;
        max-width: 100%;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.8); 
}

.project-image-wrapper {
    position: relative;
    padding-top: 80%; /* เพิ่มความสูงของรูปภาพ (ตัวอย่างสำหรับอัตราส่วน 4:3) */
    overflow: hidden; /* เพิ่มกลับมาเพื่อให้รูปภาพที่ปรับขนาดครอบคลุม */
}

.project-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ลบสไตล์การ hover นี้ออก เพราะจะทำให้ภาพถูกตัด */
/* .project-card:hover .project-img-top {
    transform: scale(1.05);
} */

.project-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.project-text {
    font-size: 0.95rem;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.project-card .learn-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6a1a8c;
    margin-top: 1rem;
    align-self: flex-start;
    display: block;
}

/* responsive controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #c7c7c7dc;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: all 0.3s ease;
    /* แก้ไขตำแหน่งตรงนี้ */
    position: absolute;
    top: 50%; /* ย้ายปุ่มไปกลาง */
    margin-top: -20px; /* เลื่อนขึ้นครึ่งหนึ่งของความสูง */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #c7c7c7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev {
    left: -25px;
    transform: translateX(-50%);
}
.carousel-control-next {
    right: -25px;
    transform: translateX(50%);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    font-size: 1.5rem;
    color: #6a1a8c;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev-icon::before {
    content: '‹';
}

.carousel-control-next-icon::before {
    content: '›';
}

/* ── ป้าย NEW บนโครงการล่าสุด (09-08) ───────────────────────────────
   พื้นหลังส่วนโครงการเป็นสีส้ม ป้ายจึงกลับด้านเป็นพื้นขาวตัวส้ม
   .project-image-wrapper เป็น position:relative อยู่แล้ว */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    pointer-events: none;
}

.new-badge--project {
    background: #ffffff;
    color: #ff9900;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* product_shop_home.css */
/* แยกออกจาก template/product/shop_home.php เมื่อ 2026-08-19 */
.shop-wrapper-container {
        position: relative;
        max-width: 100%;
        margin: auto;
    }

    .shop-scroll {
        display: flex;
        gap: 2rem;
        scroll-behavior: smooth;
        overflow-x: auto;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-top: 10px;
    }

    .shop-scroll::-webkit-scrollbar {
        display: none;
    }

    .shop-card {
        flex: 0 0 calc((100% - 6rem) / 4);
        height: auto;
    }

    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
        border: none;
        border-radius: 6px;
        overflow: hidden;
        background-color: #fff;
        transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .card-image-wrapper {
        padding-top: 100%; /* ทำให้เป็นสี่เหลี่ยมจัตุรัส */
        position: relative;
        overflow: hidden; /* ซ่อนขอบที่เกินมา */
    }
    
    .card-img-top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    .card-body {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        flex-grow: 1;
        min-height: 100px;
    }

    .card-title {
        font-weight: 600;
        margin-bottom: 5px;
        color: #555;
        font-size: 1.1rem;
        line-height: 1.3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* เพิ่มเป็น 2 บรรทัด */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #777;
        font-size: 0.9rem;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: #77777738;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
        z-index: 5;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        color: white; /* เปลี่ยนสีลูกศร */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-btn:hover {
        background-color: #77777766; /* เข้มขึ้นเมื่อโฮเวอร์ */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }

    @media (max-width: 1200px) {
        .shop-card {
            flex: 0 0 calc((100% - 6rem) / 4);
        }
    }
    @media (max-width: 992px) {
        .shop-card {
            flex: 0 0 calc((100% - 4rem) / 3);
        }
    }
    @media (max-width: 768px) {
        .shop-card {
            flex: 0 0 calc((100% - 2rem) / 2);
        }
    }
    @media (max-width: 576px) {
        .shop-card {
            flex: 0 0 90%;
        }
    }
    .content-sticky {
        padding-bottom: 0px;
        background-color: #ffffff;
        display: flex;
        justify-content: center;
    }
    .no-image-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #999;
        font-size: 1rem;
    }

/* video_video_home.css */
/* แยกออกจาก template/video/video_home.php เมื่อ 2026-08-19 */
.youtube-container {
    position: relative;
    background-size: cover;
    background-position: center;
}
.youtube-placeholder {
    transition: opacity 0.3s;
}
.youtube-container.loaded .youtube-placeholder {
    opacity: 0;
    pointer-events: none;
}
.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'><path fill='%23f00' d='M66.52 7.74c-.78-2.93-2.49-5.41-5.64-6.28C55.8 0 34 0 34 0S12.2 0 7.12 1.46c-3.15.87-4.86 3.35-5.64 6.28C0 14.1 0 24 0 24s0 9.9 1.48 16.26c.78 2.93 2.49 5.41 5.64 6.28C12.2 48 34 48 34 48s21.8 0 26.88-1.46c3.15-.87 4.86-3.35 5.64-6.28C68 33.9 68 24 68 24s0-9.9-1.48-16.26z' /><path fill='%23fff' d='M45 24 27 15v18z' /></svg>") no-repeat center;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.youtube-container:hover .youtube-play-button {
    opacity: 1;
}

/* ── ปุ่มเลื่อนของแถววิดีโอ (เพิ่ม 2026-09-07) ─────────────────────────
   จอใหญ่วิดีโอเรียง 4 ช่องพอดีอยู่แล้ว ไม่ต้องมีปุ่ม จึงซ่อนไว้เป็นค่าเริ่มต้น
   ตัวเปิดใช้งานอยู่ใน app/css/mobile.css (@media max-width: 768px) */
.video-wrapper {
    position: relative;
}

.video-btn {
    display: none;
}

/* partners_partners_home.css */
/* แยกออกจาก template/partners/partners_home.php เมื่อ 2026-08-19 */
.partners-carousel {
    position: relative;
}

.partners-slider-wrapper {
    overflow: hidden;
}

.partners-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-template-rows: repeat(var(--partner-rows, 1), auto);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.partners-slider::-webkit-scrollbar {
    display: none;
}

.partner-item {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 100px;
}

.partner-item:hover {
    box-shadow: 0 4px 20px rgba(255, 120, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.scroll-btn-partner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #c7c7c7dc;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: #6a1a8c;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn-partner:hover {
    background: #c7c7c7;
}

.scroll-btn-partner.left  { left: -20px; }
.scroll-btn-partner.right { right: -20px; }

@media (max-width: 768px) {
    .partner-item { width: 120px; min-height: 80px; }
    .partner-item img { max-height: 60px; }

    /* มือถือ = แถวเดียว เลื่อนแนวนอนอย่างเดียว (เดิม JS สั่งเป็น 2 แถวเมื่อโลโก้เกินจอ)
       เขียนซ้ำเป็น !important เพราะ JS เขียน --partner-rows ติดมากับแท็ก
       ขนาดการ์ดคงเดิม 120px และช่องกริดยังกว้างพอให้เห็น 2 คอลัมน์ต่อจอ */
    .partners-slider {
        grid-template-rows: auto !important;
    }
    .scroll-btn-partner.left  { left: -4px; }
    .scroll-btn-partner.right { right: -4px; }

    /* ปุ่มเลื่อนบนมือถือใช้ขนาดเดียวกันทั้งเว็บ (วงกลม 30px) — ดู app/css/mobile.css
       เขียนซ้ำไว้ตรงนี้ด้วย เพราะกฎรวมใน mobile.css ไม่มีผลกับปุ่มชุดนี้ */
    .scroll-btn-partner {
        width: 30px;
        height: 30px;
        font-size: 14px;
        background: rgba(0, 0, 0, .35);
        color: #fff;
        box-shadow: none;
    }
}
