html {
    scroll-behavior: smooth;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* font-size: 14px; */
}
h1, h2, h3 {
    font-family: 'Kanit', sans-serif;
    color: #6f5b99;
}
h1 {
    font-size: 50px;
    font-weight: 500;
}
h2 {
    font-size: 26px;
    font-weight: normal;
}
h3 {
    font-size: 20px;
    font-family: 'Kanit';
    font-weight: 300;
}
/* span {
    font-weight: bold;
} */
p, b {
    font-family: 'Sarabun', sans-serif;
    /* font-family: 'Mali', cursive; */
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85 !important;
}
/* body {
    background-color: #f6f6f6;
} */
button {
    transition: all 0.5s ease-out;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
}
.container {
    max-width: 1170px;
    margin: auto;
    padding: 10px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: 
        'box1 box2 box3'
        'box4 box5 box6'
    ;
    grid-gap: 15px 15px;
    max-width: 800px;
    margin: auto;
}
.box {
    transition: all 0.3s ease-out;
    padding: 10px;
    border-radius: 12px;
    color: #6c6c6c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1.5px 12px 2px rgb(0 0 0 / 6%);
}
.box h3 {
    font-family: 'Kanit';
    font-weight: 300;
    padding: 15px 5px;
}
.box img {
    width: 100%;
}
.box1 {
    grid-area: box1;
}
.box2 {
    grid-area: box2;
}
.box3 {
    grid-area: box3;
}
.box4 {
    grid-area: box4;
}
.box5 {
    grid-area: box5;
}
.box-show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    /* transform: translate(-50%, -50%); */
    /* left: 0;
    top: 0;
    position: fixed;
    background-color: rgb(0 0 0 / 32%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center; */
}
.box center {
    position: inherit;
}
.show-p {
    display: none;
    max-width: 400px;
    text-align: left;
    padding: 15px;
}
.hide-p {
    display: block;
}
.box span {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 3px white;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
}
/* .show-box {
    max-width: 400px;
    padding: 10px;
} */
.slider {
    position: relative;
    overflow: hidden;
}
.slider-para {
    /* background-image: url(https://www.ccfthai.or.th/microsite/clf22/img/sliderD2.jpg); */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.title-slider {
    width: 60%;
    color: white;
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* text-align: center; */
    margin: auto;
}

.title-slider img {
    max-width: 300px;
    padding: 20px;
}
.img-slider {
    width: 100%;
    float: right;
}
.slider button {
    padding: 15px 30px;
    border: 0;
    font-size: 20px;
    border-radius: 50px;
    background-color: rgb(228 223 254);
    color: #a475e4;
}
#bm {
    max-width: 600px;
    margin: auto;
    margin-bottom: -14px;
}
.box:hover {
    transform: scale(1.05);
}
.title-contents {
    font-size: 50px; 
    padding: 10px;
}
.grid i {
    font-size: 70px;
    padding: 28px 20px 20px 20px;
}
.lists, .lists2 {
    transition: all 1s ease-out;
    height: 100%;
    opacity: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px 10px;
    
}
.list h3 {
    width: max-content;
    margin: auto;
}
.list {
    display: flex;
    align-items: center;
    border-radius: 7px;
}
.list-img img {
    transition: all 0.3s ease-out;
    border-radius: 300px;
    width: 180px;
    height: 180px;
    object-fit: cover;
}
.list-content {
    padding: 15px;
}
.list-content p {
    padding: 10px;
    border-radius: 0px 0px 10px 10px;
}
.row2 {
    display: flex;
    padding: 10px;
}
.video {
    flex: 1;
}
.video img {
    border-radius: 50%;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 0px 20px 0px rgb(77 77 77 / 21%);
}
.content {
    padding: 15px;
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
button:hover {
    background-color: rgb(205 195 255);
}
.flex-edit {
    display: flex;
    grid-gap: 15px 15px;
}
.g-box {
    box-shadow: 0 .25rem 1.75rem rgba(30,34,40,.07);
    padding: 20px;
    border-radius: 7px;
    background-color: white;
}
.g-box img {
    width: 100%;
}
.sticky-donate {
    z-index: 99;
    width: 68px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 1.5px 12px 2px rgb(0 0 0 / 6%);
    background-color: #e9d3ff8a;
    backdrop-filter: blur(209px);
}
.sticky-donate img {
    width: 100%;
    margin-bottom: -10px;
}
.sticky-donate p {
    padding: 6px 0px;
    color: #6f5b99;
    margin-bottom: -17px;
    font-weight: bold;
    font-size: 18px;
}
.sticky-donate:hover {
    box-shadow: 4px 5px 14px 5px rgb(158 158 158 / 31%);
}
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.test {
    display: grid; 
    grid-template-columns: 2fr 1fr;
}
.container-pay {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center;
}
#redmore p, #redmore i {
    font-size: 20px;
    cursor: pointer;
    color: #6f5b99;
    position: relative;
    z-index: 2;
}
.cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 200;
    background-color: #272727bf;
    padding: 15px;
    color: white;
    width: 100%;
}
.bt-cookie button {
    border: solid 1px white;
    padding: 8px 30px;
    border-radius: 80px;
    margin: 10px;
    color: white;
    background-color: #ffffff00;
}
.cookie p {
    font-size: 14px;
}
.parallax {
    background-image: linear-gradient(rgb(0 0 0 / 26%), rgb(0 0 0 / 25%)),url(https://www.ccfthai.or.th/images/BF4K01.jpg);
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}
.list-img img:hover {
    transform: scale(1.1);
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@media (max-width: 850px) {
    .menu {
        display: none;
    }
    .title-slider h1 {
        font-size: 35px;
    }
}
@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-areas: 
            'box1 box2'
            'box3 box4'
            'box5 box6'
        ;
    }
    .flex-edit {
        flex-direction: column;
    }
    .sticky-donate {
        width: 60px;
    }
    .sticky-donate p {
        font-size: 16px;
    }
}
@media (max-width: 750px) {
    .title-slider {
        position: static;
        width: 100%;
    }
    .img-slider {
        width: 220%;
    }
    .title-contents {
        font-size: 35px;
        font-weight: 500;
    }
}
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
    .slider {
        grid-template-columns: 1fr;
    }
    .title-slider {
        margin: auto;
    }
    .row2 {
        flex-direction: column;
    }
    .content {
        padding: 0;
    }
    .lists, .lists2 {
        grid-template-columns: 1fr; 
    }
    .list-img img {
        width: 130px;
        height: 130px;
    }
    .list {
        display: block;
    }
    .list-img {
        text-align: center;
    }
    .grid2 {
        grid-template-columns: 1fr;
    }
    .test {
        display: block; 
    }
    .grid h3 {
        font-size: 18px;
    }
    .title-slider h1, .title-slider h2 {
        font-size: 27px;
        text-align: center;
    }
    .container-pay {
        display: block;
    }
    .box h3 {
        padding: 0px 5px;
    }
    .box i {
        padding: 0px 20px;
    }
}
@media (max-width: 500px) {

}