.prompt {
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  .bg-groudbody {
    background-image: url("bgNew.png"); 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed;
    background-size: cover;
  }

  /* Header */
/* สำหรับการกำหนดตำแหน่งของเมนู */
.menu-container {
    position: absolute; /* หรือลองใช้ relative */
    top: 50%; /* ปรับตามความต้องการ */
    left: 53%; /* ปรับตามความต้องการ */
    transform: translate(-50%, -50%); /* ใช้สำหรับการจัดตำแหน่งกลาง */
    z-index: 10;  
}

/* กำหนดตำแหน่งของ bg-header2 ให้เป็น relative เพื่อให้ absolute ของเมนูอ้างอิงได้ */
.bg-header2 {
    position: relative;
    
}

.s-from {
    border-color: #1F7BCC ;
    border-width: 3px;
}

.s-icon-r {
    position: relative;

}
.s-icon-a{
    position: absolute;
    margin-left: 200px;
    margin-top: 5px;
    
}

/* index ส่วนหน้า */



.dropbtn{
  border-style: solid;
  border-color: #3cadf9;
  border-width: medium;
  border-radius: 100px;
  color: #3cadf9;
}
.carousel-container {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: 300px;
  flex-shrink: 0;
  background-color: #fff;
}

.card-img {
  width: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-body {
  padding: 15px;
}

.card-title {
  font-size: 18px;
  margin: 0;
}

.card-text {
  font-size: 14px;
  color: #555;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  background-color: #eee;
  font-size: 12px;
  margin-top: 10px;
}

.rating {
  color: #f39c12;
  margin-top: 10px;
}

.progress {
  width: 100%;
  background-color: #f3f3f3;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  width: 80%;
  height: 8px;
  background-color: #3498db;
}

.carousel-button {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 10px;
}

.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* index ส่วนท้าย*/

.newsimg{
  position: relative;

}

.newsh {
  position: absolute;
  top: 270px;
  left: 40px;
}

.newsp {
  position: absolute;
  top: 350px;
  left: 40px;
}


/* Login by kim */


.loginbody1 {
  font-family: "Prompt", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  
  
}
.loginbody2{
  background-image: url('backgrounf.png');
}
.login-container {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 494px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);

  text-align: center;
 
}

.logo img {
  width: 300px;
  height: 100px;
  margin-bottom: 20px;
}

.loginH2 {
  margin-bottom: 5px;
  color: #333;
}

.input-group {
  margin-bottom: -15px;
  text-align: left;
}


.input-group label {
  display: block;
  margin-bottom: 5px;
}

.input-group input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}


.forgot-password {
  text-align: right;
  margin-bottom: 15px;
  margin-top: 15px;
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.login-button a {
  color: white;
  text-decoration: none;
}

.login-button:hover {
  background-color: #0056b3;
  color: white;
}

.login-button a:hover {
  color: white;
  text-decoration: none;
}
.social-login {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
}

.social-login button {
  width: 48%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.facebook-button {
  background-color: #3b5998;
  color: white;
}

.google-button {
  background-color: #db4437;
  color: white;
}

.register {
  margin-top: 10px;
}

.register a {
  color: #007bff;
  text-decoration: none;
}

.register a:hover {
  text-decoration: underline;
}
.buttonsize{
  width: 434px;
  height: 44px;
  background-color: rgba(255, 187, 54, 1);
  border: 0px;
}
.buttonsubmit{
  background-color: rgba(31, 123, 204, 1);
}
.btnsocial{
  background-color:  rgb(255, 255, 255);
  
}
.fontsize{
  font-size: 18px;
}
.iconposition{
  position: relative;
  left: 10px;
  top: 38px;
  font-weight: 100px;
}
.toggle-password {
  position: absolute;
  right: 15px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-password img {
  width: 20px; /* Adjust icon size */
  height: 20px;
}
.iconposition2{
  position: relative;
  right: 5px;
}
.textweight{
  font-weight: lighter;
}
.input-box input:valid{
  top: 10px;
}
/* --------------------------------------- */

/* register by tar*/

.bodyRegister{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: url('bg.png');
}

.registerR-container{
  border: 2px solid white;
  border-radius: 13px;
 background-color: white;
  
}
.formR {
  width: 450px;
  height: 750px;
  padding: 2rem 1.5rem;
  
}

.headerR{
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  margin-top: -20px;
  margin-bottom: 10px;
  
}
.containerR{
  position: relative;
  width: 500px;
  background: rgb(255, 255, 255);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgb(0, 0, 0,0.1);
}
.containerR header {
  font-size: 1.5rem;
  color: #333;
  font-weight: 500;
  text-align: center;
}
.containerR .formR {
  margin-top: 30px;
  
}

.formR .input-box {
  width: 100%;
  margin-top: 20px;
}

.input-box label {
  color: #707070;
}
.formR .input-box input {
  position: relative;
  height: 50px;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: #707070;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 15px;
}

.formR .column1 {
  display: flex;
  column-gap: 10px;
  

}

.formR .column2 {
  display: flex;
  column-gap: 10px;
}


.form-select {
  position: relative;
  height: 50;
  width: 354.31;
  outline: none;
  font-size: 1rem;
  color: #707070;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 15px;  
}

.register-button {
  text-align: center;
  margin-bottom: auto;
  background-color: rgba(31, 123, 204, 1);
  border: 0px;
  width: 100%;
}

.or{
  margin-left: 18.5%;
  margin-bottom: 3%;
  margin-top: 10px;
}

.social-register {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.facebook-button {
  font-weight: bold;
  background-color: #f8f9fa;
  width: 200px;
  height: 40px;
  border: 0.5px solid;
  border-radius: 3px;
  border-color: rgb(186, 186, 186);
}

.google-button {
  font-weight: bold;
  background-color: #f8f9fa;
  width: 200px;
  height: 40px;
  border: 0.5px solid;
  border-radius: 3px;
  border-color: rgb(186, 186, 186);
}


.link a{
  text-decoration: none;
}

/* --------------------------------------- */
/* allnews */


 .searchAll{
 position: relative;
 box-shadow: 0 0 40px rgba(51, 51, 51, .1);
   
 }

 .searchAll input{

  height: 60px;
  text-indent: 25px;
  border: 2px solid #d6d4d4;


 }

 
 .searchAll input:focus{

  box-shadow: none;
  border: 2px solid rgb(160, 160, 160);


 }

 .searchAll .fa-search{

  position: absolute;
  top: 20px;
  left: 16px;

 }

 .searchAll button{

  position: absolute;
  top: 10px;
  right: 10px;
  height: 40px;
  width: 96px;
  background: #1F7BCC;

 }


 .selectPR {
  position: relative;
  padding: 15px;
  border: 2px solid #d6d4d4;
  height: 60px;
  top: -8px;
  
  

 }
 .selectPR:focus {
  border: 2px solid rgb(160, 160, 160);
 }

 .selectPA
 {
  position: absolute;
  margin-top: -65px;
  margin-left: 10px;
  font-size: 13px;

  
 }

 /* contect */ 

 .marginYmap {
   margin-top: 120px;
   margin-bottom: 120px;
   

 }

 /* allcourse */



 .heightA{
  height: 100px;
 }
 

 .searchA{
 position: relative;
 box-shadow: 0 0 40px rgba(51, 51, 51, .1);
   
 }

 .searchA input{

  height: 60px;
  text-indent: 25px;
  border: 2px solid #d6d4d4;


 }


 .searchA input:focus{

  box-shadow: none;
  border: 2px solid rgb(80, 170, 255);


 }

 .searchA .fa-search{

  position: absolute;
  top: 20px;
  left: 16px;

 }

 .searchA button{

  position: absolute;
  top: 2px;
  right: 1px;
  height: 57px;
  width: 109px;


 }

/* --------ปฏิทิน---------- */
.calendar-header {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: -5px;
}
.calendar {
  display: none;
}
.calendar.active {
  display: block;

}
.calendar-table th, .calendar-table td {
  text-align: center;
  padding: 15px;
}
.event {
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  padding: 5px;
}
.day-calender{
  width: 150px;
  height: 62px;
  background-color: rgba(3, 152, 216, 1);
}
.daynum-calender{
  height: 107px;
}
.btncalender{
  border: 2px solid ;
  border-color: #f8f9fa;
  margin-left: -8px;
  width: 135px;
  border-radius: 0px;
}
.nextmonth{
  color: rgba(31, 123, 204, 1)
}
.curentmonth{
  color: rgba(0, 116, 166, 1);
}
/* ----------------------- */

/* E-library */

.cards-wrapper {
  display: flex;
  justify-content: center;
}
.cardl img {
  max-width: 100%;
  max-height: 100%;
}

.cardl {
  margin: 0 0.5em;
  box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
  border: none;
  border-radius: 0;
}

.card {
  min-width: 300px;
  margin: 0 10px ;
  transition: transform 0.3s ease;
}


.carousel-control-prev5,
.carousel-control-next5 {
  background-color: #e2e2e2;
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

/* ----------------------- */
/* profile */
.prof{
  width: auto;
  margin-left: 50px;
}
.prof1{
  box-shadow: 0px 0px 5px 0px;

}
.info-prof{
  margin-left: 100px;
  border: solid 1px;
  border: #bfbfbf;
}
.left{
 align-items: center;
 float: left;
}
.info-prof{
width: 70%;
border-radius: 10px;
box-shadow: 0px 0px 5px 0.1px;
margin-bottom: 100px;
}
.container-info{
margin-left: 300px;
}
.formP{
margin: 10px;
}
.nav-info{
border-radius: 10px 10px 0 0;

}
.prof-img{
float: right;
}

.form-selectP {
  position: relative;
  height: 48px;
  width: 188px ;
  outline: none;
  font-size: 1rem;
  color: #707070;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 15px;  
}


/* -----------popup------------ */
.modalP-header {
  background-color: rgba(31, 123, 204, 1);
  color: white;
  text-align: center;
  justify-content: center;
  height: 100px;
}
.modalP-header .btn-close {
  padding: .5rem 1.5rem;
  margin: -.5rem -.5rem -.5rem auto;
  margin-bottom: 0.5rem;
  
}
.modalP-header h2 {
  margin-left: 30px;
}
.modalP-body {
  text-align: left;
}
.modalP-body p {
  margin-bottom: 10px;
}
.modalP-footer {
  justify-content: center;
}
.closebutton {
  background: none;
  border: none;
  color: rgb(255, 255, 255);
}
.popuppage{
  width: 800px;
  height: 550px;
  margin: auto;
  border-radius: 5px;
  border: 2px solid;
  border-color: rgba(221, 221, 221, 1);
}
.ulp {
  list-style-type: none;
}


/* Learn */

@media only screen and (max-width: 426px) {
  .mobile {
      display: block;
      margin-top: 2rem;
  }

  .web {
      display: none;
  }
}

@media only screen and (min-width: 427px) {
  .mobile {
      display: none;
  }

  .web {
      display: block;
      margin-top: 2rem;
  }
}

.nav-header {
  display: none;
}

/*  */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  overflow-x: hidden;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  background-color: #ffffff;

}

.fa-bars::before {
  content: "\f0c9";
  justify-content: center;
  font-size: 20px;
  margin-left: 200px;
}

#mySidenav .tabpane .nav-tabs {
  background-color: #fff !important;
  padding: 20px 0px;

  i {
      color: #818181 !important;
  }
}

#mySidenav {
  .accordion-button {
      color: #fff;
      background-color: #1F7BCC !important;
  }

  .ac-2 {
      color: #fff;
      background-color: #1F7BCC !important;
  }
}

.learmdiv {
  margin-left: 120px;

}

.btn-note {
  color: #fff;
  background-color: #1F7BCC;
  border-color: #1F7BCC;
  display: block;
  padding: 10px;
  width: 130px;
  margin-top: 10px;
  font-size: 16px;
  margin-bottom: 16px;
}

.title-note {
  margin-top: 1em;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 3px;
  background: #e0001a;
  color: #fff;
  font-size: 18px;
}

.td_time_note {
  color: #007bff;
  vertical-align: top !important;
}

.box_note {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .text-danger {
      color: #ff0404 !important;
      border: none;
      padding: 2px 10px;
      background: #fff0;
  }

  .text-primary {
      color: #337ab7 !important;
      border: none;
      padding: 2px 10px;
      background: #fff0;
  }
}

.navbar-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 10px;
  background-color: #f5f5f5;

  .back-home {
      background-color: #ddd;
      border: 1px solid #d3d3d3;
      padding: 6px;
      border-radius: 6px;
  }

  p {
      font-size: 20px;
      margin: 0;
  }
}


.video-main {
  margin-right: 0px;
  padding: 2rem 4rem;
  height: 90vh;
  background-color: #fafdff;
}

.video-learn {
  h3 {
      font-size: 20px;
  }

  h5 {
      font-size: 16px
  }

  .clname {
      font-size: 18px;
  }
}


/*  ส่วนของหน้าต่างเเก้ไข  */
.modalL {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  color: #888;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modalL-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 20%;
}


.close {
  color: #aaa;
  float: right;
  font-size: 15px;
  font-weight: bold;
  text-align: end;
  margin-top: -15px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;

}

/* หมวด */
.groupcdR{
  position: relative;

}

.groupcdA{
  position: absolute;
  top: 50px;
  left: 20px;

  z-index: 10;
  


}
/* หลักสูตร */
.coursecdR{
  position: relative;

}

.coursecdA{
  position: absolute;
  top: 143px;
  left: 20px;

  z-index: 10;

}


/* ----------------- แบบสอบถาม------------------- */
.questionnaire{
  width: 1030px;
}
.questionnairepoint{
  width: 115px;
}


/* วิดีโอ */


.vdoR {
  position: relative;
  

}

.vdoA{
  position: absolute;
  right: 160px;
  bottom: 87px;

  z-index: 10;
}


.vdoR2 {
  position: relative;
  

}

.vdoA2{
  position: absolute;
  top: 135px;
  left: 295px;
  bottom: 87px;

  z-index: 10;
}

/* plan */
.slide-year{
  border: solid #DDDDDD;
  margin-left: 70%;
  background-color: #DDDDDD;
  width: 300px;
  display: center;
  border-radius: 50px 50px 50px;
}
.last-year{
  margin-right: 50px;
  padding: 10px;
  background-color: white;
  width: 50%;
  border-radius: 50px 50px 50px;
}
.next-year{
  background-color: #1F7BCC;
  margin-left: 10px;
  width: 50%;
  border-radius: 50px 50px 50px;
  text-align: center;
}
.note-red{
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  background-color: #f44336
}
.note-orange{
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  background-color: #E89900
}
.note-blue{
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  background-color: #267FD5
}
.note-green{
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  background-color: #1CCD05 ;
}

/* pretest 2 */
.side-right{
  height: 275px;
  margin-left: 50px;
  border-radius: 5px 5px 5px;
  padding: 10px;
  align-items: center;
}
.side-time{
 margin-left: 50px;
 background-color: white;
 padding: 20px;
 margin-bottom: 50px;
 border-radius: 5px 5px 5px;
}

.pull-left {float:left;}
.pull-right {float:right;}

/* ------------------------pretest-------------------------- */
.pretestcontainer{
  max-width: 1000px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: auto;
}

