.ab1 {
    position: relative;
    width: 100%;
}

.ab1Info {
    position: absolute;
    top: 60%;
    left: 12%;
}

.ab1Info>h1 {
    color: #fff;
    font-size: max(42px, 2.1vw);
    letter-spacing: 2px;
}

.ab2 {
    width: 100%;
    position: relative;
    background-color: #fff;
    padding: 5% 14%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ab2>* {
    margin-bottom: 4%;
}

.ab2>div:nth-child(2) {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab2>div:nth-child(2) div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ab2>div:nth-child(2) div>img {
    transition: all .3s ease;
}

.ab2>div:nth-child(2) div:hover>img {
    transform: rotateY(180deg);
}

.ab2>div:nth-child(2) div:hover>p {
    color: #8d6a40;
}

.ab2>div:nth-child(2) img {
    width: auto;
    margin-bottom: 20px;
}

.ab2>div:nth-child(2) p {
    font-family: PingFang Regular;
    font-size: max(12px, 0.63vw);
    transition: color .6s ease;
}

.ab2>p:nth-child(3) {
    font-family: PingFang Regular;
    font-size: max(16px, 0.84vw);
    color: #333333;
    line-height: 150%;
    text-indent: 2rem;

}

.ab2>p:nth-child(3)>span {
    font-family: PingFang Regular;
    color: #8D6A40;
}

.ab2>h2 {
    font-size: max(36px, 1.9vw);
    color: #333333;
    letter-spacing: 2px;
}

.ab2>div:nth-child(5) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ab2>div:nth-child(5)>div {
    width: calc((100% - 80px) / 4);
    color: #8D6A40;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #EEE8E1;
    padding: 10% 20px;
    box-sizing: border-box;
    border: 2px solid #EEE8E1;
    transition: all .6s ease;
    margin-bottom: 5%;
}

.ab2>div:nth-child(5)>div:hover {
    background-color: transparent;
    border-radius: 10px;
    transform: translateY(-20px);
}

.ab2>div:nth-child(5)>div>h3 {
    text-align: center;
    font-size: max(21px, 1.1vw);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10%;
}

.ab2>div:nth-child(5)>div>p {
    font-family: PingFang Regular;
    font-size: max(16px, 0.84vw);
    text-align: center;
    line-height: 150%;
}

.ab2>p:nth-child(6) {
    font-family: PingFang Regular;
    font-size: max(21px, 1.1vw);
    color: #333333;
    text-indent: 2rem;
}

.ab2>p:nth-child(6)>span {
    font-family: "Kanit Medium";
    color: #8D6A40;
}

.ab2>p:nth-child(6)>b {
    font-family: "Kanit Medium";
    letter-spacing: 1px;
    font-weight: 500;
    color: #D58E38;
}

@media (max-width:1200px) {
    .ab2>div:nth-child(5)>div {
        width: calc((100% - 50px) / 2);
    }
    .ab2>div:nth-child(2) p{
        text-align: center;
    }
}

@media (max-width: 768px){
    .ab2>div:nth-child(2){
        flex-wrap: wrap;
    }
    .ab2>div:nth-child(2) div{
        width: 50%;
        margin-bottom: 5%;
    }
    .ab1>img{
        height: 30vh;
    }
}

@media(max-width:480px){
    .ab2>div:nth-child(2) div,
    .ab2>div:nth-child(5)>div{
        width: 100%;
    }.ab2>div:nth-child(5)>div:hover{
        transform: translateY(0);
    }
    
}