.heading-block:after {
    margin-top: 10px !important;
    width: 130px !important;
}
/* image */
.full-width{ 
    width: 100% !important; 
    height: auto !important;
}
.img-features{ max-width: 500px !important;}
.image-promotion{ 
    height: 360px; 
    width: auto;
    background-position: center;
}
/* position */
.relative{ position: relative;}
.inline-block{ display: inline-block;}
/* color */
.co-white{ color: #fff !important;}
.co-737b7d{ color: #737b7d !important;}
.co-2b2e7b{ color: #2b2e7b !important;}
.co-858c8d{ color: #858c8d !important;}
.co-ff4141{ color: #ff4141 !important;}
.co-4d4f5c{ color: #4d4f5c !important;}
.co-0a2955{ color: #0a2955 !important;}
.co-373f41{ color: #373f41 !important;}
.co-cda511{ color: #cda511 !important;}
.co-707070{ color: #707070; }
.co-ff0000{ color: #ff0000; }

.text-danger{ color:  red; }
/* line */
.line-ff4141{
    width: 100%;
    height: 1px;
    background-color: #ff4141;
}
/* background */
.bg-0A2955{background-color: #0a2955 }
.bg-8999AD{background-color: #8999AD }
/* border */
.b-dcb326{border: solid 1px #dcb326;}
.b-cacaca{border: solid 1px #cacaca;}
.b-f5f5f5 {background-color: #f5f5f5; }
/* button */
.button-thankyou {
    background-color: #0c1f4a !important;
    color: #fff !important;
}
.button-contact {
    border-radius: 10px !important;
    background-color: #00a5ce !important;
    font-size: 17px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: auto !important;
    margin: 0px !important;
}
.button-quotation {
    border-radius: 49px !important;
    border: solid 1px #707070 !important;
    background-color: #0c1f4a !important;
    font-size: 17px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: auto !important;
}
.button-block{
    width: 100% !important;
    padding: 10px 20px 5px 20px;
    height: unset !important;
}
.button-2b2e7b{
    border-radius: 2px !important;
    color: #fff !important;
    border: solid 1px #2b2e7b;
    background-color: #2b2e7b !important;
}
.button-2b2e7b:hover{
    border-radius: 2px !important;
    color: #fff !important;
    border: solid 1px #3c64b1 !important;
    background-color: #3c64b1 !important;
}
.button-border-2b2e7b {
    border-radius: 2px !important;
    color: #2b2e7b !important;
    border: solid 1px #2b2e7b !important;
    background-color: transparent !important;
}
.button-border-2b2e7b:hover {
    border-radius: 2px !important;
    color: #fff !important;
    border: solid 1px #3c64b1;
    background-color: #3c64b1 !important;
}
@media only screen and (min-width: 992px) {
	.quotation-menu{
        border: solid 1px #0a2955;
        background-color: #0a2955;
        margin-top: -13px;
        cursor: pointer;
        outline: none;
        white-space: nowrap;
        padding: 0 22px;
        font-weight: bold;
        font-stretch: normal;
        font-style: normal;
        line-height: 40px;
        color: #FFF;
        font-weight: 600;
        letter-spacing: 1px;
        position: absolute;
    }
    .quotation-menu:hover{
        border: solid 1px #0a2955;
        background-color: #fff;
        color: #0a2955;
    }
    .w-quotation-menu{
        width: 254px;
    }
    .trial-menu{
        border: solid 1px #6C91D8;
        background-color: transparent;
        margin-top: -13px;
        cursor: pointer;
        outline: none;
        white-space: nowrap;
        padding: 0 22px;
        font-weight: bold;
        font-stretch: normal;
        font-style: normal;
        line-height: 40px;
        color: #6C91D8;
        font-weight: 600;
        letter-spacing: 1px;
        position: absolute;
    }
    .trial-menu:hover{
        border: solid 1px #6C91D8;
        background-color: #6C91D8;
        color: #fff;
    }
    .w-trial-menu{
        width: 156px;
    }
}
/* block */
.display-inline-grid-center{
    display: inline-grid;
    align-content: center;
}
#block-support .subtitle{
    max-width: 820px;
}
ul#ul-support{
    list-style-image: url('../../../images/icons/check.png');
    margin-left: 25px !important;
}
.block-quotation{
    max-width: 500px !important;
}
.block-quotation .col_full{
    margin-bottom: 20px !important;
}
.block-quotation input[type="text"],.block-quotation select, .block-quotation textarea{
    border-radius: 10px !important;
    padding: 14px!important;
}
.block-quotation select{
    color : #999999 !important;
}

.block-quotation .select2-container--bootstrap4 .select2-selection {
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    padding-top: 10px !important;
    padding-left: 14px !important;
    height: 50px !important;
}
.block-quotation .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important;
}
.block-quotation .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: #999999 !important;
}
.block-quotation .checkbox-style, .block-quotation .radio-style, 
.block-quotation .checkbox-style-1-label, .block-quotation .radio-style-1-label, 
.block-quotation .checkbox-style-2-label, .block-quotation .radio-style-2-label, 
.block-quotation .checkbox-style-3-label, .block-quotation .radio-style-3-label {
    margin-left: 0px !important;
    margin-right: 0px !important;
}
/* video */
.video-gstar{
    display: block;
    width: 100% !important;
    height: auto !important;
    background-color: #e8eff7;
    border-radius: 18.3px;
    padding: 2px;
}
/* icon */
.icon-footer{
    width: 22px;
    height: 22px;
}
.si-line:hover{
    background-color: #81B71A !important;
}
.icon-line{
    content: "\e809";
    /* background-image: url('../../../images/icons/social/icon-line-covered.webp');
    width: 30px;
    height: 30px; */
}
.icon-features{
    max-width: 60px;
    max-height: 60px;
}
.i-window{
    width: 50px;
    height: 50px;
    display: none;
}
.icon-quotation{
    width: 15px;
    margin-right: 10px;
}
@media only screen and (min-width: 576px) {
    .i-window{
        width: 50px;
        height: 50px;
        display: block;
    }
}

/* grid */
.grid-promotion{
    display: grid;
    grid-template-columns: auto;
    gap: 3%;
}
@media only screen and (min-width: 768px) and (max-width: 991px)  {
    .grid-promotion{
        display: grid;
        grid-template-columns: 47% 47%;
        gap: 3%;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px)  {
    .grid-promotion{
        display: grid;
        grid-template-columns: 31.33% 31.33% 31.33%;
        gap: 3%;
    }
}
@media only screen and (min-width: 1200px) {
    .grid-promotion{
        display: grid;
        grid-template-columns: 31.33% 31.33% 31.33%;
        gap: 3%;
    }
}
.grid-freetrial{
    display: grid;
    grid-template-columns: auto;
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .grid-freetrial{
        display: grid;
        grid-template-columns: 250px auto;
        gap: 10px;
    }
}
@media only screen and (min-width: 768px) {
    .grid-freetrial{
        display: grid;
        grid-template-columns: 300px auto;
        gap: 10px;
    }
}
.grid-blog{
    display: grid;
    grid-template-columns: auto;
    gap: 50px;
}
.grid-blog-popular-post{
    display: grid;
    grid-template-columns: 100px auto;
    gap: 20px;
}
@media only screen and (max-width: 575px) {
    .grid-blog-popular-post{
        display: grid;
        grid-template-columns:  auto;
        gap: 20px;
    }
}
@media only screen and (min-width:576px) and (max-width: 991px) {
    .grid-blog-popular-post{
        display: grid;
        grid-template-columns:  150px auto;
        gap: 20px;
    }
    .grid-blog-popular-post .f-ahov{
        font-size: 14px;
    }
}
@media only screen and (min-width: 992px) {
    .grid-blog-popular-post{
        display: grid;
        grid-template-columns:  150px auto;
        gap: 20px;
    }
    .grid-blog-popular-post .f-ahov{
        font-size: 14px;
    }
}
@media only screen and (min-width: 1200px) {
    .grid-blog{
        display: grid;
        grid-template-columns: auto 350px;
        gap: 50px;
    }
    .grid-blog-popular-post .f-ahov{
        font-size: 14px;
    }
    .grid-blog-popular-post #meta-popular-post{
        display: none;
    }
}
#g-gstarcad-product{
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
}
#block-features .g-features-des{
    display: grid;
    grid-template-columns: auto;
    gap: 30px;
}

@media only screen and (min-width: 576px) {
    #block-features .g-features-des{
        display: grid;
        grid-template-columns: 60px auto;
        gap: 30px;
    }
}
#block-gstarcad .g-gstarcad-display{
    display: grid;
    grid-template-columns: auto;
    gap: 5%;
}

.c-w-why{
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (min-width: 992px) {
    #g-gstarcad-product{
        display: grid;
        grid-template-columns: 30% 30% 30%;
        gap: 5%;
        width: 100%;
        height: auto;
    }

    #block-gstarcad .g-gstarcad-display{
        display: grid;
        grid-template-columns: 40% auto;
        gap: 10%;
    }
}
#g-gstarcad-product .border-block {
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background-color: #fff;
}
#g-gstarcad-product .padding-block {
    padding: 30px;
}

/* margin */
.nomarginbottom{ margin-bottom: 0px !important;}
.mg-t-5{ margin-top: 5px !important;}
.mg-t-10{ margin-top: 10px !important;}
.mg-t-11{ margin-top: 11px !important;}
.mg-t-12{ margin-top: 12px !important;}
.mg-t-13{ margin-top: 13px !important;}
.mg-t-14{ margin-top: 14px !important;}
.mg-t-15{ margin-top: 15px !important;}
.mg-t-20{ margin-top: 20px !important;}
.mg-t-21{ margin-top: 21px !important;}
.mg-t-22{ margin-top: 22px !important;}
.mg-t-23{ margin-top: 23px !important;}
.mg-t-24{ margin-top: 24px !important;}
.mg-t-25{ margin-top: 25px !important;}
.mg-t-26{ margin-top: 26px !important;}
.mg-t-27{ margin-top: 27px !important;}
.mg-t-28{ margin-top: 28px !important;}
.mg-t-29{ margin-top: 29px !important;}
.mg-t-30{ margin-top: 30px !important;}
.mg-t-35{ margin-top: 35px !important;}
.mg-t-40{ margin-top: 40px !important;}
.mg-t-41{ margin-top: 41px !important;}
.mg-t-42{ margin-top: 42px !important;}
.mg-t-43{ margin-top: 43px !important;}
.mg-t-44{ margin-top: 44px !important;}
.mg-t-45{ margin-top: 45px !important;}
.mg-t-46{ margin-top: 46px !important;}
.mg-t-47{ margin-top: 47px !important;}
.mg-t-48{ margin-top: 48px !important;}
.mg-t-49{ margin-top: 49px !important;}
.mg-t-50{ margin-top: 50px !important;}
.mg-t-51{ margin-top: 51px !important;}
.mg-t-52{ margin-top: 52px !important;}
.mg-t-53{ margin-top: 53px !important;}
.mg-t-54{ margin-top: 54px !important;}
.mg-t-55{ margin-top: 55px !important;}
.mg-t-56{ margin-top: 56px !important;}
.mg-t-57{ margin-top: 57px !important;}
.mg-t-58{ margin-top: 58px !important;}
.mg-t-59{ margin-top: 59px !important;}
.mg-t-60{ margin-top: 60px !important;}
.mg-t-61{ margin-top: 61px !important;}
.mg-t-62{ margin-top: 62px !important;}
.mg-t-63{ margin-top: 63px !important;}
.mg-t-64{ margin-top: 64px !important;}
.mg-t-65{ margin-top: 65px !important;}
.mg-t-66{ margin-top: 66px !important;}
.mg-t-67{ margin-top: 67px !important;}
.mg-t-68{ margin-top: 68px !important;}
.mg-t-69{ margin-top: 69px !important;}
.mg-t-70{ margin-top: 70px !important;}
.mg-t-71{ margin-top: 71px !important;}
.mg-t-72{ margin-top: 72px !important;}
.mg-t-73{ margin-top: 73px !important;}
.mg-t-74{ margin-top: 74px !important;}
.mg-t-75{ margin-top: 75px !important;}
.mg-t-76{ margin-top: 76px !important;}
.mg-t-77{ margin-top: 77px !important;}
.mg-t-78{ margin-top: 78px !important;}
.mg-t-79{ margin-top: 79px !important;}
.mg-t-80{ margin-top: 80px !important;}

.mg-b-5{ margin-bottom: 5px !important;}
.mg-b-10{ margin-bottom: 10px !important;}
.mg-b-11{ margin-bottom: 11px !important;}
.mg-b-12{ margin-bottom: 12px !important;}
.mg-b-13{ margin-bottom: 13px !important;}
.mg-b-14{ margin-bottom: 14px !important;}
.mg-b-15{ margin-bottom: 15px !important;}
.mg-b-20{ margin-bottom: 20px !important;}
.mg-b-21{ margin-bottom: 21px !important;}
.mg-b-22{ margin-bottom: 22px !important;}
.mg-b-23{ margin-bottom: 23px !important;}
.mg-b-24{ margin-bottom: 24px !important;}
.mg-b-25{ margin-bottom: 25px !important;}
.mg-b-26{ margin-bottom: 26px !important;}
.mg-b-27{ margin-bottom: 27px !important;}
.mg-b-28{ margin-bottom: 28px !important;}
.mg-b-29{ margin-bottom: 29px !important;}
.mg-b-30{ margin-bottom: 30px !important;}
.mg-b-35{ margin-bottom: 35px !important;}
.mg-b-40{ margin-bottom: 40px !important;}
.mg-b-41{ margin-bottom: 41px !important;}
.mg-b-42{ margin-bottom: 42px !important;}
.mg-b-43{ margin-bottom: 43px !important;}
.mg-b-44{ margin-bottom: 44px !important;}
.mg-b-45{ margin-bottom: 45px !important;}
.mg-b-46{ margin-bottom: 46px !important;}
.mg-b-47{ margin-bottom: 47px !important;}
.mg-b-48{ margin-bottom: 48px !important;}
.mg-b-49{ margin-bottom: 49px !important;}
.mg-b-50{ margin-bottom: 50px !important;}
.mg-b-51{ margin-bottom: 51px !important;}
.mg-b-52{ margin-bottom: 52px !important;}
.mg-b-53{ margin-bottom: 53px !important;}
.mg-b-54{ margin-bottom: 54px !important;}
.mg-b-55{ margin-bottom: 55px !important;}
.mg-b-56{ margin-bottom: 56px !important;}
.mg-b-57{ margin-bottom: 57px !important;}
.mg-b-58{ margin-bottom: 58px !important;}
.mg-b-59{ margin-bottom: 59px !important;}
.mg-b-60{ margin-bottom: 60px !important;}
.mg-b-61{ margin-bottom: 61px !important;}
.mg-b-62{ margin-bottom: 62px !important;}
.mg-b-63{ margin-bottom: 63px !important;}
.mg-b-64{ margin-bottom: 64px !important;}
.mg-b-65{ margin-bottom: 65px !important;}
.mg-b-66{ margin-bottom: 66px !important;}
.mg-b-67{ margin-bottom: 67px !important;}
.mg-b-68{ margin-bottom: 68px !important;}
.mg-b-69{ margin-bottom: 69px !important;}
.mg-b-70{ margin-bottom: 70px !important;}
.mg-b-71{ margin-bottom: 71px !important;}
.mg-b-72{ margin-bottom: 72px !important;}
.mg-b-73{ margin-bottom: 73px !important;}
.mg-b-74{ margin-bottom: 74px !important;}
.mg-b-75{ margin-bottom: 75px !important;}
.mg-b-76{ margin-bottom: 76px !important;}
.mg-b-77{ margin-bottom: 77px !important;}
.mg-b-78{ margin-bottom: 78px !important;}
.mg-b-79{ margin-bottom: 79px !important;}
.mg-b-80{ margin-bottom: 80px !important;}

.mg-l-auto{margin-left: auto;}
.mg-r-auto{margin-right: auto;}
/* menu */

/* slider */
.slider-caption{
    max-width: 600px;
}
@media only screen and (max-width: 991px) {
    .slider-caption {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        right: 15px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .slider-caption {
        left: 6rem !important;
    }
}

/* footer */
#footer.blue{
    background-color: #3886cb;
    border-top: transparent !important;
    color: #fff !important;
}
#footer .footer-widgets-wrap {
    padding: 36px 0 !important;
}
#footer #copyrights {
    color: #fff!important;
    background-color: #0a2955 !important;
    padding: 20px 0 10px 0 !important;
}
/* search article */
.search-align{
    text-align: right !important;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}
.input-search{
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    border: solid 1px #707070;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 40px;
    font-size: 14px;
    width: 250px;
}
.search-icon {
    width: 47px;
    height: 47px;
    margin: 0 0 0 197px;
    padding: 11.8px 12.7px 12.5px 11.5px;
    background-color: #0a2955;
    position: absolute;
    right: -15px;
    top: -2px;
    border-radius: 50%;
    color: #fff;
}
.search-icon i{
    position: absolute;
    left: 17px;
}
/* article */
#blog-content{
    border-bottom: 1px dashed #CCC;
    width: 100%;
}
#blog-content a.hover h3:hover,
#popular-post a.hover:hover{
    color: #7a7878 !important;
}
#blog-content a.hover-ff4141:hover{
    color: #c51515 !important;
}
.display-flex-justify-center{
    display: flex;
    justify-content: center;
}
.f-blog-popular-post{
    font-size: 9px !important;
    margin-right: 5px !important;
}
.pagination-custom{
    padding: 9px 37px 14px 39.1px;
    border-radius: 35px !important;
    border: solid 1px #707070;
    background-color: #fff;
    width: 100px;
    color: #919191 !important;
    margin-left: 30px;
    margin-right: 30px;
}
@media only screen and (max-width: 575px) {
    .f-blog{
        font-size: 9px !important;
    }
}
.block-form-freetrial{
    max-width: 700px;
}
.block-dowloads{
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 60px;
    padding-bottom: 60px;
}
.block-dowloads .col_half, .block-dowloads .col_full{
    margin-bottom: 20px !important;
}
#u_0_0_FU{
    width:  100%!important;
}
.quotation-subtitle{
    max-width: 712px;
}
@media only screen and (min-width: 768px) {
    .quotation-subtitle{
        text-align: center;
    }
}

.about-subtitle{
    max-width: 900px;
}



/* item */
.item-dowload{
    max-width: 120px !important;
}

.grid-slider{
    display: grid;
    grid-template-columns: auto;
    gap: 10px;
}
.button-slider{
    max-width: 261px;
}

@media only screen and (min-width: 992px) {
    .grid-slider{
        display: grid;
        grid-template-columns: auto auto;
        gap: 10px;
    }
}

.b-gstarcad-product{
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.logo-app{
    max-width: 200px;
}
.invalid-feedback{
    color: red;
    font-size: 12px;
}
.noborder-radius{
    border-radius: 0px !important;
}

@media only screen and (max-width: 1199px) {
    .swiper_wrapper .swiper-slide {
        background-position: unset ;
    }
}

/* =====================================================
   Thai GstarCAD Header - isolated version
   ไม่ใช้ #primary-menu / #logo / #header เพื่อไม่ชน Canvas theme
   ===================================================== */

.tg-header,
.tg-header * {
    box-sizing: border-box;
}

.tg-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.03);
    font-family: "Prompt", "Sarabun", "Noto Sans Thai", "Lato", Arial, sans-serif;
    transition: box-shadow .25s ease;
}

/* เงาเข้มขึ้นเมื่อเลื่อนหน้าจอ ให้ดูลอยเหนือเนื้อหาชัดเจนขึ้น (ใส่ class ผ่าน JS ใน header.blade.php) */
.tg-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* เส้นไล่สีบางๆ ใต้ Header เข้าธีมเดียวกับ Hero/Footer ของหน้าแรก 2027 */
.tg-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #1B6CFF, #2FD2FF 50%, #7C5CFF);
}

.tg-header a,
.tg-header a:hover,
.tg-header a:focus {
    text-decoration: none !important;
}

.tg-header ul,
.tg-header li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tg-header__inner {
    width: 100%;
    max-width: 1780px;
    min-height: 86px;
    margin: 0 auto;
    padding: 0 70px;
    display: flex;
    align-items: center;
    gap: 26px;
    background: #fff;
}

.tg-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-width: 150px;
}

.tg-logo img {
    display: block !important;
    width: auto !important;
    max-width: 190px !important;
    max-height: 54px !important;
    object-fit: contain;
}

.tg-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.tg-nav__list {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.tg-nav__item {
    position: relative;
}

.tg-nav__item--has {
    position: static;
}

.tg-nav__link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 86px;
    padding: 0 14px;
    color: #2f2f2f !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2 !important;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    transition: color 0.22s ease;
}

.tg-nav__text {
    display: inline-block !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: inherit !important;
}

.tg-nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: #1B6CFF;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.tg-nav__link:hover,
.tg-nav__item:hover > .tg-nav__link,
.tg-nav__item.is-open > .tg-nav__link {
    color: #1B6CFF !important;
}

.tg-nav__link:hover::after,
.tg-nav__item:hover > .tg-nav__link::after,
.tg-nav__item.is-open > .tg-nav__link::after {
    transform: scaleX(1);
}

.tg-nav__arrow {
    display: inline-block !important;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.22s ease;
}

.tg-nav__item:hover .tg-nav__arrow,
.tg-nav__item.is-open .tg-nav__arrow {
    transform: rotate(225deg) translateY(-1px);
}

/* Mega Menu */
.tg-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.24s ease;
}

.tg-nav__item:hover > .tg-mega,
.tg-nav__item:focus-within > .tg-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tg-mega__inner {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 38px 70px 42px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 42px;
}

.tg-mega__intro {
    padding-right: 24px;
    border-right: 1px solid #eeeeee;
}

.tg-mega__title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 8px;
}

.tg-mega__desc {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

.tg-mega__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 44px;
}

.tg-mega__col {
    display: flex;
    flex-direction: column;
}

.tg-mega__link {
    display: flex !important;
    align-items: center;
    min-height: 40px;
    padding: 8px 0;
    color: #666 !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45 !important;
    transition: all 0.2s ease;
}

.tg-mega__link::before {
    content: "";
    width: 0;
    height: 2px;
    margin-right: 0;
    border-radius: 99px;
    background: #1B6CFF;
    transition: all 0.2s ease;
}

.tg-mega__link:hover {
    color: #1B6CFF !important;
    transform: translateX(3px);
}

.tg-mega__link:hover::before {
    width: 14px;
    margin-right: 9px;
}

/* CTA */
.tg-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2 !important;
    white-space: nowrap;
    border-radius: 0;
    transition: all 0.22s ease;
}

.tg-action span {
    display: inline-block !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.tg-action--outline {
    color: #1B6CFF !important;
    border: 1px solid #1B6CFF !important;
    background: #fff !important;
}

.tg-action--outline:hover {
    color: #fff !important;
    background: #1B6CFF !important;
    box-shadow: 0 10px 22px rgba(27, 108, 255, 0.18);
}

.tg-action--gold {
    color: #2c2400 !important;
    border: 1px solid #e3b51d !important;
    background: linear-gradient(135deg, #ffe27a 0%, #f6c521 100%) !important;
}

.tg-action--gold:hover {
    color: #1f1a00 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(214, 166, 0, 0.22);
}

/* Mobile Button */
.tg-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.tg-menu-toggle span {
    display: block !important;
    width: 20px;
    height: 2px;
    background: #1f2937;
    border-radius: 99px;
}

/* Responsive */
@media (max-width: 1399.98px) {
    .tg-header__inner {
        padding: 0 34px;
        gap: 18px;
    }

    .tg-nav__link {
        padding: 0 10px;
        font-size: 14px;
    }

    .tg-action {
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 1199.98px) {
    .tg-header__inner {
        min-height: 74px;
        padding: 0 22px;
    }

    .tg-logo img {
        max-height: 48px !important;
        max-width: 170px !important;
    }

    .tg-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .tg-nav,
    .tg-actions {
        display: none;
    }

    .tg-header.is-open .tg-nav,
    .tg-header.is-open .tg-actions {
        display: flex;
    }

    .tg-header.is-open .tg-nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
        padding: 10px 22px 12px;
        z-index: 9999;
    }

    .tg-nav__list {
        width: 100%;
        display: block !important;
    }

    .tg-nav__link {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        padding: 0;
        border-bottom: 1px solid #f1f1f1 !important;
        font-size: 15px;
    }

    .tg-nav__link::after {
        display: none;
    }

    .tg-nav__item:hover > .tg-mega {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .tg-mega {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border-top: 0;
        background: #f8fbff;
        border-radius: 14px;
        margin: 0 0 10px;
    }

    .tg-nav__item.is-open > .tg-mega {
        display: block;
    }

    .tg-mega__inner {
        display: block;
        padding: 14px;
    }

    .tg-mega__intro {
        padding: 0 0 10px;
        margin-bottom: 8px;
        border-right: 0;
        border-bottom: 1px solid #e7eef8;
    }

    .tg-mega__title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .tg-mega__desc {
        font-size: 12px;
    }

    .tg-mega__content {
        display: block;
    }

    .tg-mega__link {
        min-height: 38px;
        font-size: 14px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    }

    .tg-header.is-open .tg-actions {
        position: absolute;
        top: calc(74px + 100%);
        left: 0;
        right: 0;
    }

    .tg-actions {
        display: none !important;
    }

    .tg-header.is-open .tg-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 22px 18px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    }

    .tg-action {
        width: 100%;
        min-height: 44px;
        border-radius: 10px;
    }
}

@media (max-width: 575.98px) {
    .tg-header__inner {
        padding: 0 14px;
    }

    .tg-logo {
        min-width: 120px;
    }

    .tg-logo img {
        max-width: 145px !important;
        max-height: 42px !important;
    }

    .tg-header.is-open .tg-nav {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tg-header.is-open .tg-actions {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* CTA Menu */
.gstar-menu-cta {
    margin-left: 8px;
}

.gstar-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.22s ease;
}

.gstar-menu-quote .gstar-cta-link {
    color: #0b63ce;
    border: 1px solid #1B6CFF;
    background: #ffffff;
}

.gstar-menu-quote .gstar-cta-link:hover {
    color: #ffffff;
    background: #1B6CFF;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(27, 108, 255, 0.18);
}

.gstar-menu-trial .gstar-cta-link {
    color: #2c2400;
    border: 1px solid #e3b51d;
    background: linear-gradient(135deg, #ffe27a 0%, #f6c521 100%);
}

.gstar-menu-trial .gstar-cta-link:hover {
    color: #1f1a00;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(214, 166, 0, 0.22);
}

/* Mobile Trigger */
.gstar-mobile-trigger {
    display: none;
    border: 0;
    background: transparent;
    color: #222222;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .gstar-header-container {
        gap: 20px;
    }

    .gstar-menu-link {
        padding: 0 10px;
        font-size: 14px;
    }

    .gstar-cta-link {
        padding: 0 13px;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .gstar-header-container {
        min-height: 68px;
        justify-content: space-between;
        gap: 14px;
    }

    .gstar-mobile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .gstar-logo {
        margin-right: 0;
    }

    .gstar-logo img {
        max-height: 46px;
    }

    .gstar-primary-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .gstar-header.is-mobile-open .gstar-primary-menu {
        display: block;
    }

    .gstar-menu-list {
        display: block;
        padding: 10px 18px 18px;
    }

    .gstar-menu-link {
        display: flex;
        justify-content: space-between;
        min-height: 46px;
        padding: 0;
        border-bottom: 1px solid #f1f1f1;
        font-size: 15px;
    }

    .gstar-menu-link::after {
        display: none;
    }

    .gstar-caret {
        margin-right: 4px;
    }

    .gstar-menu-item:hover .gstar-caret {
        transform: rotate(45deg) translateY(-2px);
    }

    .gstar-menu-item.is-open .gstar-caret {
        transform: rotate(225deg) translateY(-1px);
    }

    .gstar-mega-panel {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border-top: 0;
        background: #f8fbff;
        margin: 0 0 10px;
        border-radius: 14px;
    }

    .gstar-menu-item:hover > .gstar-mega-panel {
        transform: none;
    }

    .gstar-menu-item.is-open > .gstar-mega-panel {
        display: block;
    }

    .gstar-mega-inner {
        display: block;
        min-height: auto;
        padding: 14px;
    }

    .gstar-mega-heading {
        padding: 0 0 10px;
        margin-bottom: 8px;
        border-right: 0;
        border-bottom: 1px solid #e7eef8;
    }

    .gstar-mega-title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .gstar-mega-desc {
        font-size: 12px;
    }

    .gstar-mega-grid {
        display: block;
    }

    .gstar-mega-column {
        gap: 0;
    }

    .gstar-mega-link {
        min-height: 38px;
        padding: 7px 0;
        font-size: 14px;
    }

    .gstar-menu-cta {
        margin: 12px 0 0;
    }

    .gstar-cta-link {
        width: 100%;
        min-height: 44px;
        border-radius: 10px;
    }
}

/* =====================================================
   Thai GstarCAD Header Mobile Drawer
   Match gstarcad.net mobile style
   Font: Sukhumvit Set
   วางท้ายสุดของ custom.css
   ===================================================== */

.tg-header,
.tg-header * {
    font-family: 'Sukhumvit Set', sans-serif !important;
}

/* Desktop ยังใช้ของเดิมได้ แต่บังคับ font และ reset */
.tg-header a,
.tg-header a:hover,
.tg-header a:focus {
    text-decoration: none !important;
}

/* Mobile / Tablet */
@media (max-width: 1199.98px) {
    body.tg-menu-open {
        overflow: hidden !important;
    }

    .tg-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99999 !important;
        width: 100% !important;
        background: #fff !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: none !important;
    }

    .tg-header__inner {
        position: relative !important;
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        background: #fff !important;
    }

    .tg-logo {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .tg-logo img {
        display: block !important;
        width: auto !important;
        max-width: 145px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    .tg-menu-toggle {
        position: relative !important;
        z-index: 4 !important;
        display: inline-flex !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        margin-left: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 6px !important;
        cursor: pointer !important;
    }

    .tg-menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 2px !important;
        background: #222 !important;
        border-radius: 99px !important;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .tg-header.is-open {
        position: fixed !important;
        inset: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #fff !important;
    }

    .tg-header.is-open .tg-header__inner {
        height: auto !important;
        min-height: 100vh !important;
        padding: 12px 37px 28px !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        flex-wrap: wrap !important;
        overflow-y: auto !important;
    }

    /* hamburger -> X */
    .tg-header.is-open .tg-menu-toggle {
        position: absolute !important;
        top: 8px !important;
        right: 18px !important;
    }

    .tg-header.is-open .tg-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .tg-header.is-open .tg-menu-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    .tg-header.is-open .tg-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* ปุ่ม CTA บน mobile drawer */
    .tg-actions {
        display: none !important;
    }

    .tg-header.is-open .tg-actions {
        order: 2 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        margin: 26px 0 18px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tg-header.is-open .tg-action {
        width: fit-content !important;
        min-width: 98px !important;
        min-height: 30px !important;
        padding: 0 18px !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 30px !important;
        box-shadow: none !important;
    }

    .tg-header.is-open .tg-action--outline {
        color: #1B6CFF !important;
        border: 1px solid #1B6CFF !important;
        background: #fff !important;
    }

    .tg-header.is-open .tg-action--gold {
        color: #222 !important;
        border: 1px solid #e1b500 !important;
        background: #ffd64f !important;
    }

    /* Mobile nav panel */
    .tg-nav {
        display: none !important;
    }

    .tg-header.is-open .tg-nav {
        order: 3 !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .tg-nav__list {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .tg-nav__item {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #d6d6d6 !important;
    }

    .tg-nav__link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 35px !important;
        height: 35px !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #222 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 35px !important;
        letter-spacing: 0 !important;
        border: 0 !important;
        background: transparent !important;
        white-space: nowrap !important;
    }

    .tg-nav__link::after {
        display: none !important;
    }

    .tg-nav__item.is-open > .tg-nav__link,
    .tg-nav__link:hover {
        color: #1B6CFF !important;
    }

    .tg-nav__item.is-open > .tg-nav__link {
        border-bottom: 2px solid #1B6CFF !important;
    }

    .tg-nav__arrow {
        width: 7px !important;
        height: 7px !important;
        margin-right: 18px !important;
        border-right: 1px solid currentColor !important;
        border-bottom: 1px solid currentColor !important;
        transform: rotate(45deg) !important;
        transition: transform 0.22s ease !important;
    }

    .tg-nav__item.is-open > .tg-nav__link .tg-nav__arrow {
        transform: rotate(225deg) !important;
    }

    /* Submenu style เหมือนตัวอย่าง */
    .tg-mega {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-height: 360px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .tg-nav__item.is-open > .tg-mega {
        display: block !important;
    }

    .tg-mega::-webkit-scrollbar {
        width: 8px;
    }

    .tg-mega::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 99px;
    }

    .tg-mega::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 99px;
    }

    .tg-mega__inner {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        padding: 10px 14px 12px !important;
        margin: 0 !important;
    }

    .tg-mega__intro {
        display: block !important;
        padding: 0 !important;
        margin: 0 0 8px !important;
        border: 0 !important;
    }

    .tg-mega__title {
        display: block !important;
        margin: 0 0 8px !important;
        padding-left: 2px !important;
        color: #111 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }

    .tg-mega__desc {
        display: none !important;
    }

    .tg-mega__content {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tg-mega__col {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tg-mega__link {
        display: block !important;
        min-height: 34px !important;
        padding: 7px 0 7px 16px !important;
        color: #555 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.45 !important;
        border: 0 !important;
        background: transparent !important;
        transform: none !important;
    }

    .tg-mega__link::before {
        display: none !important;
    }

    .tg-mega__link:hover {
        color: #1B6CFF !important;
        transform: none !important;
    }
}

@media (max-width: 575.98px) {
    .tg-header__inner {
        padding-left: 8px !important;
        padding-right: 16px !important;
    }

    .tg-header.is-open .tg-header__inner {
        padding-left: 37px !important;
        padding-right: 37px !important;
    }

    .tg-logo img {
        max-width: 142px !important;
        max-height: 36px !important;
    }

    .tg-header.is-open .tg-logo img {
        max-width: 150px !important;
        max-height: 38px !important;
    }
}

/* =====================================================
   FINAL FIX: Thai GstarCAD Header + Mobile Drawer
   วางท้ายสุดของ custom.css
   ===================================================== */

.tg-header,
.tg-header * {
    box-sizing: border-box !important;
    font-family: 'Sukhumvit Set', sans-serif !important;
}

.tg-header a,
.tg-header a:hover,
.tg-header a:focus {
    text-decoration: none !important;
}

.tg-header ul,
.tg-header li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Desktop menu font หนาขึ้น */
.tg-nav__link {
    font-weight: 600 !important;
}

.tg-action {
    font-weight: 700 !important;
}

.tg-mega__title {
    font-weight: 700 !important;
}

.tg-mega__link {
    font-weight: 500 !important;
}

/* Mobile */
@media (max-width: 1199.98px) {
    body.tg-menu-open {
        overflow: hidden !important;
    }

    .tg-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 999999 !important;
        width: 100% !important;
        background: #fff !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: none !important;
    }

    .tg-header__inner {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 52px !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        background: #fff !important;
    }

    .tg-logo {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .tg-logo img {
        display: block !important;
        width: auto !important;
        max-width: 145px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    .tg-menu-toggle {
        position: relative !important;
        z-index: 4 !important;
        display: inline-flex !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        margin-left: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 6px !important;
        cursor: pointer !important;
    }

    .tg-menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 2px !important;
        background: #222 !important;
        border-radius: 99px !important;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    /* Drawer open */
    .tg-header.is-open {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #fff !important;
    }

    .tg-header.is-open .tg-header__inner {
        height: auto !important;
        min-height: 100vh !important;
        padding: 12px 37px 28px !important;
        display: flex !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        overflow-y: auto !important;
        background: #fff !important;
    }

    .tg-header.is-open .tg-logo {
        width: calc(100% - 50px) !important;
        order: 1 !important;
    }

    .tg-header.is-open .tg-logo img {
        max-width: 150px !important;
        max-height: 38px !important;
    }

    /* hamburger -> X */
    .tg-header.is-open .tg-menu-toggle {
        position: absolute !important;
        top: 8px !important;
        right: 18px !important;
    }

    .tg-header.is-open .tg-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .tg-header.is-open .tg-menu-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    .tg-header.is-open .tg-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Default hide */
    .tg-nav,
    .tg-actions {
        display: none !important;
    }

    /* CTA บน mobile */
    .tg-header.is-open .tg-actions {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 9px !important;
        margin: 25px 0 18px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        position: static !important;
    }

    .tg-header.is-open .tg-action {
        display: inline-flex !important;
        width: auto !important;
        min-width: 98px !important;
        min-height: 30px !important;
        padding: 0 18px !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 30px !important;
        box-shadow: none !important;
    }

    .tg-header.is-open .tg-action--outline {
        color: #1B6CFF !important;
        border: 1px solid #1B6CFF !important;
        background: #fff !important;
    }

    .tg-header.is-open .tg-action--gold {
        color: #222 !important;
        border: 1px solid #e1b500 !important;
        background: #ffd64f !important;
    }

    /* Nav drawer */
    .tg-header.is-open .tg-nav {
        order: 3 !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .tg-nav__list {
        display: block !important;
        width: 100% !important;
    }

    .tg-nav__item {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #d6d6d6 !important;
    }

    .tg-nav__link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 35px !important;
        height: 35px !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #111 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 35px !important;
        letter-spacing: 0 !important;
        border: 0 !important;
        background: transparent !important;
        white-space: nowrap !important;
    }

    .tg-nav__link::after {
        display: none !important;
    }

    .tg-nav__item.is-open > .tg-nav__link,
    .tg-nav__link:hover {
        color: #1B6CFF !important;
    }

    .tg-nav__item.is-open > .tg-nav__link {
        border-bottom: 2px solid #1B6CFF !important;
    }

    .tg-nav__arrow {
        width: 7px !important;
        height: 7px !important;
        margin-right: 18px !important;
        border-right: 1.5px solid currentColor !important;
        border-bottom: 1.5px solid currentColor !important;
        transform: rotate(45deg) !important;
        transition: transform 0.22s ease !important;
    }

    .tg-nav__item.is-open > .tg-nav__link .tg-nav__arrow {
        transform: rotate(225deg) !important;
    }

    /* Submenu */
    .tg-mega {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-height: 360px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .tg-nav__item.is-open > .tg-mega {
        display: block !important;
    }

    .tg-mega::-webkit-scrollbar {
        width: 8px;
    }

    .tg-mega::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 99px;
    }

    .tg-mega::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 99px;
    }

    .tg-mega__inner {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        padding: 10px 14px 12px !important;
        margin: 0 !important;
    }

    .tg-mega__intro {
        display: block !important;
        padding: 0 !important;
        margin: 0 0 8px !important;
        border: 0 !important;
    }

    .tg-mega__title {
        display: block !important;
        margin: 0 0 8px !important;
        padding-left: 2px !important;
        color: #111 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }

    .tg-mega__desc {
        display: none !important;
    }

    .tg-mega__content,
    .tg-mega__col {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tg-mega__link {
        display: block !important;
        min-height: 34px !important;
        padding: 7px 0 7px 16px !important;
        color: #444 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.45 !important;
        border: 0 !important;
        background: transparent !important;
        transform: none !important;
    }

    .tg-mega__link::before {
        display: none !important;
    }

    .tg-mega__link:hover {
        color: #1B6CFF !important;
        transform: none !important;
    }
}

@media (max-width: 575.98px) {
    .tg-header__inner {
        padding-left: 8px !important;
        padding-right: 16px !important;
    }

    .tg-header.is-open .tg-header__inner {
        padding-left: 37px !important;
        padding-right: 37px !important;
    }
}

/* =====================================================
   FINAL MOBILE HEADER FIX
   วางท้ายสุดของ custom.css
   ===================================================== */

html body .tg-header,
html body .tg-header * {
    box-sizing: border-box !important;
    font-family: 'Sukhumvit Set', sans-serif !important;
}

html body .tg-header a,
html body .tg-header a:hover,
html body .tg-header a:focus {
    text-decoration: none !important;
}

html body .tg-header ul,
html body .tg-header li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* เมนูให้ตัวหนาขึ้น */
html body .tg-nav__link {
    font-weight: 700 !important;
}

html body .tg-mega__title {
    font-weight: 700 !important;
}

html body .tg-mega__link {
    font-weight: 600 !important;
}

html body .tg-action {
    font-weight: 700 !important;
}

/* Mobile */
@media (max-width: 1199.98px) {
    html body.tg-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }

    html body .tg-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2147483647 !important;
        width: 100% !important;
        background: #fff !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: none !important;
    }

    html body .tg-header__inner {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 52px !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        background: #fff !important;
        overflow: visible !important;
    }

    html body .tg-logo {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    html body .tg-logo img {
        display: block !important;
        width: auto !important;
        max-width: 145px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    html body .tg-menu-toggle {
        position: relative !important;
        z-index: 2147483647 !important;
        display: inline-flex !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        margin: 0 0 0 auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 6px !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    html body .tg-menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 2px !important;
        background: #222 !important;
        border-radius: 99px !important;
        transition: transform 0.22s ease, opacity 0.22s ease !important;
    }

    /* ซ่อนเมนูตอนยังไม่เปิด */
    html body .tg-nav,
    html body .tg-actions {
        display: none !important;
    }

    /* เปิด Drawer เต็มจอ */
    html body .tg-header.is-open {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #fff !important;
    }

    html body .tg-header.is-open .tg-header__inner {
        height: auto !important;
        min-height: 100vh !important;
        padding: 12px 37px 28px !important;
        display: flex !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        overflow-y: auto !important;
        background: #fff !important;
    }

    html body .tg-header.is-open .tg-logo {
        order: 1 !important;
        width: calc(100% - 52px) !important;
    }

    html body .tg-header.is-open .tg-logo img {
        max-width: 150px !important;
        max-height: 38px !important;
    }

    /* Hamburger กลายเป็น X */
    html body .tg-header.is-open .tg-menu-toggle {
        position: absolute !important;
        top: 8px !important;
        right: 18px !important;
    }

    html body .tg-header.is-open .tg-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    html body .tg-header.is-open .tg-menu-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    html body .tg-header.is-open .tg-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* CTA */
    html body .tg-header.is-open .tg-actions {
        order: 2 !important;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 9px !important;
        margin: 25px 0 18px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body .tg-header.is-open .tg-action {
        display: inline-flex !important;
        width: auto !important;
        min-width: 98px !important;
        min-height: 30px !important;
        padding: 0 18px !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 30px !important;
        box-shadow: none !important;
    }

    html body .tg-header.is-open .tg-action--outline {
        color: #1B6CFF !important;
        border: 1px solid #1B6CFF !important;
        background: #fff !important;
    }

    html body .tg-header.is-open .tg-action--gold {
        color: #222 !important;
        border: 1px solid #e1b500 !important;
        background: #ffd64f !important;
    }

    /* Main nav */
    html body .tg-header.is-open .tg-nav {
        order: 3 !important;
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    html body .tg-nav__list {
        display: block !important;
        width: 100% !important;
    }

    html body .tg-nav__item {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #d6d6d6 !important;
    }

    html body .tg-nav__link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 35px !important;
        height: 35px !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #111 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 35px !important;
        letter-spacing: 0 !important;
        border: 0 !important;
        background: transparent !important;
        white-space: nowrap !important;
    }

    html body .tg-nav__link::after {
        display: none !important;
    }

    html body .tg-nav__item.is-open > .tg-nav__link,
    html body .tg-nav__link:hover {
        color: #1B6CFF !important;
    }

    html body .tg-nav__item.is-open > .tg-nav__link {
        border-bottom: 2px solid #1B6CFF !important;
    }

    html body .tg-nav__arrow {
        display: inline-block !important;
        width: 7px !important;
        height: 7px !important;
        margin-right: 18px !important;
        border-right: 1.5px solid currentColor !important;
        border-bottom: 1.5px solid currentColor !important;
        transform: rotate(45deg) !important;
        transition: transform 0.22s ease !important;
    }

    html body .tg-nav__item.is-open > .tg-nav__link .tg-nav__arrow {
        transform: rotate(225deg) !important;
    }

    /* Submenu */
    html body .tg-mega {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-height: 360px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    html body .tg-nav__item.is-open > .tg-mega {
        display: block !important;
    }

    html body .tg-mega__inner {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        padding: 10px 14px 12px !important;
        margin: 0 !important;
    }

    html body .tg-mega__intro {
        display: block !important;
        padding: 0 !important;
        margin: 0 0 8px !important;
        border: 0 !important;
    }

    html body .tg-mega__title {
        display: block !important;
        margin: 0 0 8px !important;
        padding-left: 2px !important;
        color: #111 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }

    html body .tg-mega__desc {
        display: none !important;
    }

    html body .tg-mega__content,
    html body .tg-mega__col {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body .tg-mega__link {
        display: block !important;
        min-height: 34px !important;
        padding: 7px 0 7px 16px !important;
        color: #444 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
        border: 0 !important;
        background: transparent !important;
        transform: none !important;
    }

    html body .tg-mega__link::before {
        display: none !important;
    }

    html body .tg-mega__link:hover {
        color: #1B6CFF !important;
        transform: none !important;
    }
}

@media (max-width: 575.98px) {
    html body .tg-header__inner {
        padding-left: 8px !important;
        padding-right: 16px !important;
    }

    html body .tg-header.is-open .tg-header__inner {
        padding-left: 37px !important;
        padding-right: 37px !important;
    }
}
/* =====================================================
   Thai GstarCAD Footer (site-wide, dark gradient theme
   matching the home2027 hero palette)
   วางท้ายสุดของ custom.css
   ===================================================== */

.tg-footer,
.tg-footer * {
    box-sizing: border-box;
}

.tg-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(112deg, #031635 0%, #041635 28%, #0C5CAB 100%);
    color: #E8EEFC;
    font-family: "Prompt", "Sarabun", "Noto Sans Thai", "Lato", Arial, sans-serif;
}

.tg-footer__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(60% 90% at 88% 15%, rgba(92, 189, 253, 0.35), transparent 65%);
}

.tg-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 40px);
}

.tg-footer__top {
    padding: clamp(48px, 6vw, 72px) 0 clamp(36px, 4vw, 48px);
}

.tg-footer__top .tg-footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: clamp(28px, 4vw, 48px);
}

.tg-footer__logo {
    display: block;
    max-width: 190px;
    height: auto;
    margin-bottom: 20px;
}

.tg-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(216, 228, 252, 0.82);
}

.tg-footer__contact-label {
    display: inline-block;
    min-width: 52px;
    color: #5CBDFD;
    font-weight: 500;
}

.tg-footer__contact-item--address {
    max-width: 320px;
}

.tg-footer__head {
    margin: 0 0 16px;
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 600;
}

.tg-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.tg-footer__col .tg-footer__head:not(:first-child) {
    margin-top: 22px;
}

.tg-footer__link {
    color: rgba(216, 228, 252, 0.82) !important;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none !important;
    transition: color .25s ease, transform .25s ease;
}

.tg-footer__link:hover {
    color: #5CBDFD !important;
    transform: translateX(3px);
}

.tg-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}

.tg-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tg-footer__copy {
    font-size: 13px;
    color: rgba(216, 228, 252, 0.7);
}

.tg-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-footer__social-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.tg-footer__social-ic:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.tg-footer__social-ic img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .tg-footer__top .tg-footer__inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }

    .tg-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .tg-footer__top .tg-footer__inner {
        grid-template-columns: 1fr;
    }

    .tg-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
