header .header-menu-bar {
    background-color: #DE5C8E;
}

/* 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;
}

/* 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:#DE5C8E;
     border-top: 10px solid #f2f2f2;
}

/*Service Box*/
.service-box {
  position: relative;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}
.service-box ul, .service-box ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-box ul {
  box-sizing: border-box;
  overflow: hidden;
  display:block;
}
.service-box ul li {
  width: 24%;
  position: relative;
  min-height: 1px;
  float: left;
  margin: 5px 5px 20px 5px;
  border-radius: 20px;
}
.service-box ul li a {
  margin: auto;
  padding: 15px 15px;
  color: #544216;
  display: block;
  background-color: #f4ebd0;
  border-radius: 20px;
  font-size: 120%;
  text-align: center;
  -webkit-transition-duration: .5s;
  -moz-transition-duration: .5s;
  -o-transition-duration: .5s;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.service-box ul li a:hover {
  background: #8c1515;
  color: #fff;
}

@media (max-width: 576px){
  .service-box ul li{ width:100%; }
}

.head-line2{
   border-left: 15px solid #cf2d1e;
   padding-left:5px;
}

/*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: #CF2D1E;
  color: white;
  border:1px solid #CF2D1E;
}

.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;
    color:#333333
}
.side-menu ul li.active a {
    color: #ffffff;
    background:#DE5C8E;
    border:1px solid #DE5C8E;
}




/*more link*/
.more-link a {
    font-family: "athitimedium", sans-serif;
    font-size:90%;
    background-color: #8c1515;
    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;
}



.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;
  border-bottom:5px solid  #DE5C8E;
}
/*.frame-6 h2:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #111;
}*/


/*Library Link*/
.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;
}


/*Head Line*/
.frame-5 h2{
  font-size: 1.5rem;
  background: #DE5C8E;   
  color: #fff;
  padding: 15px 20px;
  margin-bottom: 30px;

  border-radius: 16px;       /* ขอบโค้ง */
  box-shadow: 0 10px 24px rgba(222, 92, 142, .25); /* เงานุ่มๆ */
  position: relative;
  overflow: hidden;          /* ให้ไฮไลท์ไม่ล้น */
}


/*Box link*/
.frame-2 li a:hover {
  background-color: #de5c8e;
}


/*More Link*/
.frame-3 a {
background-color: #DE5C8E;
.frame-3 a:hover {
background-color:#333333;
}


/*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; 
}
