/* General Header Styles */
header .header-menu-bar {
    background-color: #248232;
}

/* 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;
    padding: 8px 20px; /* ลด padding บน-ล่างให้กระชับขึ้น */
    transition: color 0.3s, background 0.3s, padding 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;
}

/* เพิ่ม padding ด้านขวาให้เมนูที่มี submenu */
header .header-menu-bar .menu-list > li.has-submenu > a {
    padding-right: 2rem; /* เพิ่มพื้นที่ขวาให้ลูกศร */
}

/* Submenu arrow styles */
header .header-menu-bar .menu-list > li.has-submenu > a:after {
    content: '';
    position: absolute;
    right: 1rem; /* ขยับลูกศรออกจากขอบ */
    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:#C71021;
     border-top: 10px solid #f2f2f2;
}

/*Service Box*/
.service-box ul li a {
  padding: 15px 15px;
  color: #544216;
  background-color: #f4ebd0;
}
.service-box ul li a:hover {
  background: #8c1515;
  color: #fff;
}

.head-line2 {
   border-left: 15px solid #248232;
   padding-left:5px;
   margin-bottom:2%;
}
.head-line2 .frame-7 h2{
    font-size: 1.875rem;
}

/*Box link*/
.box-link ul {
  list-style-type: none;
  line-height: 20pt;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}
.box-link li a {
  display: block;
  color: #333333;
  font-size: 100%;
  padding: 8px 14px;
  text-decoration: none;
  background: #fbfbfb;
  border-radius: 0px;
  border: #e8e8e8 solid 1px;
  margin-top: 5px;
  margin-bottom: 5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  box-shadow: none;
}
.box-link li a:hover {
  background-color: #248232;
  color: white;
  border:1px solid #248232;
}

.side-menu ul li a {
    border: 0.0625rem solid #f2f2f2;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 17px;
}
.side-menu ul li a:hover{
    background:#f2f2f2;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
.side-menu ul li.active a {
    color: #ffffff;
    background: #248232;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border: 1px solid #248232;
}




/*more link*/
.more-link a {
    font-family: "athitimedium", sans-serif;
    font-size:90%;
    background-color: #248232;
    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;
}

/*Social media*/
footer .social-media-list ul li a {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
footer .social-media-list ul li a.facebook {
    background:#4267B2;
}
footer .social-media-list ul li a.youtube{
    background:#FF0000;
}
footer .social-media-list ul li a.twitter{
    background:#14171A;
}
footer .social-media-list ul li a.instagram{
    background:#FCAF45;
}
footer .social-media-list ul li a:hover {
    background:#333333;
}

/*Hotlink*/
.hotlink {
    display: table;
    width: 100%;
    float: none;
    margin: 0 auto;
}

.hotlink li {
  display: table-cell;
}

.hotlink a {
    display: block;
    text-align: center;
    margin: 0 5px;
}

/* Change the link color to #111 (black) on hover */
.hotlink li a:hover {
  color: #C71021;
}

/*headline 6*/
.frame-6 h2 {
  font-size:120%;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5em;
  padding-bottom: 15px;
  position: relative;
}
/*.frame-6 h2:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #111;
}*/
.frame-6 h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 3px;
  width: 95%;
  max-width: 255px;
  background-color: #C71021;
}

.frame-12 ul {
  font-family: "athitimedium", sans-serif;
  list-style-type: none;
  line-height: 20pt;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}
.frame-12 li a {
  display: block;
  color: #333333;
  font-size: 100%;
  padding: 8px 14px;
  text-decoration: none;
  background: #fbfbfb;
  border-radius: 0px;
  border: #e8e8e8 solid 1px;
  margin-top: 5px;
  margin-bottom: 5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  box-shadow: none;
}
.frame-12 li a:hover {
  background-color: #CF2D1E;
  color: white;
  border:1px solid #CF2D1E;
}

.mfu-marked-link{
  border: 1px solid #eeeeee;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.frame-13 ul{
  position: relative;
  list-style: none;
  margin-left: 0;
  padding-left: 1.2em;
  font-family: "athitimedium", sans-serif;
}

.frame-13 ul li:before {
  content: "\f101";
  position: absolute;
  left: 0;
}

.frame-13 li a{
  font-size:100%;
  padding:0;
  background-color:#ffffff;
  color:#333333;
  margin-bottom:3px;
  display:block;
  border-radius:0px;
  -webkit-transition:all .3s;
  -moz-transition:all .3s;
  transition:all .3s;
}

.frame-13 li a:hover{
  background-color:#ffffff;
  color:#C71021;
  text-decoration:underline;
  padding:0;
}

.tx-srlanguagemenu-links {
    display: flex;
    display: -webkit-flex;
    justify-content: flex-end;
    -webkit-justify-content: flex-end;	
	column-gap:5px;
}
.tx-srlanguagemenu-links div a {
	display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    border: 0.0625rem solid #333333;
    padding: 5px 10px;
    border-radius: 50%;
    background: #efefef;
}
.tx-srlanguagemenu-links div.CUR a {
    background: #333;
	color:#efefef;
}

.frame-default header h2 {
    font-size: 300%;
    margin-bottom: 2%;
}

footer .social-media-list ul {
    -webkit-justify-content: left;
}

@media (max-width: 991px) {
    header .header-primary .head-right {
        background-color: #FFFFFF;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    header .xs-head-logo img {
        max-width: 26rem;
    }
}