*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-weight: bold;
}
body{
    background-color: #6690ff;
}
           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: 350px;
            background-color: #181729;
            background-image: url(img/d3.jpg);
            background-size: contain;
            background-size:cover;
            background-position:center;
            margin-top: 80px;

        }
        .aie h1 {
            padding-top: 130px;
            padding-left: 100px;
            font-size: 70px;
            font-family: 'Phetsarath OT';
            background-color:#0a0749e8;
            width: 100%;
            height: 350px;
            color: #ffffff;
            border-bottom:  50px double rgb(2, 0, 100);
            
        }
        .stn{
            background-color: rgb(133, 168, 250);
            padding-top: 30px;
            font-family: 'Phetsarath OT';
            width: auto;
            border-radius: 0px 0px 100px 0px;
            height: 700px;

            
            
        }
        .stn h1{
            text-align: center;
        }
        .box-1{
            display: flex;
            align-items: center;
            justify-content: space-around;
            margin-top: 30px;
            width: auto;
        }
        .box-1 img{
            width: 450px;
            height: 550px;
            box-shadow: #00000048 10px 10px 10px;

        }
        .box-p{
            width: 450px;
            margin-top: -20px;
            height: auto;
        }
        .box-p p{
            text-align: justify;
        }
        .stn-1{
            font-family: 'Phetsarath OT';
            width: 100%;
            height: 500px;
            background-color: #261FB3;
            border-radius: 0px 100px 100px 0px;
            padding-top: 20px;
            text-align: center;

        }
        .stn-1 h1{
            text-align: center;
            color: #ffffff;
        }
        .box-2{
            display: flex;
            justify-content:center;
            padding-top: 30px;
            background-color: rgb(0, 89, 206);
            border-radius: 50px 50px 50px 50px;
            width: 100%;
            height: 400px;
            text-align: center;

        }
        .box-2 img{
            width: 300px;
            height: 330px;
        }
                .iframe{
            background-color: #474747;
            width: 100%;
            height: 600px;
            text-align: center;
            background-image: url(img/WhatsApp\ Image\ 2025-11-24\ at\ 09.37.07_5b56d932.jpg);
            background-size: contain;
            background-size: cover;
            background-position: center;
            

        }
        .iframe button{
            width: 200px ;
            height: 80px;
            border-radius: 50px;
            font-size: 30px;
            font-family:'Phetsarath OT' ;
            border: none;
            background-color:  #261FB3;
            margin-top: 350px;

        }
        a{
            text-decoration: none;
            color: #ffffff;
        }
        footer{
            width: 100%;
            height: 400px;
            background-color:  #141353;
            position: relative;

        }
        .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: #141353;
            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;
            }

        }
@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: 300px;
    }
    
    .aie h1 {
        padding-top: 100px;
        padding-left: 50px;
        font-size: 50px;
        height: 300px;
        border-bottom: 30px double rgb(2, 0, 100);
    }
    
    .stn {
        height: auto;
        padding: 30px 20px;
        border-radius: 0px 0px 80px 0px;
    }
    
    .box-1 {
        flex-direction: column;
        gap: 20px;
    }
    
    .box-1 img {
        width: 90%;
        max-width: 400px;
        height: auto;
    }
    
    .box-p {
        width: 90%;
        max-width: 500px;
        padding: 0 20px;
    }
    
    .stn-1 {
        height: auto;
        padding: 30px 20px;
        border-radius: 0px 80px 80px 0px;
    }
    
    .box-2 {
        width:100%;
        max-width: 900px;
        height: auto;
        flex-wrap: wrap;
        padding: 20px;
        border-radius: 30px;
        margin: 0 auto;
    }
    
    .box-2 img {
        width: 250px;
        height: 280px;
        margin: 10px;
    }
    
    .iframe {
        height: 500px;
    }
    
    .iframe button {
        width: 180px;
        height: 70px;
        font-size: 26px;
        margin-top: 300px;
    }
    
    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%;
    }
    
    body {
        background-color: #6690ff;
    }
    
    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: 280px;
        margin-top: 140px;
        background-size: cover;
    }
    
    .aie h1 {
        padding-top: 70px;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 32px;
        height: 280px;
        border-bottom: 20px double rgb(2, 0, 100);
        word-wrap: break-word;
        text-align: center;
    }
    
    .stn {
        width: 100%;
        height: auto;
        padding: 25px 15px;
        border-radius: 0px 0px 60px 0px;
    }
    
    .stn h1 {
        font-size: 26px;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .box-1 {
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        gap: 20px;
    }
    
    .box-1 img {
        width: 100%;
        max-width: 320px;
        height: auto;
        box-shadow: #00000048 5px 5px 8px;
    }
    
    .box-p {
        width: 100%;
        padding: 0 15px;
        margin-top: 0;
    }
    
    .box-p h2 {
        font-size: 20px;
        margin-bottom: 10px;
        word-wrap: break-word;
    }
    
    .box-p p {
        font-size: 14px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stn-1 {
        width: 100%;
        height: auto;
        padding: 25px 15px;
        border-radius: 0px 60px 60px 0px;
    }
    
    .stn-1 h1 {
        font-size: 26px;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .box-2 {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
        border-radius: 25px;
        margin: 10px 0;
        gap: 15px;
    }
    
    .box-2 img {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 8px 0;
    }
    
    .iframe {
        width: 100%;
        height: 400px;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .iframe button {
        width: 160px;
        height: 60px;
        font-size: 20px;
        margin-top: 0;
        cursor: pointer;
    }
    
    .iframe button:hover {
        background-color: #1a0f80;
    }
    
    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: 220px;
    }
    
    .aie h1 {
        padding-top: 50px;
        font-size: 26px;
        height: 220px;
        border-bottom: 15px double rgb(2, 0, 100);
    }
    
    .stn {
        padding: 20px 12px;
        border-radius: 0px 0px 50px 0px;
    }
    
    .stn h1 {
        font-size: 22px;
    }
    
    .box-1 img {
        max-width: 280px;
    }
    
    .box-p h2 {
        font-size: 18px;
    }
    
    .box-p p {
        font-size: 13px;
    }
    
    .stn-1 {
        padding: 20px 12px;
        border-radius: 0px 50px 50px 0px;
    }
    
    .stn-1 h1 {
        font-size: 22px;
    }
    
    .box-2 {
        padding: 15px 8px;
        border-radius: 20px;
    }
    
    .box-2 img {
        max-width: 250px;
    }
    
    .iframe {
        height: 350px;
    }
    
    .iframe button {
        width: 140px;
        height: 55px;
        font-size: 18px;
    }
    
    .box-10 p, .box-11, .box-12 {
        font-size: 13px;
    }
    
    .footer-1 {
        font-size: 12px;
    }
}
@media screen and (max-height: 500px) and (orientation: landscape) {
    nav {
        min-height: 50px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    article {
        height: 180px;
        margin-top: 80px;
    }
    
    .aie h1 {
        padding-top: 40px;
        font-size: 28px;
        height: 180px;
    }
    
    .iframe {
        height: 300px;
    }
    
    .menu {
        gap: 8px;
        margin: 5px 0;
    }
    
    .menu a {
        font-size: 11px;
    }
}