@font-face {
    font-family: 'THSarabunNew';
    src: url('fonts/thsarabunnew-webfont.eot');
    src: url('fonts/thsarabunnew-webfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/thsarabunnew-webfont.woff') format('woff'),
        url('fonts/thsarabunnew-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'THSarabunNew';
    src: url('fonts/thsarabunnew_bolditalic-webfont.eot');
    src: url('fonts/thsarabunnew_bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/thsarabunnew_bolditalic-webfont.woff') format('woff'),
        url('fonts/thsarabunnew_bolditalic-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;

}

@font-face {
    font-family: 'THSarabunNew';
    src: url('fonts/thsarabunnew_italic-webfont.eot');
    src: url('fonts/thsarabunnew_italic-webfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/thsarabunnew_italic-webfont.woff') format('woff'),
        url('fonts/thsarabunnew_italic-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;

}

@font-face {
    font-family: 'THSarabunNew';
    src: url('fonts/thsarabunnew_bold-webfont.eot');
    src: url('fonts/thsarabunnew_bold-webfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/thsarabunnew_bold-webfont.woff') format('woff'),
        url('fonts/thsarabunnew_bold-webfont.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;

}

* {
    padding: 0;
    margin: 0;
}

header {
    background-color: rgb(173, 205, 207);
}

body {
    background-color: rgb(225, 240, 245);
    font-family: Helvetica, sans-serif;
}

pre{
    white-space: pre-wrap;
}

button:hover{
    cursor: pointer;
}

.menu {
    position: relative;
}

.logo {
    position: absolute;
    height: 159px;
    width: 200px;
    right: 5%;
    top: 5%;
}

.schoolLogo {
    padding-top: 10px;
    margin-left: 30px;
    height: 150px;
    width: 450px;
    margin-bottom: 20px;
}
.menuicon{
    display: none;
    float: right;
}
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: white;
}

.nav li {
    text-align: center;
    min-width: 200px;
    border-bottom: none;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    display: inline-block;
    margin-right: -4px;
}

.nav a {
    text-decoration: none;
    color: rgb(35, 137, 145);
    display: block;
    border-bottom: none;
    transition: .3s;
    min-width: 200px;
    padding-left: 0;
}

.nav a:hover {
    background-color: rgb(35, 137, 145);
    color: white;
}

.nav a.active {
    background-color: rgb(35, 137, 145);
    color: white;
    cursor: default;
}

.nav li li {
    font-size: .8em;
    min-width: 200px;
    background-color: rgb(145, 219, 224);

}

.nav li li a {
    color: rgb(65, 107, 119);
}
.nav li ul {
    position: absolute;
    display: none;
    width: 200px;
}

.nav li:hover ul {
    display: block;
}

.nav li ul li {
    display: block;
    width: 200px;
    text-align: center;
}

.flex{
    display: flex;
}

.all-center{
    align-items: center;
    justify-content: center;
}

.text-red{
    color: red;
}

.bold{
    font-weight: bold;
}

footer {
    background-color: rgb(33, 84, 107);
    color: white;
    height: fit-content;
    overflow: auto;
}

.contactus {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    margin-top: 10px;
    width: 95%;
    color: rgb(181, 217, 252);
}

.contactus a {
    text-decoration: none;
    color: rgb(181, 217, 252);
}

.contactus ul {
    list-style: none;
    text-align: center;
}

.contactus ul li strong {
    text-decoration: underline;
}

.contactus li {
    display: inline-block;
    margin-right: 30px;
}
.contactus h3{
    display: none;
}
.allLink h3{
    margin-left: 10px;
    display: none;
}

.content p {
    font-size: 25px;
}

.link {
    display: inline-block;
    margin: 10px;
    text-align: center;
    color: rgb(181, 217, 252);
    font-size: 18px;
    transition: .3s;
}

.allLink {
    width: fit-content;
    margin: 0 auto;
    padding-top: 30px;
}

.copyright {
    width: 800px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.link:hover {
    color: rgb(243, 138, 156);
    font-size: 19px;
}

.allLink p {
    display: inline-block;
}

@media screen and (max-width:1200px){
    .nav ul li{
        font-size: 20px;
        min-width: 150px;
    }
    .nav a {
        min-width: 150px;
    }
    .nav li ul li{
        width: 150px;
        font-size: 15px;
    }
    .nav li ul{
        width: 150px;
    }
    .allLink {
        width: 95%;
    }
    
}
@media screen and (max-width:1000px) {
    .allLink {
        width: 320px;
        margin: 0;
        margin-left: 30px;
    }

    .allLink ul {
        list-style-type: disc;
    }

    .allLink a {
        text-decoration: none;
    }

    .link {
        display: block;
        text-align: center;
    }

    .allLink p {
        display: none;
    }

    .contactus {
        width: 300px;
        float: right;
        margin-right: 50px;
    }

    .contactus ul li {
        display: block;
        margin: 10px 0;
    }
    .contactus h3{
        text-align: center;
        color: white;
        text-decoration: underline;
        display: block;
    }

    .contactus,
    .allLink {
        display: inline-block;
    }

    .copyright{
        width: 100%;
        font-size: 10px;
        text-align: center;
        overflow: auto;
        
    }
    footer {
        height: fit-content;
        overflow: auto;
    }
    .allLink h3 {
        display: block;
        text-align: center;
        text-decoration: underline;
    }
}
@media screen and (max-width:950px) {
    body.active{
        overflow: hidden;
    }
    .nav{
        position: fixed;
        z-index: 1000;
        left: 100%;
        transition: .3s;
    }
    .nav.active{
        left: 0;
    }
    .menuicon.active{
        position: relative;
        background-color: rgb(19, 56, 56);
    }

    .menuicon.active:hover{
        background-color: rgb(39, 115, 121);
    }
    .nav ul{
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: auto;
    }
    .nav ul li{
        height: fit-content;
        display: block;
        line-height: 70px;
        
    }
    .nav ul li .active{
        background-color: white;
        color: rgb(35, 137, 145);
    }
    .nav ul li .active:hover{
        background-color: white;
        font-size: 1em;
        color: rgb(35, 137, 145);
    }
    .nav ul li a{
        height: 80px;
    }
    .nav li ul{
        width: 100%;
        background: none;
        height: fit-content;
    }
    .nav li ul li{
        width: 100%;
        display: block;
        font-size: .8em;
    }
    .nav a:hover {
        text-decoration: underline;
        background-color: white;
        color: rgb(35, 137, 145);
        font-size: 1.3em;
    }
    .nav a.active:hover{
        text-decoration: none;
        background-color: rgb(35, 137, 145);
        color: white;
        font-size: 1em;
    }
    .nav ul li ul li{
        font-size: 1em;
    }
    .nav ul li ul li a:hover{
        text-decoration: none;
        background-color: rgb(35, 137, 145);
        color: white;
        font-size: 1em;
    }
    .menuicon{
        display: block;
        font-size: 30px;
        width: fit-content;
        border-radius: 10px;
        background-color: rgb(35, 137, 145);
        color: white;
        overflow: auto;
        margin: 30px;
        float: right;
        z-index: 1100;
    }
    .menuicon i{
        padding: 10px;
        transition: .3s;
    }
    .menuicon i:hover{
        background-color: rgb(19, 56, 56);
        cursor: pointer;
    }
}
@media screen and (max-width:700px) {
    .schoolLogo{
        height: 100px;
        width: 300px;
    }
    .logo{
        height: 100px;
        width: 125.786px;
        top: 10%;
    }
    .copyright{
        font-size: 10px;
    }
    .allLink, .contactus{
        display: block;
        margin: 0 auto;
        float: none;
    }
    
}
@media screen and (max-width:450px) {
    .schoolLogo {
        height: 70px;
        width: 210px;
        top: 12%;
    }

    .logo {
        height: 70px;
        width: 88.0376px;
        top: 12%;
    }
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.content {
    margin: 20px ;
    padding: 20px;
/*	width: 1000px;*/
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}



.thai {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.subheading {
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.achievecontent {
    margin-top: 20px;
}

.contentctn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.image-container {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}