/* @import url('https://fonts.googleapis.com/css2?family=Pridi:wght@300;400;600&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@200;300;400;600&display=swap');

body, html { 
    font-family: "Mitr", sans-serif;
    font-weight: 300;
    font-style: normal;
    /* background-image: url('../img/bg-2.png'); */
    /* background-size: cover; */
    /* #background-repeat: no-repeat; /* Prevents the image from repeating */
    /* background-position: center; Centers the background image */ */
}

/* .pridi-light {
    font-family: "Pridi", serif;
    font-weight: 300;
    font-style: normal;
}

.pridi-regular {
    font-family: "Pridi", serif;
    font-weight: 400;
    font-style: normal;
}

.pridi-semibold {
    font-family: "Pridi", serif;
    font-weight: 600;
    font-style: normal;
} */

.mitr-extralight {
    font-family: "Mitr", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .mitr-light {
    font-family: "Mitr", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .mitr-regular {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .mitr-semibold {
    font-family: "Mitr", sans-serif;
    font-weight: 600;
    font-style: normal;
  }

.bg-white{
    background-color: #fff !important;
}

#nav_1{
    font-family: "Mitr", sans-serif;
    font-weight: 300;
    font-style: normal;
}

#nav_1 .nav-link{
    color: #000;
    font-size: 1.1em;
    font-weight: 300 !important;
    font-family: "Mitr", sans-serif !important;
    font-style: normal !important;
}

#nav_1 .nav-link:hover{
    color: #0b54db;
}
  
.owl-slider{
    position: relative;
    /* background-color: #0b54db; */
    /* height: 500px; */
    /* border-radius: 20px 20px 20px 20px; */
    z-index: 10000 !important;
}

.header-search{
    background-color: #252f42;
    height: 320px;
    border-radius: 20px;
    z-index: 11010;
    margin-top: -40px;
    padding: 24px;
}

.css-input-1{
    border-radius: 20px;
    height: 45px;
    padding-left: 20px !important;
    border: none;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #b4b4b4 !important;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    #b4b4b4 !important;
   opacity:  1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #b4b4b4 !important;
   opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color:    #b4b4b4 !important;
}
::-ms-input-placeholder { /* Microsoft Edge */
   color:    #b4b4b4 !important;
}

::placeholder { /* Most modern browsers support this now. */
   color:    #b4b4b4 !important;
}

.link-a {
    color: #fff !important;
    text-decoration: none;
}

.link-a:hover{ 
    color: #98d9ff;
}

.bg-gray{
    background-color: #e6e6e6;
}

.bg-gray-2{
    background-color: #f8f8f8;
}

#map_div{
    background-color: #eeeeee;
    height: 200px;
    border-radius: 20px;
}

.item-1{
    display: block;
    color: #fff;
    text-decoration: none;
}

.video_panal{
    background-color: #ccc;
    /* height: 400px; */
}


.item-2{
    display: block;
    /* color: #363636; */
    color: #fff;
    text-decoration: none;
}

.sliding-text {
    transition: transform 0.3s ease-in-out;
}

.sliding-text:hover {
transform: translateX(10px); /* Slides the text 20px to the right */
}

.item-1:hover{
    color: #89d4ff;
}

@keyframes fadeInUp {
    from {
        transform: translate3d(0,40px,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

@-webkit-keyframes fadeInUp {
    from {
        transform: translate3d(0,40px,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

a {
    text-decoration: none;
}

.text-right{
    text-align: right;
}

.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    -webkit-animation-duration: .5s;
    -webkit-animation-fill-mode: both
}

.dropdown-item{
  font-weight: 300 !important;
}

.animatedFadeInUp {
    opacity: 0
}

.fadeInUp {
    opacity: 0;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}

.animation-element {
    position: relative;
    width: 30%;
    margin: 0% 1.33 2.66% 1.33%;
    float: left;
  }
  /*3 grid layout*/
  
  .animation-element:nth-of-type(3n-2) {
    width: 31.5%;
    margin: 0% 1.375% 2.75% 0%;
    clear: left;
  }
  
  .animation-element:nth-of-type(3n-1) {
    width: 31.5%;
    margin: 0% 1.375% 2.75% 1.375%;
  }
  
  .animation-element:nth-of-type(3n-0) {
    width: 31.5%;
    margin: 0% 0% 2.75% 1.375%;
    clear: right;
  }
  /*bounce up animation for the subject*/
  
  .bounce-up .subject {
    opacity: 0;
    -moz-transition: all 700ms ease-out;
    -webkit-transition: all 700ms ease-out;
    -o-transition: all 700ms ease-out;
    transition: all 700ms ease-out;
    -moz-transform: translate3d(0px, 200px, 0px);
    -webkit-transform: translate3d(0px, 200px, 0px);
    -o-transform: translate(0px, 200px);
    -ms-transform: translate(0px, 200px);
    transform: translate3d(0px, 200, 0px);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .bounce-up.in-view .subject {
    opacity: 1;
    -moz-transform: translate3d(0px, 0px, 0px);
    -webkit-transform: translate3d(0px, 0px, 0px);
    -o-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    transform: translate3d(0px, 0px, 0px);
  }

  .c-item{
    background-color: #e0e4ec;
    height: 250px;
    width: 300px;
    background-size: cover;                   /* ปรับภาพให้ครอบคลุมพื้นที่ทั้งหมด */
    background-position: center;              /* จัดภาพให้อยู่ตรงกลาง */
    background-repeat: no-repeat;             /* ป้องกันการซ้ำของภาพ */
  }


  .x-item{
    /* background-color: #e0e4ec; */
    height: 300px;
    width: 200px;
    background-size: cover;                   /* ปรับภาพให้ครอบคลุมพื้นที่ทั้งหมด */
    background-position: center;              /* จัดภาพให้อยู่ตรงกลาง */
    background-repeat: no-repeat;             /* ป้องกันการซ้ำของภาพ */
  }

  .n-item{
    background-color: #e0e4ec;
    height: 300px;
    /* width: 300px; */
    background-size: cover;                   /* ปรับภาพให้ครอบคลุมพื้นที่ทั้งหมด */
    background-position: center;              /* จัดภาพให้อยู่ตรงกลาง */
    background-repeat: no-repeat;             /* ป้องกันการซ้ำของภาพ */
    /* transition: background-size 0.5s ease-in-out; Smooth transition */
    /* transition: background-size 1s cubic-bezier(0.25, 0.45, 0.45, 0.95);  */
    transition: transform .2s;
  }

  .n-item:hover{
    /* background-size: 120%; */
    cursor: pointer;
    
    transform: scale(1.05); 
  }

  .s-item{
    /* height: 500px; */
    width: 100%;
    background-size: cover;                   /* ปรับภาพให้ครอบคลุมพื้นที่ทั้งหมด */
    background-position: center;              /* จัดภาพให้อยู่ตรงกลาง */
    background-repeat: no-repeat;
  }

  .news-item {
    margin-bottom: 40px;
  }


  
  .text-truncate {
    white-space: break-word !important;      /* ป้องกันการตัดบรรทัด */
    word-wrap: break-word  !important;  
    overflow: hidden;         /* ซ่อนข้อความที่เกินขอบ */
    text-overflow: ellipsis;  /* แสดง ... ที่ส่วนท้ายของข้อความ */
  }

  @mixin text-truncate() {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-word  !important;  
  }

  .index-info-1{
    height: 90px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .img-sld{
    border-radius: 30px !important;
  }

  .index-info-2{
    border: dashed;
    border-width: 0px 0px 1px 0px;
    border-color: #e4e4e4;
    padding-bottom: 14px;
    margin-bottom: 10px;
  }
  .badge-solid{
    border-radius: 0px;
    font-weight: 300;
  }

  .dn{
    display: none !important;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Adjust if you see a gap */
  }

  .text-index-title{
    color: #10166d;
  }

  .link-index-1{
    padding: 20px 30px !important;
    color: #000;
    background-color: #d4d4d4;
    cursor: pointer;
    transition: background-color .5s ease; /* Duration and transition timing */
  }

  .link-index-1 .active{
    background-color: #d8370f !important;
    color: #fff;
  }

  .link-index-1:hover{
    /* background-color: #1e50bd; */
    color: #fff;
    background-color: #1e50bd; 
  }

  .pagination {
    --bs-pagination-padding-x: 0.5125rem;
    --bs-pagination-padding-y: 0.625rem;
    --bs-pagination-font-size: 0.9375rem;
    --bs-pagination-color: #697a8d;
    --bs-pagination-bg: #f0f2f4;
    --bs-pagination-border-width: 0px;
    --bs-pagination-border-color: #d9dee3;
    --bs-pagination-border-radius: 0.25rem;
    --bs-pagination-hover-color: #697a8d;
    --bs-pagination-hover-bg: #e1e4e8;
    --bs-pagination-hover-border-color: rgba(67, 89, 113, 0.3);
    --bs-pagination-focus-color: #697a8d;
    --bs-pagination-focus-bg: #e1e4e8;
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: rgba(105, 108, 255, 0.08);
    --bs-pagination-active-border-color: rgba(105, 108, 255, 0.08);
    --bs-pagination-disabled-color: #a1acb8;
    --bs-pagination-disabled-bg: #f7f8f9;
    --bs-pagination-disabled-border-color: rgba(67, 89, 113, 0.3);
    display: flex;
    padding-left: 0;
    list-style: none;
}

.pagination.pagination-round .page-item a {
  border-radius: 50%;
}

.page-item.first .page-link, .page-item.last .page-link, .page-item.next .page-link, .page-item.prev .page-link, .page-item.previous .page-link {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.page-item .page-link {
  border-radius: var(--bs-pagination-border-radius);
}

.page-link, .page-link > a {
  border-radius: 0.375rem;
  line-height: 1;
  text-align: center;
  min-width: calc(2.1875rem + 0px);
}


.page-item.active .page-link {
  /* margin: 0 0.1rem 0 0.3rem; */
  margin-right: 0.3rem !important;
}
.page-link {
  position: relative;
  display: block;
  padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
  font-size: var(--bs-pagination-font-size);
  color: var(--bs-pagination-color);
  background-color: var(--bs-pagination-bg);
  border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
  transition: color 0.15sease-in-out, background-color 0.15sease-in-out, border-color 0.15sease-in-out, box-shadow 0.15sease-in-out;
  margin-left: 5px; 
  margin-right: 5px;
}

.page-item.active .page-link, .page-item.active .page-link:hover, .page-item.active .page-link:focus, .pagination li.active > a:not(.page-link), .pagination li.active > a:not(.page-link):hover, .pagination li.active > a:not(.page-link):focus {
  border-color: #696cff;
  background-color: #696cff;
  color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(105, 108, 255, 0.4);
  margin-right: 0px;
}