/* General Header Styles */
header .header-menu-bar {
    background-color: #253B6E;
}

/* 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: 3px 8px; /* ลด 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: 30px; /* เพิ่มพื้นที่ขวาให้ลูกศร */
}

/* 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 */
}

/*Short Menu*/
header .header-primary .head-shortcut-menu {
  max-width: 70%;
  font-size: 110%;
}
header .header-primary .head-shortcut-menu li a {
  color: #333333;
}
header .header-primary .head-shortcut-menu li a:hover {
  color: #65B5D5;
}

.tx-srlanguagemenu-links div a {
    border-radius:0px;
    width:50px;
    border: 0.0625rem solid #333333;
    background: #FFFFFF;
    color:#333333;
}
.tx-srlanguagemenu-links div.CUR a {
    background: #333333;
    color:#FFFFFF;
}


footer {
background:#253B6E;
}

/*Service Box*/
.service-box {
  font-family: "athitisemibold", sans-serif;
  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: 32.5%;
  position: relative;
  min-height: 1px;
  float: left;
  margin: 5px 5px 20px 5px;
  border-radius: 20px;
}
.service-box ul li a {
  font-size: 110%;
  font-weight: 500;
  margin: auto;
  padding: 15px 15px;
  color: #544216;
  display: block;
  background-color: #F2EBDA;
  border-radius: 20px;
  text-align: center;
  -webkit-transition-duration: .5s;
  -moz-transition-duration: .5s;
  -o-transition-duration: .5s;
  box-shadow:none;
}
.service-box ul li a:hover {
  background: #AE1B1F;
  color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

@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 {
  background: #eeeeee;
  border: 1px #eeeeee solid;
  display: block;
  padding-top:10px;
  color: #000000;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  border-bottom:1px solid #eeeeee;
}
.box-link li a:hover {
  background-color: #253B6E;
  color: white;
  border:1px solid #253B6E;
}

.side-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.side-menu ul li a {
    display: block;
    color: #000;
    padding: 10px 15px;
    text-decoration: none;
    margin-bottom: 5px;
    border: 1px solid #eee;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.side-menu ul li a:hover{
    border: 1px solid #253b6e;
    background: #253B6E;
    color: #ffffff;
    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 {
    border: 1px solid #253b6e;
    background: #253B6E;
    color: #ffffff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}


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;}
body.dark-theme .btn-dean {background:#333333; color:#ffffff; border:1px solid #ffffff;}
body.dark-theme .slick-slider .slick-dots li button {background:#333333; border: 0.0625rem solid #ffffff;}
body.dark-theme .title-head-line h2 { background:#333333; color:#ffffff;}
body.dark-theme .head-line {border-bottom:3px solid #333333;}
body.dark-theme .more-link a{background:#333333;}
body.dark-theme .side-menu ul li.active a {border:1px solid #333333; background:#333333;}
body.dark-theme .tx-srlanguagemenu-links div.CUR a {border:0.0625rem solid #ffffff;}
body.dark-theme .tx-srlanguagemenu-links div.SPC a {border:0.0625rem solid #ffffff; background:#555555;}
body.dark-theme header .header-primary .head-shortcut-menu li a {color:#ffffff;}
body.dark-theme .accordion-body{background:#555555}

/*more link*/
.more-link a {
    font-family: "athitimedium", sans-serif;
    font-size:90%;
    background-color: #253B6E;
    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
}

.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 #C23B5E;
  /* 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;
}

.sidebar-intro ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.sidebar-intro li a {
  display: block;
  background: #A30B2E;
  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;
  font-weight: 600;
}
.sidebar-intro li.active a {
  background: #F5E6CA;
  color: #492F10;
}
.sidebar-intro li a:hover:not(.active) {
  background: #F5E6CA;
  color: #492F10;
}

.sdg-item a{
  color:#FFFFFF;
}
.sdg-item a:hover{
  color:#EEEEEE;
}

.frame-1 ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.frame-1 li a{
  display: block;
  color: #000;
  padding: 10px 15px;
  text-decoration: none;
  border-radius:10px;
  background-color:#f2f1eb;
  margin-bottom:5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
.frame-1 li a:hover{
  background-color: #00464c;
  color: white;
}


.frame-15 h2 {
    color: #AE1B1F;
}

@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;
    }
}

/*Social media*/
footer .social-media-list{
    margin-bottom:100px;
    /*float:left;*/
}
footer .social-media-list ul {
    float: left;
}
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;
}

/*Head Line*/
.head-line {overflow: hidden;border-bottom:3px solid #253B6E;margin-bottom: 20px;}
.title-head-line h2{display:inline-block; background-color: #253B6E; margin-bottom:0; color:#ffffff; padding: 7px 20px 2px 11px;font-size: 1.2em;}

/*btn Dean*/
.btn-dean {
    background-color: #7994d2;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 10px;
}
.btn-dean a{color:#ffffff;}
.btn-dean:hover{opacity: 0.5}

.special-layout.layout-69 a, 
.special-layout.layout-69 .teaser,
.special-layout.layout-69 .teaser p {
    color: #ffffff !important;
}
.special-layout.layout-69 a:hover {
    color: #ffc107 !important; 
    text-decoration: underline;
}
.special-layout h5, .special-layout h3{
    font-size: 1.5rem !important;
}

.bg-dark
 {
    background-color: #253B6E ! important;
}