.nav-menu ul li a{
   padding-top: 10px!important;
}
.no-js .owl-carousel, .owl-carousel.owl-loaded{
z-index: 0!important;
}
.banner-header{
   padding-top: 95px;
}

.hero{
   margin-top: 95px;
   position: relative;
    width: 100%;
    padding: 1.5rem 0 4rem 0;
    margin: 0 0 0rem 0 !important;
}
.section-top-border{
  transition: 0.3s ease-in-out;
  padding: 30px 16px;
  border-top: 1px dotted #eee;
}
.section-top-border:hover{
  cursor: pointer;
  background-color: #eee;
  color: #00317c;
}

.section-top-border:hover .border-top {
      border: 3px solid #063D8C;
      width: 100%;
      transition-delay: 0s;
    }

    .section-top-border:hover .border-right {
      border: 3px solid #063D8C;
      height: 100%;
      transition-delay: 0.15s;
    }

    .section-top-border:hover .border-bottom {
      border: 3px solid #063D8C;
      width: 100%;
      transition-delay: 0.3s;
    }

    .section-top-border:hover .border-left {
      border: 3px solid #063D8C;
      height: 100%;
      transition-delay: 0.45s;
    }

.whole-wrap{
   background-image: url(../images/11.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.box-map{
  padding: 2rem;
}
.inside-ss{
  padding: 3rem;
}

.fileedit{
  display: none;
}
.inside-ss a:hover{
    text-decoration: none;
}

.h-salogan{
  padding-top: 2rem;
}
.h-salogan h2{
  font-size: 3rem!important;
  font-weight: 700;
  color: #00317c;
}
.btn-web{
  background-color: #00317c!important;
  color: white!important;
  border-color: #00317c!important;
  transition: 0.3s ease-in-out;
}
.btn-web >i {
  padding-left: 4px;
  font-size: 0.8rem!important;
  font-weight: 400;
}

.btn-web:hover{
  background-color: transparent!important;
  color: #00317c!important;
  border-color: transparent!important;
  transition: 0.3s ease-in-out;
}
.btn-web:hover i{
  transition: 0.3s ease-in-out;
  padding-left:12px;
}

.body-txt-inside h5{
  padding-top: 6px;
  line-height: 1.8;
  color: #212529!important;
  font-weight: 400!important;
  font-size: 1rem!important;
}
.h-salogan p{
  font-size: 3rem!important;
  font-weight: 400;
  color:#101010;
}

.h-identity{
  padding-top: 2rem;
}
.h-identity h2{
  font-size: 3rem!important;
  font-weight: 700;
  color: #00317c;
}
.h-identity p{
  font-size: 3rem!important;
  font-weight: 400;
  color:#101010;
}

.h-unique{
  padding-top: 2rem;
}
.h-unique h2{
  font-size: 3rem!important;
  font-weight: 700;
  color: #00317c;
}
.h-unique p{
  font-size: 3rem!important;
  font-weight: 400;
  color:#101010;
}
.inside-ss h5{
  padding-bottom: 1rem;
  color:#00317c;
  font-size: 1.25rem!important;
  font-weight: bold;
}
.inside-ss img{
  width: 100%;
}
.inside-ss iframe{
  width: 100%;
  height: 400px
}
.whole-wrap>.container{
  background-color: white;
}

.img-bg-teacher{
    padding-top: 130px;
    background-image: url(../images/bg-teacher.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.wrapper-teacher{
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 16px;
  width: 400px;
  border-radius: 8px;
  background-color: #00317c!important;
}
.box-team>p{
  color: #101010;
  font-size: 1rem!important;
  font-weight: 400;
}
.map{
  width: 100%;
}
.bg-news{
  background-color: white;
}
.bg-news{
background-image: url(../images/11.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.all-person{
  color:white;
}
.all-person:hover{
    color:white;
    text-decoration: none;
}
.box-team>span{
  color: #101010;
  font-size: 1rem!important;
  font-weight: 400;
}
.wrapper-below{
  padding-top: 30px;
  padding-bottom: 48px;
}
.wrapper-below h5{
  color: white;
  font-weight: bold!important;
  font-size: 2.5rem!important;
}
.box-img{
  padding-bottom: 30px;
}
.box-img img{
  border-radius: 6px;
  width: 100%;
}
.box-name h5 {
  color: navy;
  font-size: 1.4rem!important;
  font-weight: bold!important;
}

.box-name  {
  color: black;
  font-size: 1.2rem!important;
  font-weight: bold!important;
}
.box-right{
  padding-left: 8px;
}
.name{
  color: white!important;
  background-color: #063D8C ;
}
.name h5 {
  font-size: 1rem!important;
  font-weight: 400!important;
  padding-left: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  color: white!important;
}
.myname h5{
  color: #101010;
  font-size: 1rem!important;
  font-weight: 400!important;
}
.wrapper-teacher a{
  color: white;
}
.wrapper-teacher a:hover{
  color: white;
  text-decoration: none;
}

.single-feature:hover{
  cursor: pointer;
}

.single-feature img{
 width: 80%; 
}
.banner-header{
   position: relative;
   width: 100%;
   overflow: hidden;
   margin: 0 0 1.5rem 0;
}
.h-img{
  padding: 0px;
  margin: 0px;
}
.h-img span{
  color: #00317c;
  font-size: 1rem!important;
  font-weight: bold;
}
.text-left h3{
  padding-bottom: 6px;
  color: #00317c;
  font-size: 0.9rem!important;
  font-weight: 600!important;
}
.social-links-footer ul li{
  display:inline;
  margin-left:15px
}

.social-links-footer ul li a{
  color: white;
  display:inline;
  margin-left:5px
}
.header-img-h{
  padding-top: 16px;
  padding-bottom: 16px;
  width: 100%;
}
.header-img-h img{
  width: 100%;
}
.body-history{
  padding-left: 1.25rem!important;
  padding-right: 1.25rem!important;
}
.social-links-footer ul li a:hover{
  color:#244cfd
}
.b-txt-h{
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 24px;
}
.about-sc>a{
  color: white;
}
.about-sc>a:hover{
  text-decoration: none;
}
.text-left h4 {
  padding-bottom: 6px;
  color: #101010;
  font-size: 0.8rem!important;
  font-weight: 400!important;
}
.box-readmore>h5>a:hover{
  text-decoration: none;
}
.item-padding{
  padding: 40px 20px;
  padding-top: 16px;
}
.banner-page{
   background-color: rgba(0, 0, 0, 0.62);
   position: absolute;
   bottom: 23px;
   left: 0px;
   right: 0px;
   z-index: 2;
}
.banner-header > .pattern {
   position: absolute;
   bottom: -150px;
   right: -90px;
   pointer-events: none;
   z-index: 3;
   transform-origin: bottom right;
   transform: scale(0.75);
}
.box-news{
    transition:transform 0.5s ease-in-out;
    margin-right: 16px!important;
    margin-left: 16px!important;
}
.box-news:hover .news-text{
  background-color: #f4f5f5!important;
}
.box-news:hover{
  cursor: pointer;
}
.box-news:hover img{
transform:scale(1.2);
}
.single-slide:hover .news-text{
  background-color: #f4f5f5!important;
}
.header-scrolled{background:#f9f9fd;
  transition:all 0.5s;
  top:0;
  border-bottom:3px solid #00317c;}@media (max-width: 673px){#logo{margin-left:20px}}
#header{
   background-color: white!important;
}
.single-slide:hover .h-news-card>a{
  text-decoration: none;
  color:#00317c!important;
}
.single-slide:hover .single-news{
  color:#00317c;
}
.single-slide:hover .news-text{
  background-color: #3498db;
}
.news-text{
  padding-bottom: 32px;
}

.h-news-card{
  white-space: nowrap!important;         /* ห้ามขึ้นบรรทัดใหม่ */
  overflow: hidden!important;            /* ซ่อนข้อความส่วนที่เกิน */
  text-overflow: clip !important;     /* แสดง ... ตรงท้าย */
  width: 100%!important;
}
.news-text >p{
  font-size: 0.95rem!important;
  line-height: 1.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;      /* จำกัด 4 บรรทัด */
  overflow: hidden;
  text-overflow: ellipsis;
}
.date-news , .view-news{
  font-size: 0.75rem!important;
  font-weight: 400!important;
}
.footer-social{
  display: ruby;
}
.footer-social >li{
  list-style: none;
  background-color: #00317c;
  border-radius: 50%;
  padding: 12px;
  margin-right: 6px;
}
.footer-social >li i{
  font-size: 20px;
  color: white;

}
.fbb:hover{
cursor: pointer;
}
.block{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}
.box-img-inside{
    display: flex;
    height: 100px;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.more-img{
  font-size: 1.25rem!important;
  font-weight: 400;
  color: #00317c;
}
.h-more{
  font-size: 1.5rem!important;
  font-weight: 500;
  color: black;
}
.txt-next-news{
  font-size: 2rem!important;
  font-weight: 600!important;
}
.btn-pre , .btn-next{
  border-radius: 50%!important;
  background-color: #00317c!important;
  color: white!important;
  border-color: #00317c!important;
}
.box-img-inside >img{
  width: 100%;
  height: auto;
}
.fancybox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.fontaws{
  background-color: #00317c;
    color: white;
    padding: 0.4375rem;
    border-radius: 50%;
    font-size: 0.675rem;
    text-align: center;
}
.stat{
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    white-space: nowrap;
    margin: 0.1875rem 1.5rem 0.1875rem 0;
    font-weight: 700;
}
.post-stat{
  width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
}
.hr-bot{
  border-bottom: 3px solid #00317c;
}
.h-news-card a{
  color: #101010!important;
  font-size: 1.2rem!important;
  font-weight: 700;
}

.text-wrapper{
   display: flex;
}

/*start*/

.wrapper:hover{
  cursor: pointer;
}
    /*end*/

.text-container{
   color: white;
}
.wrapper{
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   -webkit-box-sizing: border-box;
    outline-color: #3e1e69;
    outline-offset: 1px;
}
.text-container{
   padding-top: 16px;
   padding-bottom: 16px;
   color: white;
   align-items: center;
}
.text-container h5 {
   color: white;
}
.text-container h2{
   color: white;
}

.owl-carousel .item {
   border-right: 1px solid #ffffff;
   box-sizing: border-box;
   position: relative;
   overflow: hidden; /* ป้องกันเส้นล้น */
 }

 .pill-news{
   padding-left: 16px;
   padding-right: 16px;
   font-weight:400;
   transition: 0.3s ease-in-out;
 }
 .pill-news > .active{
   background-color:#00317c !important;
   color:white!important;
 }
 .pill-news.active{
   background-color:#00317c !important;
   color:white!important;
 }
 
 .pill-news:hover{
   cursor: pointer;
   background-color:#00317c !important;
   color:white!important;
 }
 .img-pil-a{
   width: 20px;
   margin-bottom: 2px;
   transition: 0.3s ease-in-out;
  
 }
 .img-pil-no{
   width: 20px;
   margin-bottom: 2px;
   transition: 0.3s ease-in-out;
   display: inline-block;
 }
 .pill-news .img-pil-a{
   display: none;
 }
 .pill-news.active .img-pil-a{
  display: inline-block;
 }
 .pill-news.active .img-pil-no{
   display: none;
  }
  .pill-news >span{
   color: black;
  }
  .pill-news.active >span{
   color: white;
  }
  .news-img{
    display: flex;
    height: 200px;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .img-fluid{
 transition: transform 0.3s ease;
  }
  .news-img>.img-news{
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  .single-slide{
    transition:transform 0.5s ease-in-out;
    margin-right: 16px!important;
    margin-left: 16px!important;
  }
  .news-date{
   color:#fff;
   background:#00317c ;
   padding:12px 30px;
   display:inline-block;
   position:relative;
   top:-25px;
   left:30px;
   }
   .bg-img{
      background-image: url(../images/11.png);
      
      background-size: cover;
      background-repeat: no-repeat;
   }
   .bg-pil-1{
      border-radius: 6px;
      padding: 16px;
      background-color: #007bff;
   }
   .boxiframe{
      position: relative;
      width: 100%;
      max-height: 500px;
      min-height: 500px;
      transition: transform 0.5s ease;
   }
   .setcalendar{
      border-radius: 10px;
      width: 100%;
      max-height: 500px;
      min-height: 500px;
      transition: transform 0.5s ease;
   }
   .card-boxiframe:hover .setcalendar {
      transform: scale(1.10);
    }
    /* Border lines */
    .border-line {
      border-radius: 10px;
      border: 1px solid #3498db;
      position: absolute;
      transition: all 0.5s ease;
    }

    .border-top, .border-bottom {
      width: 0%;
      height: 2px;
    }

    .border-left, .border-right {
      width: 2px;
      height: 0%;
    }

    .border-top    { top: 0; left: 0; }
    .border-right  { top: 0; right: 0; }
    .border-bottom { bottom: 0; right: 0; }
    .border-left   { bottom: 0; left: 0; }

     .news-img:hover{
      cursor: pointer;
    }
    /*start*/

    .single-news:hover .border-top {
      border: 3px solid #063D8C;
      width: 100%;
      transition-delay: 0s;
    }

    .single-news:hover .border-right {
      border: 3px solid #063D8C;
      height: 100%;
      transition-delay: 0.15s;
    }

    .single-news:hover .border-bottom {
      border: 3px solid #063D8C;
      width: 100%;
      transition-delay: 0.3s;
    }

    .single-news:hover .border-left {
      border: 3px solid #063D8C;
      height: 100%;
      transition-delay: 0.45s;
    }
    
    /*end*/
    

    .boxiframe:hover .border-top {
      border: 3px solid #063D8C;
      width: 100%;
      transition-delay: 0s;
    }

    .boxiframe:hover .border-right {
      border: 3px solid #063D8C;
      height: 100%;
      transition-delay: 0.15s;
    }

    .boxiframe:hover .border-bottom {
      border: 3px solid #063D8C;
      width: 100%;
      transition-delay: 0.3s;
    }

    .boxiframe:hover .border-left {
      border: 3px solid #063D8C;
      height: 100%;
      transition-delay: 0.45s;
    }
    .white-box{
      border-radius: 4px;
      background-color: white;
      padding:6px;
    }
    .school-container{
      position: relative;
      display: flex;
      
    }
    .text-container{
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: calc(100% - 8.5rem);
      padding: 0.375rem 0.75rem;
    }
    .card-body > .h-card{
      color:#063D8C;
      font-weight: 600;
      font-size: 1rem!important;
    }

    .inside-center h5{
      width: 100%;
      display: -webkit-box;
    -webkit-line-clamp: 2; /* จำนวนบรรทัดที่ต้องการจำกัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    }
    .inside-center{
      padding-right: 40px;
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
      border-right: 1px solid  #212529;
    }
    .inside-left{
      align-self:center;
    }

    /*card profile*/
    .profile-card-2 {
      width: 90%;
      background-color: white;
      box-shadow: 2px 2px 25px rgba(0, 0, 0, 0.1);
      background-position: center;
      overflow: hidden;
      position: relative;
      padding: 4px;
      cursor: pointer;
      border-radius: 10px;
      z-index: 10;
  }
  .profile-card-2 img {
    border-radius: 6px;
    width: 100%;
    height: 100%;
    object-fit: contain;  /* ทำให้รูปครอบเต็มโดยไม่ผิดสัดส่วน */
    object-position: top;
    transition: all linear 0.25s;
}

.profile-card-2 .profile-name {
  filter: grayscale(100%);
    position: absolute;
    left: 30px;
    bottom: 70px;
    font-size: 0.85rem;
    color: #063D8C;
    font-weight: bold;
    transition: all linear 0.5s;
 
}

.profile-card-2 .profile-icons {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #FFF;
    transition: all linear 0.25s;
}

.profile-card-2 .profile-username {
    position: absolute;
    bottom: 50px;
    left: 30px;
    color: #4195CC;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all linear 0.25s;
}

.profile-card-2 .profile-icons .fa {
    margin: 5px;
}
.profile-card-2:hover{
  background-color: #063D8C;
}

.profile-card-2:hover img {
  transform:scale(1.1);
}
.single-slide:hover img{
transform:scale(1.2);
}
.carousel-3 >.item{
  border-right:0px solid #dee2e645;
}

.profile-card-2:hover .profile-name {
    bottom: 80px;
}

.profile-card-2:hover .profile-username {
    bottom: 60px;
}

.profile-card-2:hover .profile-icons {
    right: 40px;
}
.teacher{
      border-bottom: 3px solid #00317c;
      border-top: 3px solid #00317c;
      background-attachment: fixed;
      background-image: url(../images/bg13.jpg);
      background-size:cover;
      background-position:center;
      background-repeat: no-repeat;
      width: 100%;
      height: 640px;
      position: relative;
}
.footer-all{
  font-size: 1.5rem!important;
  font-weight: 400;
  color:white;
}

.blur-layer{
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.1); /* เล็กน้อยเพื่อให้เห็นความเบลอ */
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.box-icon{
  padding-top: 44px;
  padding-bottom: 36px;
}

  a >.box-icon >.icon {
    display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 5rem;
  }
  a >.box-icon > .icon >.img-organ{
      transition: 0.3s ease-in-out!important;
      display: block!important;
      width: auto!important;
      max-width: 80%!important;
      height: auto!important;
      max-height: 100%!important;
  }

  .border-line {
    border-radius: 10px;
    border: 1px solid transparent;
    position: absolute;
    transition: all 0.5s ease;
  }

  .border-top, .border-bottom {
    width: 0%;
    height: 2px;
  }

  .border-left, .border-right {
    width: 2px;
    height: 0%;
  }

  .border-top    { top: 0; left: 0; }
  .border-right  { top: 0; right: 0; }
  .border-bottom { bottom: 0; right: 0; }
  .border-left   { bottom: 0; left: 0; }
  
  .owlitem:hover a >.box-icon > .icon >.img-organ{
    transform: scale(1.2);
  }
  .owlitem:hover {
    background-color: #007bff14;
  }

  .owlitem:hover .border-line{
    border: 1px solid #063D8C;
  }

  .owlitem:hover .border-top {
    border: 3px solid #063D8C;
    width: 100%;
    transition-delay: 0s;
  }

  .owlitem:hover .border-right {
    border: 3px solid #063D8C;
    height: 100%;
    transition-delay: 0.05s;
  }

  .owlitem:hover .border-bottom {
    border: 3px solid #063D8C;
    width: 100%;
    transition-delay: 0.1s;
  }
  .other{
    padding-top: 20px;
  }
  .header-news{
    font-size: 2.2rem!important;
    font-weight: 400;
    color: #00317c;
  }
  .header-calendar{
    padding-top: 20px;
    font-size: 2.2rem!important;
    font-weight: 400!important;
    text-align:center !important; 
    color:white !important;
    padding-bottom: 20px;
  }
  .head-other{
    font-size: 2.2rem!important;
    font-weight: 400;
  }
  .horn{
    font-size: 1.8rem!important;
  }
  .load{
    font-size: 2.2rem!important;
    font-weight: bold;
    transition: 0,3s ease-in-out;
  }
   .view-link{
    color: black;
    font-size: 0.75rem!important;
    font-weight: 400;
  }
  .date-link{
    color: black;
    font-size: 0.75rem!important;
    font-weight: 400;
  }
  .load:hover{
    font-size: 2.3rem!important;
    color: #4195CC;
    cursor: pointer;
  }
  .head-per{
    font-size: 2.3rem!important;
    font-weight: 400;
    color:white;
  }
  .header-noti{
    font-weight: 400;
     font-size: 2.3rem!important;
      color:#00317c;
  }
  .text-per{
    font-size: 1.8rem!important;
    font-weight: 400;
    color:white;
  }

  .owlitem:hover .border-left {
    border: 3px solid #063D8C;
    height: 100%;
    transition-delay: 0.15s;
  }
  .name-organ{
    color:#007bff;
    text-decoration: none;
  }
  .footer{
    border-top: 3px solid #007bff;
    background-color:#00317c;
  }
  .about-sc{
    font-weight: 600;
    font-size: 1rem!important;
    color: white;
  }

  .about-sc-li{
    font-weight: 600;
    font-size: 1rem!important;
    color: white;
  }
  .li-m:hover{
    text-decoration: none;
  }
  .li-style{
    color: white;
    list-style: disc;
  }
  .li-style > a{
    color: white;
    font-weight: 500;
    font-size: 0.9rem!important;
  }

  .li-style > a:hover{
    text-decoration: none;
  }
  .copyright{
    color:white;
       font-weight: 600;
    font-size: 0.8rem!important;

  }


   .news-area h3 a{
      color:#222;-webkit-transition:.3s;-moz-transition:.3s;-o-transition:.3s;transition:.3s;
   }
   @media screen and (max-width: 575px) {
      .banner-header > .pattern{
          display: none!important;
         }
         .banner-header{
          padding-top: 68px;
         }
         .banner-page{
          display: none;
         }
         .department-slider.owl-carousel .owl-dots{
          display: none;
         }
         .teacher{
          height: 700px;
         }
         .wrapper-teacher{
          width: 250px;
         }
  }

   @media screen and (min-width: 768) and (max-width: 960.98px){
      
         .teacher{
          height: 850px;
         }
         
  }
      @media (min-width: 576px) and (max-width: 767.98px){
         .news-area img{
            width:100%
         }
        .banner-header > .pattern{
          display: none!important;
         }

      }

         .news-area 
         .single-news:hover h3 a{
            color:#244cfd;
         }

 
 

 