::placeholder
{

  color: #DCDCDC;

  opacity: 1; /* Firefox */

}

html { 
   
   height: 100%; /* ให้ html และ body สูงเต็มจอภาพไว้ก่อน */
   margin: 0;
   padding: 0;
}
body {  /* or any parent wrapper */
  font-family: "Kanit", sans-serif;
  display: flex;
  flex-direction: column;
  height: 100%;
   flex: 1;
}

main {
 flex: 1;
}
h3 p a{
    color :#142A57 
}
a:hover {
    color: #142A57;
}
@media only screen and (max-width: 600px) {
  /* กำหนดสไตล์สำหรับองค์ประกอบเมื่อหน้าจอมีความกว้างไม่เกิน 600px */
    .custom-container{
        padding-left:15px !important;
        padding-right:15px !important;
    }
    
    .header-taxt {
        font-family: "Kanit", sans-serif;
        font-size: 40px !important;
    }
    .bg-home {
        color: #fff;
        background: linear-gradient(to right, #142957, #3060C9);
        padding: 3px !important;
    }
    .cut-word-mo{
        width: 213px;
        overflow-wrap: break-word;
        padding-block-end: 25px;
    }
    .custom-richtext p{
        text-align: -webkit-center;
        text-decoration: none;
        color : #142a57;
        padding-left: 0% !important;
        padding-right: 0% !important;
    }
    .bg-menu{
            border-radius: 8px !important;
    }
    .contactleft{
            padding: unset !important;
    }
    .homecol{
        margin: unset !important;
    }
    .homecollast{
        margin: unset !important;
    }
      .p-img-gallery-end{
        margin-left: 27px !important;
        margin-top: -59px !important;
        font-size: 34px !important;
    }
   
}
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* กำหนดสไตล์สำหรับองค์ประกอบเมื่อหน้าจอมีความกว้างตั้งแต่ 601px ถึง 1024px */
  .custom-container{
        max-width: 704px;
        padding-right: var(--bs-gutter-x, 0.75rem);
        padding-left: var(--bs-gutter-x, 0.75rem);
        margin-right: auto;
        margin-left: auto;
    }
    .menu-subject {
    width: 83px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-word;
    
    }
    .cut-word-mo{
            overflow-wrap: break-word;
            padding-block-end: 25px;
        }
    .custom-richtext p{
        text-align: -webkit-center;
        text-decoration: none;
        color : #142a57;
        padding-left: 15% !important;
        padding-right: 15% !important;
    }
    .bg-menu{
            border-radius: 8px !important;
    }
    .p-img-gallery-end{
        margin-left: 48px !important;
    margin-top: -136px !important;
        font-size: 85px !important;
    }
}
@media only screen and (min-width: 1025px) {
  /* กำหนดสไตล์สำหรับองค์ประกอบเมื่อหน้าจอมีความกว้างมากกว่าหรือเท่ากับ 1025px */
  .custom-container{
    max-width: 1025px;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}
.cut-word-mo{
        overflow-wrap: break-word;
        padding-block-end: 25px;
    }
}

.bg-menu{
    background-color: rgba(0, 0, 0, 0.25);
}
.bg-img{
    margin: 0;
    padding: 0;
    background-image: url('path/to/your/image.jpg'); /* เปลี่ยน path/to/your/image.jpg เป็นที่ตั้งของไฟล์รูปภาพของคุณ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* ทำให้พื้นหลังเต็มหน้าจอ */
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-justify{
    text-align: justify;
}
.text-center{
    text-align: center;
}
.c-white{
    color:#ffffff !important;
        font-size: 15px;
}

.image-container {
      position: relative;
      height: 200px;
      overflow: hidden;
    }

    .image-container img {
      width: 100%;
      height: auto;
      display: block;
    }

    .text-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: white;
    }

.p-img-news{
    width: 100%;
  
}

.centered-text {
    margin-top: -122px;
    text-align: center;
    color: white;
}
.img-fit {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: 50% 50%;
}
.img-fit-from {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: 0% 94%;
}
.img-container {
    position: relative;
    overflow: hidden;
}
.zoom-in-img {
    transition: transform 0.3s;
    transform-origin: center center;
}
.baner-view{
        height: 257px;
}
.custom-img-news{
    height: 135px  !important; border-radius: 8px;
}
.news-subject {
    font-size: 24px;
    width: 100%;
    height: auto;
    /*line-height: 20px;*/
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.header-taxt{
    font-family: "Kanit", sans-serif;
    font-size: 60px;
        padding-block-end: 60px;
}
.des-news{
    height: 312px;
    width: 256px;
}
.p-sub-news{
    margin-top : -25% !important;padding-left: 0% !important;
}
.custom-content-news img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.p-img-gallery-end{
    color: #ffffff;
    position: absolute;
    margin-left: 100px;
    margin-top: -190px;
    font-size: 101px;
    font-weight: 352;
}
.img-gallery-end{
     filter: brightness(50%);
}
.color-bg{
    background: linear-gradient(to right, #142957, #3060C9);
}
.border-r5{
        border-radius: 5px;
}
.c-p{
    cursor: pointer;
}
.custom-richtext{
        color: #142a57 !important;
}
.custom-richtext img{
    width: 100%;
    height: 100%;
    border-radius: 8px !important;
}
.custom-richtext p:has(> img) {
    padding-left: 0% !important;
    padding-right: 0% !important;
}
.custom-richtext p{
    text-align: -webkit-center;
    text-decoration: none;
    color : #142a57;
    padding-left: 30%;
    padding-right: 30%;
}
.custom-richtext iframe{
    width: 100%;
    border-radius: 8px;
}

.m-menu{
    margin: 8px;
}
.underline{
  text-decoration:none;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 1000ms, text-underline-offset 300ms;
}

.underline:hover {
    text-decoration: underline 0.15em rgba(0, 0, 0, 1);
  text-decoration-color: rgba(255, 255, 255, 1);
  text-underline-offset: 0.4em;
}
.end{
        text-align: end;
}
.space{
        padding: 5px;
}
.text-tilt-schedule{
        font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}
.des-schedule {
    font-size: 14px;
    color: #505159 !important;
    text-decoration: none;
}
.rounded-5{
    border-radius: 10px;
}
.input-search{
    width: 96%;height: 50px;    border: 1px solid #B7B7B7;
    border-radius: 10px;
    padding: 20px;
}
.input-search:hover{
    border-color:#A9A9A9;

}


.search-icon-p{
     margin-left: -30px;margin-top: 12px;
}
.box-shadow{
    padding-block-end: 10px;
    box-shadow: 0px 0px 5px 0px #c8bdbd;
    border-radius: 8px;
}
.display-box-from{
    align-items: center; background: #fff;border-radius: 8px;padding-top: 15px;padding-block-end: 25px;margin-left: 12px;
}

.box-articles{
        padding-top: 10px;
    background: #fff;
    border-radius: 8px;
    padding-left: 30px;
    padding-block-end: 17px;
}
.time-schedule{
    background: #142A57;
    color: #fff;
    padding: 1%;
    border-radius: 8px;
     text-decoration:none;
}
.time-schedule:hover{
    
    color: #fff;
  
}
.lh-sm{
    line-height: 2.25 !important;
}
.bg-home{
    color: #fff;
    background: linear-gradient(to right, #142957, #3060C9);
    padding: 66px;
}
.circle-icon {
    width: 40px;
    height: 40px;
    margin-right: -48px;
    border-radius: 50%;
    background-color: #142A57;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #142A57;
        font-size: 14px;
}

.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    margin-left: 1.5rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}
.dropdown-item:focus, .dropdown-item:hover {
    color: #fff;
    background-color: #142A57;
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #142A57;
}
.o-layout{
        background-color: #142A57;
    border: 1px solid;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0px;
}
.o-layout:hover{
     color: white;
}
.seminardownload:hover{
    color:#fff;
}

.no_data{
    padding-top: 10px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    color:#142a57;
    border-style: solid;
    border-color: #e9e9e9;
}