﻿.WAboutBackHome {
    background: #F7F3EA;
    position: relative;
}

.WAboutHome:before {
    content: "";
    position: absolute;
    left: -24px;
    top: -57px;
    background: url(/Design/img/YHocCoTruyen/About/DecorLeftAbout.png) no-repeat;
    background-size: cover;
    width: 268px;
    height: 877px;
}

.WAboutHome:after {
    content: "";
    position: absolute;
    right: 0px;
    top: -57px;
    background: url(/Design/img/YHocCoTruyen/About/DecorRightAbout.png) no-repeat;
    background-size: cover;
    width: 311px;
    height: 902px;
}

.WAboutContentHome {
    display: flex;
    justify-content: space-between;
}

.TopTitleAboutHome h4 {
    color: #4D4D4D;
    font-family: InterR;
    margin: 0;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    text-transform: uppercase;
}

.WTitleNameAboutHome h2 {
    margin: 0;
    width: 395px;
    color: #006A3F;
    font-family: VNMSansDisplayB;
    font-size: 38px;
    font-style: normal;
    font-weight: 700;
    line-height: 113.5%; /* 43.13px */
    letter-spacing: 0.95px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.WAboutHome {
    padding-top: 88px;
    padding-bottom: 85px;
    position: relative;
}

.WRightAboutHome {
    width: 561px;
    position: relative;
    z-index: 1;
}

.WTitleNameAboutHome {
    margin-top: 15px;
    margin-bottom: 25px;
}

.WDesAboutHome {
    margin-top: 37px;
}

.WTitleNameAboutHome span {
    display: block;
    color: #4D4D4D;
    font-family: InterSBI;
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    line-height: 150%; /* 24px */
}

.WItemListAbout h3 {
    margin: 0;
    color: #006A3F;
    font-family: VNMSansDisplayR;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 108%; /* 23.76px */
    letter-spacing: 0.55px;
    text-transform: uppercase;
    margin-top: 8px;
    transition: all .3s;
}

ul.ListAboutHome li:hover .WItemListAbout h3 {
    color: #F3ECDE;
}

.WTopImgTitleAbout {
    border-radius: 5px 5px 0 0;
    border: 1px solid #FBCF72;
    background: #FFF6E3;
    height: 95px;
    padding-top: 5px;
    transition: all .3s;
}

ul.ListAboutHome li:hover .WTopImgTitleAbout {
    background: #006A3F;
    border: 1px solid #006A3F;
}

ul.ListAboutHome li:nth-child(1) .WTopImgTitleAbout {
    padding-top: 11px;
}

ul.ListAboutHome li:nth-child(4) .WTopImgTitleAbout {
    padding-top: 11px;
}

ul.ListAboutHome li:nth-child(5) .WTopImgTitleAbout {
    padding-top: 11px;
}

.WTitleItemAbout {
    border-radius: 0px 0px 5px 5px;
    background: linear-gradient(87deg, #75BA4A 1.62%, #0C783C 104.74%);
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

ul.ListAboutHome li:hover .WTitleItemAbout {
    background: #FBCF72;
}

    ul.ListAboutHome li:hover .WTitleItemAbout h5 {
        color: #006A3F;
    }

.WTitleItemAbout h5 {
    color: #F0EDE3;
    font-family: 'InterM';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 21px */
    text-transform: capitalize;
    margin: 0;
}

.WItemListAbout {
    text-align: center;
}

ul.ListAboutHome li:hover .WImgDecorItemAbout img {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

.WImgDecorItemAbout img {
    margin: auto;
}


ul.ListAboutHome li:nth-child(2) .WTopImgTitleAbout .WImgDecorItemAbout {
    position: relative;
    top: 4px;
}

ul.ListAboutHome li:nth-child(3) .WTopImgTitleAbout .WImgDecorItemAbout {
    position: relative;
    top: 4px;
}

.WDesAboutHome section {
    color: #4D4D4D;
    font-family: InterR;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 22.5px */
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

span.decorLinkAboutHome a {
    display: inline-block;
    color: #5DAB47;
    font-family: InterMI;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    line-height: 150%;
    text-decoration: none;
}

.WImgAboutHome {
    width: 580px;
    height: 508px;
    overflow: hidden;
    border-radius: 15px;
}

    .WImgAboutHome:hover img {
        transform: scale(1.1);
    }

.WAboutBackHome:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    background: url(/Design/img/YHocCoTruyen/About/DecorBack.png) no-repeat;
    width: 100%;
    height: 100%;
}

.WLeftAboutHome {
    position: relative;
}

.WImgAboutHome img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all .3s;
}

ul.ListAboutHome {
    list-style: none;
    padding: 0;
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(5,minmax(0,1fr));
    column-gap: 11px;
    row-gap: 11px;
}

.WLeftAboutHome:after {
    content: "";
    position: absolute;
    bottom: -77px;
    right: -122px;
    background: url(/Design/img/YHocCoTruyen/About/DecorHoaSen.png) no-repeat;
    width: 291px;
    height: 326px;
}

@media(min-width:1024px) and (max-width:1230px) {
    .WImgAboutHome {
        width: 97%;
        height: 508px;
    }

    .WLeftAboutHome:after {
        content: "";
        position: absolute;
        bottom: -24px;
        right: -54px;
    }

    .WTitleNameAboutHome h2 {
        width: 395px;
        color: #006A3F;
        font-family: VNMSansDisplayB;
        font-size: 30px;
    }

    .WItemListAbout h3 {
        font-size: 17px;
    }
}

@media(max-width:1023px) {
    .WAboutContentHome {
        display: block;
    }

    .WLeftAboutHome {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 37px;
    }

        .WLeftAboutHome:after {
            content: "";
            position: absolute;
            bottom: -30px;
            right: 3px;
        }

    .WRightAboutHome {
        width: 100%;
    }
}

@media(max-width:739px) {
    .WAboutHome {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .WTitleNameAboutHome h2 {
        width: 100%;
        font-size: 22px;
    }

    .TopTitleAboutHome h4 svg {
        width: 11px;
        position: relative;
        top: 3px;
    }

    .TopTitleAboutHome h4 {
        color: #4D4D4D;
        font-family: InterR;
        margin: 0;
        font-size: 13px;
    }

    ul.ListAboutHome {
        list-style: none;
        padding: 0;
        display: grid;
        grid-auto-rows: minmax(min-content,max-content);
        grid-template-columns: repeat(2,minmax(0,1fr));
        column-gap: 11px;
        row-gap: 11px;
    }

    span.decorLinkAboutHome {
        position: absolute;
        right: 5px;
        bottom: 0;
        background: #f7f3ea;
    }

    .WDesAboutHome section {
        -webkit-line-clamp: 10;
    }

    .WImgAboutHome {
        width: 100%;
        height: 285px;
    }

    .WAboutHome .grid.wide {
        position: relative;
        z-index: 1;
    }

    .WLeftAboutHome:after {
        background: url("/Design/img/YHocCoTruyen/About/DecorHoaSenRes.png") no-repeat;
    }
}
