@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500&family=Poppins:wght@400;500&display=swap');

:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --white-color: hsl(0, 0%, 100%);
    --black-color: hsl(0, 0%, 0%);
    --font-color:#273251;
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Kanit", sans-serif;
    --h1-font-size: 1.75rem;
    --normal-font-size: .8rem;
    --small-font-size: .813rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
  }

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kanit",sans-serif;
}

a{
    text-decoration: none;
}

/* Reset some default styles */
body, h1, h2, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: var(--body-font);
  }
  
h1{
    font-size: var(--h1-font-size);
}

p{
    text-align: center;
    color: var(--font-color);
    font-size: var(--normal-font-size);
}

.mainlogin{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mainregis{
    display: flex;
    align-items: center;
    justify-content: center;
   
   }


.title_content {
    margin-bottom: 10px; /* Adjust as needed to control the space between h3 and content */
}

.txtheader{
    position: absolute;
    justify-content: center;
    top:120px;
    
}

.txtheader-form{
    position: absolute;
    justify-content: center;
    top:120px;
    font-size: 18px;

    font-weight: bold;
}

.txtheader-formmaster{
    position: absolute;
    justify-content: center;
    top:120px;
    font-size: 16px;
    color: #e0b62d;
    font-weight: bold;
}



.row{
    display: block;
    justify-content: center;
    margin: 40px;
}

.row input{
    width:100%;
    padding: 10px;
}

.row-content{
    display: block;
    justify-content: center;
    margin: 40px;
}

.row-content input{
    width:100%;
    padding: 10px;
}

.rowckeck{
    display: block;
    justify-content: center;
    margin: 40px;
    background: #4276d9;
    padding: 5px;
}

.rowckeckpolicy{
    display: block;
    justify-content: center;
    margin: 40px;
   
    padding: 5px;
}


.form_label-check{
    display: inline;
    color: var(--white-color);
    font-size: var(--small-font-size);
    padding: 1px;
    
}

.form_label-checkpolicy{
    display: inline;
    color:  #4276d9;
 
    padding: 1px;
    
}


.button-grouppolicy {
    display: flex;
    justify-content: center;
    gap: 10px; /* ระยะห่างระหว่างปุ่ม */
    margin-top: 20px; /* ระยะห่างด้านบน */
}

.buttonpolicy {
    display: inline-block;
    background-color: #213760; /* พื้นหลังสีน้ำเงิน */
    color: #fff; /* ข้อความสีขาว */
    padding: 10px 20px; /* ระยะห่างภายในปุ่ม */
    border-radius: 5px; /* มุมโค้ง */
    text-decoration: none; /* ลบเส้นใต้ */
    font-size: 16px; /* ขนาดตัวอักษร */
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s; /* การเปลี่ยนสีเมื่อ hover */
}

.buttonpolicymaster {
    display: inline-block;
    background-color: #213760; /* พื้นหลังสีน้ำเงิน */
    color: #e0b62d; /* ข้อความสีขาว */
    padding: 10px 20px; /* ระยะห่างภายในปุ่ม */
    border-radius: 5px; /* มุมโค้ง */
    text-decoration: none; /* ลบเส้นใต้ */
    font-size: 16px; /* ขนาดตัวอักษร */
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s; /* การเปลี่ยนสีเมื่อ hover */
}

.buttonpolicy:hover {
    background-color: #1a2d52; /* สีพื้นหลังเมื่อ hover */
}




.form_checkbox {
    width: 15px; /* กำหนดความกว้าง */
    height: 15px; /* กำหนดความสูง */
    transform: scale(1.5); /* ขยายขนาดเช็คบ็อกซ์ */
    margin-right: 5px; /* เพิ่มระยะห่างระหว่างเช็คบ็อกซ์กับข้อความ */
}

.img_acept{
    width: 380px;
}


.form_check{
    display: inline;
    margin: 2px;
    border-radius: .5rem;
}

.form_input{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 22px;
    border: 1px solid #929191;
    border-radius: .5rem;
    outline: none;
    padding: 1rem;
    z-index:1;
    text-align: center;
}

.form_label{
    text-align: left;
    color: var(--font-color);
    margin-bottom: 20px;
}

.loginbtn{
    outline: none;
    border: none;
    background-color: #213760;
    color: #fff;
    border-radius: .2rem;
    cursor: pointer;
    transition: .3s;
    padding: 10px;
    display: block;
    text-align: center;
    
    margin: 40px auto; /* Set margin-top to 40px and margin-left/right to auto */
}


  /* Basic styling for the header and nav */
  .header {
    color: #fff;
    padding: 10px;
    padding: 0;
    margin: 0;
  }
  
  .logo_title {
    position: absolute;
    display: block;
    align-items: center;
    margin: 0;
    background: #ffff;
    width: 250px;
    height: 80px;
    padding: 30px;
    
  }

  nav {
    height: 80px;
    background:  #213760;
  }
  
 nav img{
    width: 150px;
    position: absolute;
    top:17px;
    left:5%
 }

 nav ul{
    float:right;
    margin-right: 200px;
 }

 nav ul li{
    display: inline-block;
    line-height: 60px;
    margin: 0 15px;

 }

 nav ul li a{
    position:relative;
    color: var(--white-color);
    font-size: 18px;
    padding: 5px 0;
    
 }

 nav ul li a::before{
    position:absolute;
    content: '';
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--white-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s linear;
 }

 nav ul li a:hover:before{
    transform: scaleX(1);
    transform-origin: left;
 }


ul li:hover a {

    color: yellow; /* กำหนดสีตัวอักษร */
    border-radius: 5px; /* เพิ่มมุมโค้ง */
}


label #btn,
label #cancel{
    color: #34495e;
    font-size:30px;
    float: right;
    line-height: 40px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check{
    display: block;
} 


.maincontent {
    padding: 0px;
    text-align: center; /* Center-align content */
    /* background-color: #213760; */

}

section .responsive-imgmobile {
    display: none;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    margin-top: 0px; /* Adjust as needed */
    padding: 0px;
    object-fit: cover;
    object-position: 0;
}

footer {
    display: flex;
    background-color: #213760;
    color: #fff;
    padding: 0px;
    text-align: center;
    margin-top: -10px; 
    font-size: 15px;
}

footer ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 24px;
    
}

footer ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 15px;
}

footer ul li a{
    position:relative;
    color: var(--white-color);
    font-size: 18px;
    padding: 5px 0;
    
 }


.footer_into{
    background: #ffff;
    width: 380px;
    height: 100px;
    padding: 0px;
    margin: 0px;
}
.footer_item {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.inconfooter{
    font-size: 30px;
}

.inconfooterlink{
    font-size: 20px;
}
 

/* login */
.mainlogin{
    background: url(../img/loginbg.png) no-repeat;
    background-size: cover;
    height: calc(100vh - 80px); 
}

section {
  width: 100%;
    
 }

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

.content {
    position: absolute;
    top: 150px;
    background: #f3f5f4;
    width: 600px;
    height: 400px;
    padding: 25px;
    border: 1px solid #7c7c7c;
}

.contentpolicy {

    padding: 0 0 20px 0; /* padding เฉพาะด้านล่าง */
    border: 1px solid #ddd; /* ขอบบางๆ */
    border-radius: 8px; /* มุมโค้งรอบกล่อง */
    max-width: 600px; /* กำหนดความกว้างสูงสุด */
    margin: 20px auto; /* จัดกึ่งกลางหน้าจอ */
    overflow: hidden; /* เพื่อให้ border-radius ทำงานกับ child element ที่ชิดขอบ */
}


.contentpolicy-header {
    font-size: 20px; /* ขนาดตัวอักษรของส่วนหัว */
    color: #fff; /* สีตัวอักษรของส่วนหัว */
    background-color: #213760; /* พื้นหลังสีน้ำเงิน */
    padding: 10px; /* เพิ่ม padding ภายใน */
    border-radius: 8px 8px 0 0; /* มุมโค้งเฉพาะด้านบน */
   
    margin: 0; /* ลบ margin ด้านนอก */
}

.contentpolicymaster-header {
    font-size: 20px; /* ขนาดตัวอักษรของส่วนหัว */
    color: #e0b62d; /* สีตัวอักษรของส่วนหัว */
    background-color:#213760;/* พื้นหลังสีน้ำเงิน */
    padding: 10px; /* เพิ่ม padding ภายใน */
    border-radius: 8px 8px 0 0; /* มุมโค้งเฉพาะด้านบน */
   
    margin: 0; /* ลบ margin ด้านนอก */
}

.contentpolicy-body {
    font-size: 16px; /* ขนาดตัวอักษรของเนื้อหา */
    color: #333; /* สีตัวอักษรของเนื้อหา */
    line-height: 1.6; /* ระยะห่างระหว่างบรรทัด */
    text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
    margin-top: 10px; /* เพิ่มระยะห่างระหว่างส่วนหัวกับเนื้อหา */
}

.enroll-link{
    display: none;
}


.panel {
    background-color: #fff; /* สีพื้นหลัง panel */
    padding: 20px; /* เพิ่ม padding เพื่อให้ดูสวยงาม */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* เพิ่มเงา */
    border-radius: 8px; /* มุมโค้ง */
    width: 300px; /* กำหนดความกว้าง */
    text-align: center; /* จัดข้อความให้อยู่กึ่งกลางภายใน panel */
}

/* response */
@media (max-width: 1118px){
   
    nav img{
        left:8%
    }

    nav ul{
        float:right;
        margin-right: 20px;
        font-size: 14px;
     }
    
     .footer_main {
       
            display: flex;
            background-color: #213760;
            color: #fff;
            padding: 10px 0; /* เพิ่ม padding ด้านบนและด้านล่าง */
            text-align: center;
            margin-top: 5px; 
            font-size: 15px;
       
     }
     .footer_item {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 14px;
       
    }
    
    .inconfooter{
        font-size: 14px;
    }

    .footer_into{
        display: none;
    }
    
     
}

@media (max-width: 944px){
    nav img{
        left:12%;
        top:5px;
        width: 120px;
    }
    nav ul li a{
        font-size: 17px;
    }
}

@media (max-width:860px){
    body{
        background: var(--white-color);
    }
    label #btn{
        display: block;
    }
    nav ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background:#34495e;
        top: 40px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }

    nav ul li{
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    nav ul li a{
        font-size: 20px;
    }

    #check:checked ~ ul{
        left: 0;
    }

    #check:checked ~ label #btn{
        display: none;
    }

    #check:checked ~ label #cancel{
        display: block;
    }
}

@media  (max-width:940px){
    nav {
        padding: 0;
        height: 60px;
        background:  var(--white-color);
      }

    .logo_title {
        position: absolute;
        align-items: center;
        padding: 20px;
        margin: 0;
        height: 40px;
        
      }
    
    .mainlogin{
        display: block;
        background: none;
    }

    section .responsive-img{
        display:none;
        /*
        width: 100vw;
        height: 100vh;    
        margin: 0;
        padding: 0;
        object-fit: cover;
        object-position: center
        */
    }

    section .responsive-imgmobile{
        display: block;
        width: 100vw;
        height: 100vh;       /* Full viewport height */
        margin: 0;
        padding: 0;
        object-fit: cover;
        object-position: center
    }
    
    .content {
        position: absolute;
        top: 190px;
        background: none;
        width: 100%;
        height: 100%;
        padding: 25px;
        border: none;  
     }

  
     .footer_into{
        display: none;
     }

     .footer_main{
        display: none;
     }

     

     

     .txtheader{
        position: absolute;
        justify-content: center;
        top:100px;
        font-size: 20px;
        text-align: center;
        padding: 20px;
    }
    p{
        text-align: center;
        color: var(--font-color);
        font-size: 12px;
        
    }
/*
    .txtheader-form{
        position: absolute;
        justify-content: center;
        top:90px;
        font-size: 14px;
        font-weight: bold;
    }
*/
    .txtheader-form {
        font-size: 14px; /* Smaller font size for smaller screens */
        text-align: center; /* Center-align text */
        padding: 0 50px; /* Add padding for responsive text wrapping */
        width: 100%; /* Ensure it fits full screen width */
        left: 0; /* Align to the left edge of the screen */
        top:90px;
    }

    .txtheader-formmaster {
        position:absolute;
        font-size: 14px; /* Smaller font size for smaller screens */
        color: #e0b62d;
        text-align: center; /* Center-align text */
        padding: 0 50px; /* Add padding for responsive text wrapping */
        width: 100%; /* Ensure it fits full screen width */
        left: 0; /* Align to the left edge of the screen */
        top:90px;
    }

    .text-id3{
        width:60px;
    }

    .enroll-link {
        display:block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
        color: var(--font-color);
        background-color: rgba(224, 182, 46, 0.8); /* Optional: semi-transparent background */
        padding: 10px 20px;
        text-align: center;
        border-radius: 5px;
        text-decoration: none;
        z-index: 10; /* Ensure it appears above other elements */
    }

    .form_checkbox {
        width: 10px; /* กำหนดความกว้าง */
        height: 10px; /* กำหนดความสูง */
        transform: scale(1.5); /* ขยายขนาดเช็คบ็อกซ์ */
        margin-right: 5px; /* เพิ่มระยะห่างระหว่างเช็คบ็อกซ์กับข้อความ */
    }
    
    .img_acept{
        width: 250px;
    }
    
  
}

#txtID3 {
    width: 80px; /* Default width */
}

#txtID2 {
    width: 60px; /* Default width */
}




@media (max-width: 940px) {
    #txtID3 {
        width: 60px; /* Reduced width for smaller screens */
    }

    #txtID2 {
        width: 45px; /* Default width */
    }

    .contentpolicy {

        margin-top: 20px; /* ปรับค่าได้ตามต้องการ */
    }

    .step {
        font-size: 6px; /* ปรับขนาดตามที่ต้องการ */
    }

     
    .btnAdddata {
        width: 100%; /* ขยายปุ่มให้เต็มความกว้าง */
    }

    .img_acept{
        width: 250px;
    }
    
    
}