*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Phetsarath OT';
    font-weight: bold;
}

           nav{
            background-color: #101856;
            z-index: 1;
            position: relative;
            position: fixed;
            top: 0;
            width: 100%;
            display: flex;
            height: 80px;
            justify-content:space-around;
            align-items: center;
            
            
        }
        .logo img{
            width: 100px;
            height: 100px;
        }
        .menu{
            list-style: none;
            display: flex;
            margin-right: 20px;
            gap: 20px;
            margin-top: 20px;
            li{
                font-weight: bold;
                
            }
            a{
                text-decoration: none;
                color: rgb(255, 255, 255);
                font-family: 'Phetsarath OT';
                font-size: 15px;

            }

        }
   .menu a:hover{
         color: #0300c5;
         border-bottom: 2px solid #0300c5;

        }
        .icons{
            display: flex;
            gap: 20px;
            margin-right: 20px;
        }
        .icons a img{
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: rgba(136, 136, 136, 0.493);
            padding: 5px;
        }
        .icons a img:hover{
            background-color:#6690ff;
        }
        article{
            width: 100%;
            height: 270px;
            background-color:#261FB3 ;
        }
        .aie h1 {
            font-size: 50px;
            font-family: 'Phetsarath OT';
            margin-top: 110px;
            padding: 50px;
            color: #ffffff;
        }
        .background-img{
            width: 100%;
            height: 350px;
            background-color: #ffffff;
            margin-top: 180px;
            color:#261FB3;
        }
        .background-img h1{
            margin-top: -70px;
            padding-top: 50px;
            padding-left: 100px;
            font-size: 70px;
            font-family: 'Phetsarath OT';
        }
        .background-img p{
            padding-left: 100px;
            font-family: 'Phetsarath OT';
        }
        .content{
            width: 100%;
            height: 600px;
            background-color:rgba(255, 217, 0, 0) ;
            padding-left: 100px;
            border-radius: 100%;
            border-bottom:  20px rgb(4, 4, 97) ridge;
        }
        .content .box-1{
            display: flex;
            gap: 10px;

        }
        .box-2{
            background-color: #261FB3;
            width: 650px;
            height: 410px;
            border-radius: 20px;
            margin-top: 10px;
            background-image: url(https://kpl.gov.la/Media/Upload/News/Thumb/2024/12/18/WhatsApp%20Image%202024-12-18%20at%2011.08.05_4b19715a.jpg);
            background-size: contain;
            background-size: cover;
            background-position: center;
            padding-left: 20px;
            padding-top: 340px;
            a{
                font-size: 20px;
                color: #ffffff;
                font-weight: bold;
                background-color: #261fb385;
                border-radius: 20px;
                padding: 20px;
                height: 30px;
            }

        }
        .box-2:hover{
         transform: scale(1.1);
         transition: all 0.3s ease-in-out;
         
    
        }
        .box-3{
            background-color: #261fb300;
            width: 500px;
            height: 400px;
        }
        .box-4{
            background-color: #75748d;
            width: 500px;
            height: 200px;
            border-radius: 20px;
            margin: 10px;
            background-image: url(img/WhatsApp\ Image\ 2025-11-24\ at\ 14.44.36_41a70b63.jpg);
            background-size: contain;
            background-size: cover;
            background-position: center;
            padding-left: 20px;
            padding-top: 130px;
            a{
                font-size: 17px;
                color: #ffffff;
                font-weight: bold;
                background-color: #261fb35e;
                border-radius: 20px;
                padding: 20px;
                height: 30px;
            }
     
            
        }
        .box-4:hover{
         transform: scale(1.1);
         transition: all 0.3s ease-in-out;
         
    
        }
        .box-5{
            background-color: #0f6675;
            width: 500px;
            height: 200px;
            border-radius: 20px;
            margin: 10px;
            background-image: url(https://ktvc.edu.la/wp-content/uploads/2022/06/289745057_548310310108598_7787580361418979687_n-768x576.jpg);
            background-size: contain;
            background-size: cover;
            background-position: center;
            padding-left: 20px;
            padding-top: 130px;
            a{
                font-size: 20px;
                color: #ffffff;
                font-weight: bold;
                background-color: #261fb379;
                border-radius: 20px;
                padding: 20px;
                height: 30px;
            }
   
        }
        .box-5:hover{
         transform: scale(1.1);
         transition: all 0.3s ease-in-out;
         
    
        }
        footer{
            width: 100%;
            height: 400px;
            background-color:   #101856;
            position: relative;

        }
        main p {
            width: 400px;
            text-align: justify;
        }
        .box-9{
            display: flex;
            background-color: #4ddbdb00;
            width: 100%;
            height: 400px;
            justify-content: space-between;
            padding-right: 100px;

        }
        .box-10{
            width: 300px;
            height: 300px;
             
        }
        .box-10 img{
            width: 150px;
            height: 150px;
            margin-left: 105px;
        }
        .box-10 p{
            width: 300px;
            margin-left: 50px;
            color: #fff;
            margin-top: -20px;
            font-family:'Phetsarath OT' ;
        }
        .box-11{
            font-family:'Phetsarath OT' ;
            margin-top: 50px;
            color: #fff;
            font-size: 18px;
            margin-right: 50px;
        }
        .box-12{
            font-family:'Phetsarath OT' ;
            margin-top: 50px;
            margin-right: 10px;
            color: #fff;
            font-size: 18px;
        }
        .box-13{
            display: flex;
            justify-content: space-between;
        }
        .box-14{
            font-size: 20px;
            color: rgb(255, 255, 255);
            margin-left: 40px;
            margin-top: -130px;
            font-family:'Phetsarath OT' ;

        }
        .box-15{
            margin-right: 100px;
            margin-top: -90px;
        }
        .box-15 img{
            width: 45px;
            height: 45px;
            background-color: #57575794;border-radius: 50%;
            padding: 5px;
        }
        .footer-1{
            width: 100%;
            height: 50px;
            background-color: #101856;
            position: relative;
            align-items: center;
            display: flex;
            justify-content: space-between;
            padding-right: 100px;
            font-family:'Phetsarath OT' ;
            padding-left: 40px;
            color: #ffffff;
            a{
                color: #ffffff;
            }

        }


/* ======================================== */
/* เริ่มส่วน RESPONSIVE ที่เพิ่มเข้ามาใหม่ */
/* ======================================== */

/* Tablet - หน้าจอขนาดกลาง (768px - 1024px) */
@media screen and (max-width: 1024px) {
    nav {
        height: 70px;
        padding: 0 20px;
    }
    
    .logo img {
        width: 80px;
        height: 80px;
    }
    
    .menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .menu a {
        font-size: 13px;
    }
    
    .icons {
        gap: 15px;
    }
    
    article {
        height: 220px;
    }
    
    .aie h1 {
        font-size: 40px;
        margin-top: 90px;
        padding: 30px;
    }
    
    .background-img {
        height: 300px;
        margin-top: 140px;
    }
    
    .background-img h1 {
        margin-top: -50px;
        padding-top: 40px;
        padding-left: 50px;
        font-size: 50px;
    }
    
    .background-img p {
        padding-left: 50px;
        font-size: 16px;
    }
    
    .content {
        height: auto;
        padding: 30px 40px;
        border-bottom: 15px rgb(4, 4, 97) ridge;
    }
    
    .content .box-1 {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .box-2 {
        width: 90%;
        max-width: 650px;
        height: 350px;
        padding-top: 280px;
    }
    
    .box-3 {
        width: 90%;
        max-width: 500px;
        height: auto;
    }
    
    .box-4, .box-5 {
        width: 100%;
        max-width: 500px;
        height: 180px;
        padding-top: 110px;
        margin: 10px 0;
    }
    
    main p {
        width: 100%;
        max-width: 400px;
    }
    
    footer {
        height: auto;
    }
    
    .box-9 {
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
        align-items: center;
    }
    
    .box-10 {
        margin-bottom: 30px;
    }
    
    .box-10 img {
        margin-left: 75px;
    }
    
    .box-10 p {
        margin-left: 0;
        text-align: center;
    }
    
    .box-11, .box-12 {
        margin: 20px 0;
        text-align: center;
    }
    
    .box-14 {
        margin-left: 20px;
        margin-top: 20px;
        text-align: center;
    }
    
    .box-15 {
        margin-right: 20px;
        margin-top: 20px;
        text-align: center;
    }
    
    .footer-1 {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
        gap: 10px;
    }
}

/* Mobile - หน้าจอขนาดเล็ก (สูงสุด 767px) */
@media screen and (max-width: 767px) {
    /* ทำให้เว็บไซต์เต็มจอมือถือ */
    html, body {
        width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }
    
    nav {
        height: auto;
        min-height: 70px;
        flex-direction: column;
        justify-content: center;
        padding: 10px 5px;
        gap: 8px;
        width: 100%;
    }
    
    .logo {
        order: 1;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .logo img {
        width: 55px;
        height: 55px;
    }
    
    .menu {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 12px;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .menu li {
        margin: 0;
        padding: 0;
    }
    
    .menu a {
        font-size: 12px;
        padding: 4px 8px;
        display: inline-block;
    }
    
    .icons {
        order: 3;
        gap: 12px;
        margin: 0;
        justify-content: center;
        width: 100%;
    }
    
    .icons a img {
        width: 26px;
        height: 26px;
        padding: 4px;
    }
    
    article {
        width: 100%;
        height: 200px;
        margin-top: 0;
    }
    
    .aie h1 {
        font-size: 24px;
        margin-top: 160px;
        padding: 20px 15px;
        text-align: center;
        word-wrap: break-word;
    }
    
    .background-img {
        width: 100%;
        height: auto;
        min-height: 250px;
        margin-top: 80px;
        padding-bottom: 20px;
    }
    
    .background-img h1 {
        margin-top: 0;
        padding-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 32px;
        text-align: center;
        word-wrap: break-word;
    }
    
    .background-img p {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 15px;
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content {
        width: 100%;
        height: auto;
        padding: 20px 10px;
        border-radius: 50px;
        border-bottom: 12px rgb(4, 4, 97) ridge;
    }
    
    .content .box-1 {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .box-2 {
        width: 100%;
        height: 300px;
        margin: 10px 0;
        padding: 15px;
        padding-top: 220px;
        border-radius: 15px;
        background-size: cover;
    }
    
    .box-2 a {
        font-size: 16px;
        padding: 12px 15px;
        display: inline-block;
        word-wrap: break-word;
        text-decoration: none;
    }
    
    .box-2:hover {
        transform: scale(1.02);
    }
    
    .box-3 {
        width: 100%;
        height: auto;
    }
    
    .box-4, .box-5 {
        width: 100%;
        height: 220px;
        margin: 10px 0;
        padding: 15px;
        padding-top: 140px;
        border-radius: 15px;
        background-size: cover;
    }
    
    .box-4 a, .box-5 a {
        font-size: 15px;
        padding: 12px 15px;
        display: inline-block;
        word-wrap: break-word;
        text-decoration: none;
    }
    
    .box-4:hover, .box-5:hover {
        transform: scale(1.02);
    }
    
    main p {
        width: 100%;
        padding: 0 15px;
        font-size: 13px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    footer {
        width: 100%;
    }
    
    .box-9 {
        width: 100%;
        padding: 20px 10px;
    }
    
    .box-10 {
        width: 100%;
        text-align: center;
    }
    
    .box-10 img {
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 120px;
        height: 120px;
    }
    
    .box-10 p {
        width: 100%;
        margin-left: 0;
        padding: 0 15px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .box-11, .box-12 {
        font-size: 14px;
        text-align: center;
        width: 100%;
        margin: 15px 0;
        padding: 0 10px;
        line-height: 1.6;
    }
    
    .box-13 {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .box-14 {
        font-size: 15px;
        margin-left: 0;
        margin-top: 30px;
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }
    
    .box-15 {
        margin-right: 0;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }
    
    .box-15 img {
        width: 40px;
        height: 40px;
        margin: 5px;
    }
    
    .footer-1 {
        width: 100%;
        padding: 15px 10px;
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Mobile ขนาดเล็กมาก (สูงสุด 480px) */
@media screen and (max-width: 480px) {
    article {
        height: 180px;
    }
    
    .aie h1 {
        font-size: 20px;
        margin-top: 150px;
        padding: 15px 12px;
    }
    
    .background-img {
        min-height: 220px;
        margin-top: 60px;
    }
    
    .background-img h1 {
        padding-top: 25px;
        font-size: 26px;
    }
    
    .background-img p {
        font-size: 13px;
    }
    
    .content {
        padding: 15px 8px;
        border-radius: 40px;
        border-bottom: 10px rgb(4, 4, 97) ridge;
    }
    
    .box-2 {
        height: 250px;
        padding-top: 180px;
        border-radius: 12px;
    }
    
    .box-2 a {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .box-4, .box-5 {
        height: 200px;
        padding-top: 130px;
        border-radius: 12px;
    }
    
    .box-4 a, .box-5 a {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    main p {
        font-size: 12px;
    }
    
    .box-10 p, .box-11, .box-12 {
        font-size: 13px;
    }
    
    .footer-1 {
        font-size: 12px;
    }
}

/* Landscape mode สำหรับ Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    nav {
        min-height: 50px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    article {
        height: 150px;
    }
    
    .aie h1 {
        margin-top: 80px;
        font-size: 22px;
        padding: 15px;
    }
    
    .background-img {
        margin-top: 50px;
    }
    
    .menu {
        gap: 8px;
        margin: 5px 0;
    }
    
    .menu a {
        font-size: 11px;
    }
}