@font-face {
  font-family: 'cmtfont';
  src: url(font/LINESeedSansTH_W_Bd.woff);
}
/* 1. ส่วนของ Body หลัก: ลบ Background Image ออกไป */
body {
    font-family: 'cmtfont';
    /* ลบ background-image, background-size, background-position ออกจาก body */
    position: relative; /* สำคัญ: เพื่อให้เนื้อหาอยู่เหนือ ::before */
    margin: 0; /* แนะนำให้รีเซ็ต margin */
    /* *** เนื้อหาหลักใน body จะยังคมชัด *** */
}

/* 2. ส่วนที่สร้างพื้นหลังเบลอ (Pseudo-element) */
body::before {
    content: "";
    position: fixed; /* ใช้ fixed เพื่อให้พื้นหลังครอบคลุมทั้งหน้าจอ แม้จะมีการเลื่อน scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* *** ใส่รูปภาพพื้นหลังที่นี่ *** */
    background-image: url(https://metro.ac.th/cmt_pcs/img/1.jpg); 
    background-size: cover;
    background-position: center;
    
    /* *** ทำให้รูปภาพเบลอ (เฉพาะส่วนนี้เท่านั้น) *** */
    filter: blur(20px); /* ปรับค่า '5px' ตามความต้องการ */
    
    z-index: -1; /* สำคัญ: วางองค์ประกอบนี้ไว้ด้านหลังเนื้อหาทั้งหมด */
}
p,a,b,h1,h2,h3,h4,h5,h6{
  font-family: 'cmtfont';
}
.header1{
    display: block;
}
@media (max-width: 640px) and (min-width: 320px) {
    .header1{
         display: none;
    }
}
a{
    color:white;
    text-decoration: none;
}
.header{
    background-color: #0170bf;
    color:white;
    padding: 10px;
}
.sticky-top{
    background-color: white;
}
.btn-metro{
    background-color: #ed5c19;
    box-shadow: 0px 0px 5px black;
    color: white;
}
.btn-ccc{
    background-color: #0170bf;
    box-shadow: 0px 0px 5px black;
    color: white;
}
.text-ccc{
  color: #0170bf;
}
.text-metro{
  color: #ed5c19;
}
.btn-metro:hover{
    background-color: white;
    color: #ed5c19;
}
.navbar{
    padding: 20px;
    box-shadow: 0px 0px 5px black;
}
.nav-link{
    margin: 0px 10px;
}
.custom-switch {
    display: inline-block;
    position: relative;
  }
  
  .custom-switch-input {
    display: none; /* ซ่อนตัว input */
  }
  
  .custom-switch-label {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ccc;
    border-radius: 30px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
  }
  
  .switch-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  
  .icon-container {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease; /* เพิ่มแอนิเมชัน */
  }
  
  .icon-container img {
    width: 20px;
    height: 20px;
  }
  
  .label-text {
    color: #333;
    transition: color 0.4s ease;
  }
  
  .custom-switch-input:checked + .custom-switch-label {
    background-color: #2196F3;
  }
  
  .custom-switch-input:checked + .custom-switch-label .icon-container {
    transform: translateX(100%); /* เลื่อนไอคอนเมื่อ switch เปิด */
    background-color: #fff;
  }
  
  .custom-switch-input:checked + .custom-switch-label .label-text {
    color: white;
  }
  .custom-switch{
    width: 100%;
    text-align: center;
  }
  .col{
    margin-bottom:20px;
  }
  .link_departmentccc{
    color:#2196F3;
    background-color: white;
  }
  .link_departmentmt{
    color:#f26d30;
    background-color: white;
  }
  .link_departmentmt:hover{
    color:white;
    background-color: #f26d30;
  }
  .link_departmentccc:hover{
    color:white;
    background-color: #2196F3;
  }
  footer{
    background-color: #0170bf;
    color:white;
    padding: 10px;
  }