* { 
    font-family: "Noto Sans Lao", sans-serif;
    font-optical-sizing: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    font-style: normal;
    margin: auto;
    width: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* contract school */
.contract{
    display: flex;
    justify-content: start;
    position: relative;
    z-index: 10;
    background: rgb(5, 188, 188);
}
.contract img{
    padding-top: 0.1rem;
    border-radius: 100%;
    width: 2rem;
    margin: 0.5rem;
}

/* logo and menu */
/* logo */
nav{
    background: white;
    top: 0;
    left: 0;
    position: sticky;

    z-index: 1000;

    display: flex;
    padding: 0.5rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px -5px black ;
    z-index: 1000;
}
.logo{
    display:flex;
    align-items: center;
    padding-left: 0.5rem;
}
.logo h2{
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: clamp(0.5rem,calc(5vh+1rem),1.2rem);
    padding: min(0.5em);
    margin: 0;
    line-height: 1.2;
}
.logo a img{
    display: block;
    border-radius: 100%;
    width: 100px;
}
/* menu */
.allmenu{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    position: relative;
}
.menu{
    position: relative;
    margin-right: 2rem;
}
.menu-btn{
    font-size: 1.2rem;
    text-decoration: none;
    border: none;
    background: white;
    cursor: pointer;
    position: relative;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown{
    position: absolute;
    color: black;
    left: auto;
    margin: 0;
    border-top: 2px solid blue;
    width: 10rem;
    
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease ;
    background:white;
}
.dropdown li{
    padding-top: 5px;
}
a{
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
}
.menu:hover .dropdown{
    opacity: 1;
    transform: translateY(0);
}
.hamburger{
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    align-items: center;
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    transition:  0.3s;
}
.overlay.show{
    opacity: 0.3;
    pointer-events: auto;
}
@media(max-width:768px){
    .hamburger{
        display: block;
        padding: 1rem;
    }
    .allmenu{
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height:100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        z-index: 10000;
        overflow-y:auto ;
    }

    /* open menu */
    .allmenu.show{
        right: 0;
    }
    
    .dropdown{
    position: relative;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3 ease;
    background: white;
    }

    
    #btn-active{
    color: black;
    padding-bottom: 0.1rem;
    border-bottom: none;
    }
    .dropdown.show{
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
}
/* main */
/* ກຸ່ມສາລະຕ່າງໆ */
main{
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}
.main-context{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 4rem ;
}
.main-context h1{
    border-bottom: 2px solid pink ;
}

/* กล่อง Agenda */
.agenda-container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* แถบหัวข้อสีน้ำเงิน */
.agenda-header {
    background-color: #007bff; /* สีน้ำเงินตามรูป */
    color: white;
    padding: 10px 20px;
}

.agenda-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

/* เนื้อหาด้านใน */
.agenda-content {
    padding: 20px;
    background-color: #f9f9f9;
}

.agenda-content ul {
    list-style-type: none;
    padding: 0;
}

.agenda-content li::before {
    content: "–";
    margin-right: 10px;
    color: #ff4d4d; /* สีชมพู/แดง ตามรูป */
    font-weight: bold;
}

.sub-group {
    margin-bottom: 20px;
}

.sub-group h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sub-group p {
    color: #666;
    padding-left: 15px;
    border-left: 3px solid #ff4d4d;
}

/* การปรับแต่งสำหรับหน้าจอมือถือ */
@media screen and (max-width: 600px) {
    .agenda-container {
        width: 95%; /* ขยายกล่องให้กว้างเกือบเต็มจอ */
        margin: 10px auto;
    }

    .agenda-header {
        padding: 8px 15px;
    }

    .agenda-header h2 {
        font-size: 1rem; /* ลดขนาดตัวอักษรหัวข้อลงเล็กน้อย */
    }

    .agenda-content {
        padding: 15px;
    }

    .main-title h1 {
        font-size: 1.8rem; /* ลดขนาดหัวข้อใหญ่ */
    }

    /* ปรับเมนู (Nav) ที่คุณมีอยู่ให้ซ่อน/แสดงได้ง่ายขึ้น */
    .allmenu {
        flex-direction: column; /* ถ้าใช้ flex ให้เรียงลงมาเป็นแนวตั้ง */
    }
}

/* footer */
.footer{
    padding: 2rem;
    background: blue;
    color: aliceblue;
    border-top: 4px solid white;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.footer-logo img {
    border-radius: 100%;
    width: 10rem;
}

/* text footer */

.text-address-phone{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.phone-address{
    font-size: 1.2rem;
}

.text-contract-email{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2rem;
}

.email{
    font-size: 0.8rem;
}