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

.WAboutContentHome {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    display: none;
}

.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;
    margin-bottom: 10px;
    font-family: 'Inter-ExtraBold';
    color: var(--default-color-3);
    font-size: 23px;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0.575px;
    text-transform: uppercase;
}

.WAboutHome {
    position: relative;
}

.WRightAboutHome {
    width: 474px;
    position: relative;
}

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

    .WTitleNameAboutHome:after {
        content: "";
        position: absolute;
        background: #D83631;
        width: 33px;
        height: 2px;
        left: 0;
        bottom: 0;
    }

.WDesAboutHome {
    margin-top: 14px;
}

.WTitleNameAboutHome span {
    display: block;
    color: #676767;
    font-family: InterSBI;
    font-size: 18px;
    font-style: italic;
    font-weight: normal;
    line-height: 150%; /* 24px */
}

.WItemListAbout h3 {
    margin: 0;
    color: #46ADF8;
    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: #E50D47;
}

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

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

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: #0077E2;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

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

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

.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 {
}

.WImgDecorItemAbout img {
    margin: auto;
}

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

ul.ListAboutHome li:nth-child(2) .WTopImgTitleAbout h3, ul.ListAboutHome li:nth-child(3) .WTopImgTitleAbout h3 {
    position: relative;
    top: 5px;
}

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

.WDesAboutHome section {
    color: #4D4D4D;
    /* 22.5px */
    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: #D83631;
    font-family: InterMI;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    line-height: 150%;
    text-decoration: none;
}

    span.decorLinkAboutHome a:hover {
        color: var(--default-color-3);
    }

.WImgAboutHome {
    overflow: hidden;
    border-radius: 15px;
    width: 368px;
    height: 284px;
}

    .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;
    margin-left: 10px;
}

.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;
}

@media(min-width:1024px) and (max-width:1230px) {
    .WImgAboutHome {
        width: 320px;
    }

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

    .WTitleNameAboutHome h2 {
        font-size: 18px;
    }

    .WDesAboutHome section {
        font-size: 14px;
    }

    .WTitleNameAboutHome span {
        font-size: 16px;
    }

    .WRightAboutHome {
        width: 60%;
    }

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

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

    .WTitleNameAboutHome span {
        font-size: 15px;
        line-height: normal;
    }

    .wp-news-bottoms .grid.wide {
        padding: 0;
    }

    .WLeftAboutHome {
        position: relative;
        margin: 0;
    }

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

    .WRightAboutHome {
        width: 100%;
        margin-top: 25px;
    }
}

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

    .WTitleNameAboutHome span {
        font-size: 13px;
        line-height: normal;
    }

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

    .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: 11px;
        bottom: 0;
        background: #fff;
    }

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

    .WImgAboutHome {
        width: 100%;
        height: auto;
    }

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

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