header .header-menu-bar {
  background-color: #75C4FF;
}
/* Default styles for menu links */
header .header-menu-bar .menu-list > li > a {
    color: #ffffff !important; /* Default text color */
    background: transparent !important; /* Default background */
    position: relative;
    transition: color 0.3s, background 0.3s;
}

/* Hover and active styles for all menu items */
header .header-menu-bar .menu-list > li:hover > a,
header .header-menu-bar .menu-list > li.active > a {
    color: #333333 !important; /* Text color for hover and active state */
    background: #ffffff !important; /* Background color for hover and active state */
    border-radius: 0.3125rem;
}
.my-bg-mfu {
    background-color: #75C4FF; 
    color: #ededed
}
/* Submenu arrow styles */
header .header-menu-bar .menu-list > li.has-submenu > a:after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-top: 0.3125rem solid #ffffff; /* Default arrow color */
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    transition: border-top 0.3s;
}

/* Hover and active styles for submenu arrows */
header .header-menu-bar .menu-list > li.has-submenu:hover > a:after,
header .header-menu-bar .menu-list > li.active > a:after {
    border-top: 0.3125rem solid #333333 !important; /* Arrow color for hover and active state */
}

footer {
  background: #75C4FF;
}
/*Service Box*/

.service-box ul li a {
  color: #ffffff;
  background-color: #3ea3cb;
}
.service-box ul li a:hover {
  background: #213253;
  color: #ffffff;
}

.head-line2 {
  border-left: 15px solid #cf2d1e;
  padding-left: 5px;
}
/*Box link*/
.frame-2 ul {
  list-style-type: none;
  line-height: 20pt;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}
.frame-2 li a {
  display: block;
  color: #213253;
  font-size: 100%;
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  background: #eeeeee;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
.frame-2 li a:hover {
  background-color: #3ea3cb;
  color: white;
}
body.dark-theme .service-box ul li a, body.dark-theme .box-link li a, body.dark-theme .footer {
  background: #333333;
}
body.dark-theme .side-menu ul li a:hover {
  background: #333333;
}
body.dark-theme .menu-list > li a {
  color: #ffffff;
}
/*more link*/
.more-link a {
  font-family: "athitimedium", sans-serif;
  font-size: 90%;
  background-color: #3EA3CB;
  color: #ffffff;
  font-weight: 400;
  border-radius: 100px;
  padding: 5px 10px;
  text-decoration: none;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
  float: right;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  margin: 10px;
}
.more-link a:hover {
  color: #fff;
  background-color: #333333;
  text-decoration: underline;
}
@media (min-width: 992px) {
  .card-img-2col, .card-img-3col {
    height: 10vw;
  }
}
.btn-port {
  border-radius: 0;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  transition: all .3s
}
.btn-port.btn-porttheme {
  background: #f2f1eb;
  color: #222831;
  width: 100%;
  border-radius: 5px;
  text-align: left;
  font-size: 17px;
  margin: 1px 0;
  font-weight: 300;
  white-space: normal !important
}
.btn-port.btn-porttheme:hover, .btn-port.btn-porttheme:active {
  color: #FFF;
  background: #222831
}
.servicebox {
  position: relative;
  width: 100%;
  margin-top: 30px;
}
.servicebox .table .table-cell {
  font-size: 19px;
  line-height: 1.3333333;
  border-radius: 5px;
  padding: 16px 20px;
  background: #f2f1eb;
  color: #222831;
  text-align: center;
  text-transform: uppercase;
}
.servicebox a {
  margin: auto;
  color: #222831;
  display: block;
  font-weight: 500;
}
.servicebox .table .table-cell:hover {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  background: #222831;
  color: #fff;
  cursor: pointer;
}
.servicebox .table .table-cell:hover a {
  color: #fff;
  text-decoration: none;
}
.btn-instrument {
  color: #222831;
  width: 100%;
  text-align: left;
  font-size: 17px;
  margin: 1px 0;
  font-weight: 300;
  white-space: normal !important;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  transition: all .3s;
  border-left: 5px solid #8c1515
}
.btn-instrument:hover, .btn-instrument:active {
  color: #8c1515;
  border-left: 15px solid #8c1515
}
.list-underline {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.list-underline li a {
  display: block;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  background: #f2f1eb;
  margin-bottom: 10px;
  transition: all 0.3s;
  border-radius: 5px;
}
.list-underline li a:hover {
  background-color: #222831;
  color: white;
}
.head-line4 {
  text-transform: capitalize;
  margin-bottom: 10px;
  border-bottom: 5px solid #ED213A;
  /* width:50%; */
}
.head-line4 h2 {
  color: #232931;
  margin-bottom: 0;
  font-size: 250%;
}
.head-line4 h3 {
  border-bottom: 0px;
  font-size: 150%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(0, 0, 0, 0.4);
  padding-bottom: 10px;
  margin-bottom: 0;
}
.block3d {
  /* border: 2px solid #45526C; */
  padding: 30px 10px;
  box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
  background: #F8F5F1;
  border-radius: 20px;
}
.side-menu ul {
  list-style-type: none;
  font-size: 110%;
  margin: 0;
  padding: 0;
  width: 100%;
}
.side-menu ul li a {
  display: block;
  background: #213253;
  border-radius: 5px;
  box-shadow: rgb(0 0 0 / 7%) 0px 1px 1px, rgb(0 0 0 / 7%) 0px 2px 2px, rgb(0 0 0 / 7%) 0px 4px 4px, rgb(0 0 0 / 7%) 0px 8px 8px, rgb(0 0 0 / 7%) 0px 16px 16px;
  color: #ffffff;
  padding: 10px;
  text-decoration: none;
  margin-bottom: 15px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px #213253 solid;
}
.side-menu ul li a:hover {
  background: #3ea3cb;
  border: 1px #3ea3cb solid;
  color: #FFFFFF;
}
.side-menu ul li.active a {
  background: #3ea3cb;
  border: 1px #3ea3cb solid;
  color: #FFFFFF
}
.accordion-button.collapsed, .accordion-button:not(.collapsed) {
  font-size: 80%;
}
.tx-jpfaq h2.accordion-header {
  font-size: 130%;
}
.sidemenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}
.sidemenu li a {
  font-size: 100%;
  display: block;
  background: #3ea3cb;
  border-radius: 5px;
  color: #ffffff;
  padding: 10px;
  text-decoration: none;
  margin-bottom: 15px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
.sidemenu li a:hover {
  background: #213253;
  color: #FFFFFF;
}
.custom-pagination .arrow a {
  color: #FFFFFF;
  background: #333333;
}
.custom-pagination .arrow a:hover {
  color: #FFE227;
}
.frame-5 h2 {
  font-size:1.5rem;
  border-radius:10px;
  background: #75C4FF;
  padding: 15px 20px;
  box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}


/*More Link*/
.frame-3 a {
background-color: #eeeee4;
  color:#333333;
}
.frame-3 a:hover {
background-color:#2596be;
  color:#FFFFFF;
}



/*Border around each element*/

.ce-border img {
    border: 10px solid #FFFFFF;
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
    display: block; /* ช่วยเรื่องการจัดวาง */
    max-width: 100%;
    height: auto;
    border-radius:10px;
}
/* ปลดล็อกการบดบังเงาสำหรับ gallery */
.ce-textpic, .ce-image, .ce-gallery, .ce-row, .ce-outer, .ce-inner {
    overflow: visible !important;
}
.ce-gallery figure { 
    margin-bottom:20px; 
}





