:root{
    --color-1: #0d6efd;
    --color-2: #f0eef1;
    --color-3: #fd4213;
    --head-bg: linear-gradient(#0655cc, #0d6efd); ; /*สีของแถบ head*/
    --head-width: 100%; /*ความกว้างของ head*/
    --head-height: 70px; /*ความสูงของ head*/
    --navbar-bg: #0d6efd; /* สีพื้นของ navbar*/
    --navbar-width: 1200px; /*ความกว้างของ navbar*/
    --navbar-font-color: #ccc; /* สีอักษรของ navbar*/

    --menu-color: #ccc; /* สีอักษรของ menu*/
    --menu-color-hover: #000000; /*สีอักษรของ menu เมื่อเม้าส์ over*/
    --menu-bg: transparent; /*สีพื้นของ menu*/
    --menu-bg-hover: #ccc; /*สีพื้นของ menu เมื่อเม้าส์ over*/
    --menu-active-bg: #3b3b3b; /*สีพื้นของ menu (active)*/
    --menu-active-bg-hover: #7a7a7a; /*สีพื้นของ menu (active) เมื่อเม้าส์ over*/
    --menu-active-color: #fff; /*สีอักษรของ menu (active)*/
    --menu-active-color-hover: #000000; /*สีอักษรของ menu (active) เมื่อเม้าส์ over*/

    --font-size: 16px; /* ตั้งค่าขนาดของฟอนต์*/
    --font-color: #000; /* ตั้งค่าสีของฟอนต์*/
    --body-bg: #f0eef1; /* สีพื้นของเว็บเพจ*/
    --content-bg: transparent; /* สีพื้นของส่วนเนื้อหา*/
    --footer-bg: #000; /* สีพื้นของ Footer*/
    --footer-font-color: #fff; /* สีอักษรของ Footer*/
    --box-bg: #fff;
    --box-h2: #fd4213;
    --box-font-color: #444444;
    --box-price: #0655cc;
}
*{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-size: var(--font-size);
    border: 0;
    line-height: 1.7rem;
}
body{
    background: var(--body-bg);
}

/*css basic*/
.flex-center-both{
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-center-between{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head{
    position: fixed;
    top: 0;
    width: var(--head-width);
    background: var(--head-bg);
    height: var(--head-height);
    box-shadow: 0 0 10px 1px rgba(0,0,0,.6);
    z-index: 9;
    font-size: 1rem;
}
.head .navbar{
    flex-basis: var(--navbar-width);
    padding: 0 .7em;
    font-size: 1em;
}

.logo{
    display: flex;
    align-items: center;
    width: 50%;
    color: var(--navbar-font-color);
    font-size: 1.5em;
}
.logo img{
    width: 2.7em;
    margin-right: .5em;
}
.menu{
    display: flex;
    justify-content: end;
    align-items: center;
    width: 50%;
    list-style: none;
    gap: .4em;
}
.menu li a{
    color: var(--menu-color);
    font-size: 1em;
    padding: .3em .7em;
    border-radius: .5em;
    transition: all .5s ease;
}
.menu li a:hover{
    color: var(--menu-color-hover);
    background: var(--menu-bg-hover);
}
.menu li a.active{
    color: var(--menu-active-color);
    background: var(--menu-active-bg);
    font-weight: bold;
}
.menu li a.active:hover{
    color: var(--menu-active-color-hover);
    background: var(--menu-active-bg-hover);
}
#menu-check {
    display: none;
}
.toggle{
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    width: 40px;
    height: 35px;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 6px 5px;
    cursor: pointer;
    display: none;
}
.toggle span{
    width: 100%;
    height: 3px;
    border-radius: .1em;
    background: #fff;
}

.banner {
    margin-top: var(--head-height);
    width: 100%;
    height: 450px;
    background-image: linear-gradient(#1661c6, #378bfb); 
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden; 
}
.banner .streak {
    position: absolute;
    top: 60px;
    left: -100px;
    width: 200%;
    height: 50%;
    rotate: -7deg;
}
.banner .banner-img{
    width: var(--navbar-width);
}

main{
    /* margin-top: var(--head-height); */
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 90vh;
    font-size: 1rem;
}
.content{
    width: var(--navbar-width);
    padding: 1.5em .7em;
    background: var(--content-bg);
    font-size: 1em;
}

h1.pagename{
    font-size: 2em;
    font-weight: bold;
    color: #000;
    margin-bottom: .5em;
}
hr{
    height: 1px;
    background: #8f8e8e;
    margin-bottom: 2em;
}
p{
    margin-bottom: 1em;
}

.row{
    margin-bottom: 2em;
    display: flex;
    /* justify-content: space-between; */
    align-items: start;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1em;
}
.row .box{
    width: calc(25% - 15px);
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.3);
    background: var(--box-bg);
    border-radius: 5px;
    padding: .8em;
    display: flex;
    flex-direction: column;
    font-size: 1em;
}
.row .box img{
    width: 100%;
    margin-bottom: 1em;
}
.row .box h2{
    color: var(--box-h2);
    font-size: 1.4em;
}
.row .box p{
    color: var(--box-font-color);
    font-size: .9em;
}
.row .box .price{
    color: var(--color-1);
    font-weight: bold;
    margin-top: auto;
}

.row .box-profile{
    width: calc(25% - 15px);
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.3);
    background: var(--box-bg);
    border-radius: 5px;
    padding: .8em;
    display: flex;
    flex-direction: column;
}
.row .box-profile div{
    width: 100%;
    display: flex;
    margin-bottom: .6em;
}
.row .box-profile div .name{
    flex-basis: 75%;
    display: flex;
    align-items: center;
    color: #012f74;
    font-weight: bold;
}
.row .box-profile div .name img{
    width: 30%;
    margin-right: 8px;
    border-radius: 50%;
}
.row .box-profile div .quote{
    flex-basis: 18%;
    display: flex;
    /* justify-content: end; */
    align-items: center;
}
.row .box-profile div .quote img{
    width: 100%;
    filter: opacity(30%);
}
.row .box-profile p {
    width: 100%;
    font-size: 1em;    
}

footer{
    width: 100%;
    display: flex;
    justify-content: center;
    background: var(--footer-bg);
}
.footer{
    width: var(--navbar-width);
    color: var(--footer-font-color);
    padding: 1em .5em;
}

@media screen and (max-width: 999px){
    .row .box{
        width: calc((100% / 3) - 15px);
    }
    .row .box-profile{
        width: calc((100% / 3) - 15px);
    }
}
@media screen and (max-width: 800px) {
    .toggle{
        display: flex;
    }
    .logo{
        width: 88%;
    }
    .navbar .menu{
        width: 12%;
        opacity: 0;
        visibility: hidden;
    }
    #menu-check:checked ~ .menu{
        opacity: 1;
        visibility: visible;
    }
    .head .navbar{
        flex-basis: var(--navbar-width);
    }
    .navbar .menu{
        position: absolute;
        width: 100%;
        top: var(--head-height);       
        left: 0;
        display: flex;
        flex-flow: column;
        background: var(--head-bg);
        box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.5) inset;
        padding: 20px;
    }
    .navbar .menu li{
        width: 100%;
        text-align: center;
    }
    .navbar .menu li a{
        display: block;        
    }    
}
@media screen and (max-width: 640px) {
    .row .box{
        width: calc(50% - 15px);
    }
    .row .box-profile{
        width: calc(50% - 15px);
    }
}
@media screen and (max-width: 500px) {
    .logo{
        font-size: 1.2em;
    }
    .row .box{
        width: 100%;
    }
    .row .box-profile{
        width: 100%;
    }
}