/* ทำให้ลิงก์เป็นกล่องอ้างอิงตำแหน่ง */
#diesel_list a.diesel-link {
    position: relative;
    display: block;
}

/* ป้าย NEW */
.badge-new {
    position: absolute;
    /* top: -10px; */
    left: 8px;
    background: #ff3b30;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    z-index: 2;
}

@media (max-width: 2800px) {
    .badge-new {
        top: -10px;
    }
}
@media (max-width: 992px) {
    .badge-new {
        top: 0px;
    }
}
/* .diesel-link .badge-new + img{
  width:130px !important;
  max-width:none;
  height:auto;
  display:block;
  margin:0 auto;    
}
#diesel_list.flex-nowrap > div{
  flex:0 0 auto;
  width:180px; 
}
 */

/* ครอบรูปให้วางตำแหน่ง absolute ได้ */
.product-hero {
    position: relative;
    display: block;
    width: 100%;
}
.overlay-ribbon {
    color: #79b721;
    font-weight: 700;
    line-height: 1;
    font-size: xx-large !important;
    position: relative;
    bottom: 18px;
}
/* ป้ายข้อความบนรูป */
.overlay-ribbon-1 {
    position: absolute;
    top: 12px; /* ปรับตำแหน่งตามต้องการ */
    left: 12px;
    background: #79b721;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
    white-space: nowrap;
}

/* ขยายขนาดบนจอใหญ่ */
@media (min-width: 992px) {
    .overlay-ribbon {
        font-size: 18px;
        padding: 10px 16px;
    }
}

.image-overlay {
    position: relative;
}
/* .image-wrapper{
    text-align: center;
} */

.image-3d {
    position: inherit;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}

.imagemap {
    width: 100%;
}

.overlay-image {
    /* width: 50px;
    height: 50px;
    position: absolute;
    opacity: .5; */

    position: absolute;
    z-index: 2;
    width: 100%;
    height: auto;
    min-width: 15px;
    min-height: 15px;
    max-width: 30px;
    max-height: 30px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transform-origin: center;
    transform-origin: center;
    cursor: pointer;
}
@media only screen and (max-width: 760px) {
    .overlay-image {
        position: absolute;
        z-index: 2;
        width: 100%;
        height: auto;
        max-width: 15px;
        max-height: 15px;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        -webkit-transform-origin: center;
        transform-origin: center;
        cursor: pointer;
    }
    .imagemap {
        width: 100%;
    }
}

.overlay-image:hover {
    opacity: 0.8;
    cursor: pointer;
}

.data {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    padding: 40px;
    background: #0e5e9b;
}

.hotspot-hover {
    /* position: relative;  */
    display: block;
    /* width: 60px;
    height: 60px; */
    text-align: center;
    line-height: 63px;
    background: #333;
    border-radius: 50%;
    font-size: 30px;
    color: #666;
    transition: 0.5s;
}
.hotspot-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffee10;
    /* transition: .5s; */
    transform: scale(0.9);
    z-index: -1;

    animation: fader 2s ease infinite;
    transition: all 0.2s;
}

.hotspot-hover:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffee10;
}

.hotspot-hover:hover {
    color: #fff;
    box-shadow: 0 0 0 5px #fff;
    text-shadow: 0 0 5px #fff;
}

@keyframes fader {
    50% {
        border-color: rgb(255, 255, 255, 0.2);
    }
    100% {
        border-color: rgb(255, 255, 255, 0.8);
    }
}

.button {
    display: inline-block;
    /* padding: 10px 45px; */
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #0091d2;
    border: none;
    border-radius: 85px;
    box-shadow: 0 5px #999;
    min-width: 50%;
    max-width: 60%;
    margin-bottom: 20px;
}
.text-primary-sany {
    color: #0091d2;
}
.button:hover {
    background-color: #0080b9;
    color: gainsboro;
}

.button:active {
    background-color: #0091d2;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.button-concrete-mixers-truck {
    display: inline-block;
    /* padding: 10px 45px; */
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #a1272d;
    border: none;
    border-radius: 85px;
    box-shadow: 0 5px #999;
    min-width: 50%;
    max-width: 60%;
    margin-bottom: 20px;
}
.button-concrete-mixers-truck:hover {
    background-color: #ce3941;
}

.button-concrete-mixers-truck:active {
    background-color: #a1272d;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.button-motor-grader {
    display: inline-block;
    /* padding: 10px 45px; */
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #e69b1c;
    border: none;
    border-radius: 85px;
    box-shadow: 0 5px #999;
    min-width: 50%;
    max-width: 60%;
    margin-bottom: 20px;
}
.button-motor-grader:hover {
    background-color: #c8891e;
}

.button-motor-grader:active {
    background-color: #e69b1c;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.image-zoom {
    transition: transform 0.3s;
}

.image-container:hover .image-zoom {
    transform: scale(1.1); /* Adjust the scale factor for the zoom effect */
}

/* --------------------------------------------------------- */
/* nav-fixed  */

.nav-fixed.show {
    -webkit-transform: translate(0%, -50%);
    -moz-transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    -o-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    opacity: 1;
    z-index: 99;
}
.nav-fixed {
    position: fixed;
    top: 50%;
    -webkit-transform: translate(200%, -50%);
    -moz-transform: translate(200%, -50%);
    -ms-transform: translate(200%, -50%);
    -o-transform: translate(200%, -50%);
    transform: translate(200%, -50%);
    right: 30px;
    -webkit-transition: all 600ms;
    -moz-transition: all 600ms;
    -ms-transition: all 600ms;
    -o-transition: all 600ms;
    transition: all 600ms;
    opacity: 0;
}
/* .works-container .nav-list {
  padding: 10px 0;
  cursor: pointer;
} */
.works-container .box-nav-fixed {
    user-select: none;
    list-style: none;
    margin: 0;
    padding: 0;
}
.works-container .nav-list {
    /* padding: 10px 0;
  cursor: pointer; */

    cursor: pointer;
    background-color: #b2d3ff;
    border: solid 5px #9bc2ff;
    border-radius: 100%;
    width: 50px;
    height: 50px;
}
.works-container .bullet {
    position: relative;
    display: block;
    z-index: 2;
}
.works-container .bullet.active .txt-project {
    animation: 2s active-pj-name;
}
html.ready .f_li {
    font-family: 'Alexandria-Light', sans-serif;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}
.works-container .txt-project {
    border-radius: 25px;
    background-color: #ffffff;
    padding: 5px 10px;
    position: absolute;
    left: -8px;
    white-space: nowrap;
    top: 50%;
    -webkit-transform: translate(-80%, -50%);
    -moz-transform: translate(-80%, -50%);
    -ms-transform: translate(-80%, -50%);
    -o-transform: translate(-80%, -50%);
    transform: translate(-80%, -50%);
    opacity: 0;
    font-size: 10px;
    line-height: 12px;
    -webkit-transition: all 600ms;
    -moz-transition: all 600ms;
    -ms-transition: all 600ms;
    -o-transition: all 600ms;
    transition: all 600ms;
    z-index: -1;
    pointer-events: none;
}
.works-container .bullet.active .bullet-cicle {
    background-color: transparent;
    border: 2px solid #ffffff;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}
.works-container .bullet-cicle {
    border-radius: 50%;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    display: block;
    margin: 0 auto;
    -webkit-transform: scale(0.4);
    -moz-transform: scale(0.4);
    -ms-transform: scale(0.4);
    -o-transform: scale(0.4);
    transform: scale(0.4);
    opacity: 0.5;
    -webkit-transition: all 600ms;
    -moz-transition: all 600ms;
    -ms-transition: all 600ms;
    -o-transition: all 600ms;
    transition: all 600ms;
}
ul {
    list-style: none;
}

.section-1 {
    display: block;
}
.mobile-nav {
    justify-content: center;
}
@media screen and (max-width: 620px) {
    .section-1 {
        display: contents;
    }
    .mobile-nav {
        background: #f1f1f1;
        position: fixed;
        bottom: 0;
        /* height: 65px; */
        /* width: 100%; */
        display: flex;
        /* justify-content: space-around; */
        justify-content: start !important;
        z-index: 9999;

        overflow-y: scroll;
        width: revert;
        height: auto;
        box-shadow: 0px -6px rgba(49, 49, 49, 0.2);
    }
    .outline-logo {
        outline-offset: 14px;
        /* background-color: #ccc; */
        outline: 2px solid #ccc;
        padding: 10px;
        cursor: pointer;
        width: 100%;
    }
}

@media (max-width: 2800px) {
    .section-5 a:hover .badge-new {
        transform: scale(1.15) translateY(-15px);
    }
}
@media (max-width: 992px) {
    .section-5 a:hover .badge-new {
        transform: scale(1) translateY(0px);
    }
}
