/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@1,100&family=Noto+Sans+Thai:wght@100;200;300;400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,500;0,600;1,500;1,900&family=Prompt:ital,wght@0,300;0,400;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Noto Sans Thai', sans-serif;
}
:root{
    --main-color:#008148;
    --second-color: #1e3932;
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 4px 41px rgb(14 55 54 / 14%);
    padding: 15px 10%;
    transition: 0.2s;
}

img{
    width: 100%;
}

a{
    text-decoration: none;
}
.logo{
    display: flex;
    align-items: center;
}
.logo img{
    width: 150px;
}

.navbar{
    display: flex;
}

.navbar a{
    font-size: 1rem;
    padding: 11px 20px;
    color: var(--second-color);
    font-weight: 600;
    text-transform: uppercase;
}

.navbar a:hover{
    color: var(--main-color);
}

.navbar img{
    width: 25px;
}
.navbar .lang{
    display: flex;
}
  
.navbar .lang li{
    list-style-type: none
}

#menu-icon{
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

section{
    padding: 50px 10%;
    padding-bottom: 5px;
    display: grid;
}

.contact{
    width: 100%;
    display: flex;
    margin-top: 5%;
    text-transform: uppercase;
}

.heading{
    text-align: center;
    width: 100%;
}
.heading span{
    font-size: 1rem;
    font-weight: 600;
    color: var(--second-color);

}

.heading h1{
    font-size: 2rem;
    color: var(--main-color);
}

.container{
    width: 100%;
    display: flex;
    padding: 50px 10%;
    gap: 5%;
    justify-content: center;
    align-items: center;
}

.detail img{
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 20px;
    transition: transform .4s;
}

.detail img:hover{
    transform: scale(1.1);
}
.detail h3{
    text-align: center;
    color: var(--second-color);
}

.overlay{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}
.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 40%;
    position: relative;
    transition: all 2s ease-in-out;
    text-align: center;
}

.popup h2 {
    margin-top: 0;
    color: #333;
    text-decoration: underline;
}
.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.popup .close:hover {
    color: #06D85F;
}
.popup .content {
    max-height: 30%;
    overflow: auto;
}
.popup .content h4{
    color: var(--second-color);
}


/* Responsitive */
@media (max-width: 1035px){
    header{
        padding: 18px 4%;
    }
}

@media (max-width: 915px){
    header{
        padding: 11px 4%;
    }
    #menu-icon{
        display: initial;
    }
    header .navbar{
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 4px rgb(14 55 54/14%);
        transition: 0.2s;
        border-top: 2px solid var(--main-color);
        text-align: left;
    }
    .navbar.active{
        top: 100%;
    }
    .navbar a{
        padding: 1rem ;
        display: block;
        color: var(--second-color);
    }
}

@media (max-width: 700px){
    .box{
        width: 70%;
    }
    .popup{
        width: 70%;
    }
    .heading span{
        font-size: 0.8rem;
    }
    .heading h1{
        font-size: 1.5rem;
    }
    .detail img{
        width: 60px;
    }
    .detail h3{
        font-size: 0.9rem;
    }
    .popup{
        width: 95%;
    }
    .popup h2{
        font-size: 1.3rem;
    }
    .popup h3{
        font-size: 1rem;
    }
    .popup h4{
        font-size: 0.8rem;
    }
}
@media (max-width: 600px){
    section{
        padding: 10px 5%; 
    }
    .contact{
        margin-top: 18%;
    }
    .detail{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        
    }
}