/*** General CSS ***/
.btn,
.slider-btn a,
.button.subbutton,
#sp_qc_submit {
    position: relative;
    display: inline-block;
    width: auto;
    margin: 0;
    font-family: inherit;
    line-height: 2em;
    letter-spacing: .02em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 12px 35px;
    text-transform: uppercase;
    color: #fff!important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2.4px;
    border-radius: 7px!important;
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    border: 2px solid;
}
.btn i {
    background: #fff;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.btn i:before {
    font-size: 14px;
    position: relative;
    text-align: center;
    line-height: 20px;
    padding-left: 4px;
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.button.subbutton,
.btn:hover {
    background: #fff;
}
.btn:hover i {
    color: #fff;
}
.btn.no-bg {
    background: none!important;
    box-shadow: none!important;
    border: 2px solid #C8C5BB!important;
    color: #212529!important;
    font-size: 14px;
}
.btn.no-bg:hover {
    border-color: #99978E!important;
}
/*** Title ***/
.title {
    max-width: 900px;
    margin: 0 auto;
}
.slider .btn {
    border: 0;
}
.slider .slider-request {
    box-shadow: 0px 0px 40px 1px rgb(0 81 147 / 59%);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    padding: 40px 40px 40px 40px;
    background: #fff;
    max-width: 480px;
    margin: 0 auto;
    margin-right: 0;
}
.slider-request #name,
.slider-request #email {
    width: 49%;
    margin-right: 2%;
    float: left;
}
.slider-request #email {
    margin-right: 0;
}
.slider-request #subject {
    margin: 20px 0 40px;
    display: inline-block;
}
/*** Header Area ***/
/*** Top head ***/
#sp-top1 p,
.sp-contact-info li,
#sp-top-bar a {
    margin-bottom: 0;
}
#sp-top-bar ul.social-icons > li {
    margin: 0;
    border-right: 1px solid #fff;
}
#sp-top-bar ul.social-icons > li:first-child {
    border-left: 1px solid #fff;
    margin-left: 20px;
}
#sp-top-bar a {
    padding: 10px;
}

/*** Head ***/
#sp-header {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
    height: inherit;
}
#sp-header.header-sticky {
    position: fixed;
    top: 0;
    padding: 0 10px 0 0px;
}
body:not(.home) #sp-header {
    position: static;
}
body:not(.home) #sp-header.header-sticky {
    position: fixed;    
}

/* Header Menu */
.sp-megamenu-parent > li > span,
.sp-megamenu-parent > li > a {
    padding: 0 25px;
    text-transform: uppercase;
}
.sp-megamenu-parent > li li a {
    -webkit-transition: .2s ease-in-out;
    -o-transition: .2s ease-in-out;
    transition: .2s ease-in-out;
    font-weight: 500!important;
}
.sp-megamenu-parent > li li a:hover {
    padding-left: 7px!important;
}
.sp-megamenu-parent > li li a:before {
    content: '+';
    left: -25px;
    width: 20px;
    position: relative;
    color: #001659;
    font-size: 18px;
    font-weight: 400!important;
    line-height: inherit;
    -webkit-transition: .2s ease-in-out;
    -o-transition: .2s ease-in-out;
    transition: .2s ease-in-out;
    opacity: 0;
}
.sp-megamenu-parent > li li a:hover:before {
    opacity: 1;
    left: -5px;
}
body.ltr .sp-megamenu-parent > li.sp-has-child > a:after, 
body.ltr .sp-megamenu-parent > li.sp-has-child > span:after {
    position: absolute;
}
.sp-megamenu-parent > li.active > a {
    font-weight: 600;
}
.sp-megamenu-parent > li > a:before {
    content: " ";
    display: block;
    width: 0px;
    height: 1.5px;
    right: 0;
    left: 0;
    margin: 45px auto 0px;
    position: absolute;
    bottom: 30px;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -ms-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
}
.sp-megamenu-parent > li:hover > a:before,
.sp-megamenu-parent > li.active > a:before {
    width: 37px;
}
.header-sticky .sp-megamenu-parent > li:hover > a:before,
.header-sticky .sp-megamenu-parent > li.active > a:before {
    bottom: 20px;
}

/*** Block Styles ***/
/*** About ***/
.about-title .sppb-column-addons {
    border-bottom: 1px solid #DBDBDB;
}
.about-content h2 {
    font-size: 60px;
    font-weight: 900;
    color: #B47E68;
}
.about-content h6 {
    color: #B47E68;
    font-size: 23px;
    margin-bottom: 14px;
}
.about-content ul {
    padding-left: 0;
}
.about-content ul li {
    display: inherit;
    font-weight: 500;
    padding: 10px 0;
    font-family: 'Rajdhani', sans-serif;
}
.about-content ul li:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
}

/*** Feature ***/
.feature-column .sppb-column-overlay {
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.feature-column:hover .sppb-column-overlay {
    background-color: rgba(6, 6, 6, 0.8)!important;
}
.feature-column.center:hover .sppb-column-overlay {
    background-color: rgba(0, 46, 91, 0.79)!important;
}
.feature-column.center .btn {
    background: #fff;
    border-color: #fff!important;
}
.feature-column.center .btn:hover {
    transform: scale(1.1);
}
.feature-column.center .btn i {
    color: #fff;
}

/*** Service ***/
.service-item:hover .sppb-img-container {
     transform: rotate(15deg);
}

/*** Choose ***/
.choose .btn {
    padding: 11px 30px;
}
.choose-column .btn {
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.choose-column:hover .btn {
    transform: translateY(15px);
}

/*** Testimonial ***/
.testimonial .sppb-row > div {
    margin: 20px 0;
}
.testimonial-column:hover {
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    box-shadow: 0px 0px 55px 0px rgb(0 0 0 / 31%)!important;
}

/*** Counter ***/
.counter-item {
    padding: 25px 15px 10px 15px;
    background-color: #ffffff;
    border-radius: 15px 15px 15px 15px;
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.counter-item:hover {
    transform: scale(1.08);
}
.counter-item h2 {
    color: #3babfd;
    font-size: 50px;
    font-weight: 900;
    line-height: 1.2em;
}
.counter-item h5 {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2em;
}

/* Bottom Area */
/*** Bottom ***/
#sp-bottom p {
    line-height: 2.2;
}
#sp-bottom h3 {
    margin: 0 0 20px;
    font-size: 19px;
    margin: 0 0 20px;
    line-height: 1em;
}
#sp-bottom p a {
    font-weight: 700;
}
.shrewd_solution_icon ul li strong,  .bottom-contact strong {
    display: none;
}
.bottom-contact em {
    padding-right: 10px;
}
.shrewd_solution_icon ul,
.shrewd_solution_icon ul li {
    display: inline-block!important;
    padding: 0px!important;
}
.shrewd_solution_icon ul li a {
    font-size: 16px;
    background: #fff;
    height: 36px;
    width: 36px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    -webkit-transition: .5s;
    transition: .5s;
    box-shadow: 0 0 15px rgba(228, 200, 200, 0.5);
    display: inline-block;
}
.shrewd_solution_icon ul li a:hover {
    background: #224B8B; 
    color:#fff!important;
}

/* Footer Copyright */
#sp-footer {
    text-align: center;
}

/*** Responsive Layout ***/
/* Tablet Landscape Layout */
@media (min-width: 1400px) {
    .sppb-row-container {
        max-width: 1320px;
    }
}

@media (min-width: 980px) and (max-width: 1199px) {

  
}

/* Tablet Portrait Layout */
@media (min-width: 768px) and (max-width: 979px) {

  
}

/* Mobile Standard Layout */
@media (max-width: 768px) {

  
}

/* Mobile Small Resolution */
@media (max-width: 480px) {

  
}

/*** Color Variables ***/
/* Get Variables */
:root {
    --background-color: currentColor;
    --background: currentColor;
    --text-color: currentColor;
}

/* General */
.btn,
.btn:hover i,
.slider-btn a,
.button.subbutton,
.slider-btn a,
#sp_qc_submit:hover,
.slider-text:before,
.title p:before,
#sp-quickcontact-form #sp_qc_submit,
.about-item-content a,
#sp_qc_submit,
.feature-item:after,
.contact-social ul li a,
.line-title .sppb-section-title:before,
.about-us .sppb-title-heading:before,
.feature-item:hover .sppb-addon-content a,
.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li > a:after {
    background-color: var(--background-color);
}
.title h4::after,
.feature-column.center .btn i,
.sp-megamenu-parent > li .sp-menu-badge {
   background: var(--background-color);
}
.title h2,
.slider-content h1,
.title.white h6,
.about-content ul li:before,
.slider-content h6,
.testimonial-content em,
.service-item h5,
.service-item i,
.testimonial-person span,
.slider-text-color,
.blog h3,
#sp_qc_submit,
.btn-no-bg,
.slider-button-text strong,
.testimonial-content i,
.about-item-content h3,
.about-item a:hover,
.video-item figure a:hover:after,
.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li:hover > a {
	color: var(--text-color);
}
.title h2,
.team-item h5,
.btn:hover,
.feature-column.center .btn,
.slider-btn a:hover,
.button.subbutton:hover,
#sp-quickcontact-form #sp_qc_submit:hover,
.feature-item .sppb-icon-container i, 
.about-content h4, .choose-title h3,
.slider-request-title h4, 
.contact-title h3, .contact-text p, .shrewd_solution_icon ul li a {
  	color: var(--text-color)!important;
}
.about-item img,
.btn,
.slider-btn a,
.button.subbutton,
#sp-quickcontact-form #sp_qc_submit {
   border-color:var(--text-color)!important;
}
.btn-large, .button.btn-large,
.sp-megamenu-parent > li > a:before {
    background: var(--background-color)!important;
}
.video-item figure a:after:hover {
	border: 1px solid var(--text-color);
}


/*Menu_แก้ไขเพิ่มเติม  ด้านล่างคือโค้ดที่เดิมเองทั้งหมด*/
.dropdown-menu {
  max-height: 70vh;      /* สูงสุดไม่เกิน 70% ของหน้าจอ */
  overflow-y: auto;      /* ถ้ายาวเกิน ให้มี scrollbar */
}


/* จำกัดความสูงของ dropdown และเพิ่ม scrollbar เมื่อรายการยาวเกิน */
.sp-dropdown {
  max-height: 70vh;        /* สูงไม่เกิน 70% ของหน้าจอ */
  overflow-y: auto;        /* มี scrollbar แนวตั้งถ้ารายการยาว */
  overflow-x: hidden;      /* ไม่ให้มี scrollbar แนวนอน */
  z-index: 9999;           /* ป้องกัน dropdown ถูกบัง */
}

/*พื้นหลังใหม่*/
body {
 /* background-color: #f0f0f0;   สีเทาอ่อนสบายตา */
}

.wrapper, 
#main, 
.container {
  background-color: #ffffff;  /* พื้นหลังขาวเนื้อหา */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* เปลี่ยนสีไอคอนโซเชียล เช่น Facebook, YouTube ให้เป็นสีเข้ม */
.social-icons li a span.fab {
  color: #333333 !important;  /* สีเทาเข้มหรือดำ */
}

/* เปลี่ยนสีลิงก์ในส่วนติดต่อ เช่น เบอร์โทร และอีเมล */
.sp-contact-info li a {
  color: #333333 !important;
}

/* เปลี่ยนสีไอคอนโทรศัพท์และอีเมล */
.sp-contact-info li span {
  color: #333333 !important;
}

/*แก้ปุ่มไม่แสดง*/
input[type="submit"], button[type="submit"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #ff7e5f !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(255,126,95,0.6);
}




.my-submit-button {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  border: none;
  color: white;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/*ปรับเมนูซ้าย*/



