﻿.home-count {
    position: relative;
    padding-top: 85px;
    background: #f5f5f5;
}

    .home-count:before {
        content: "";
        position: absolute;
        background: url(/Design/img/MocHuynhThuan/f1.png) no-repeat;
        background-size: 100% 100%;
        left: 0;
        top: 0;
        width: 100%;
        height: 365px;
        pointer-events: none;
        z-index: -1;
    }

.home-count-container {
    padding: 52px 0;
    padding-top: 42px;
}

.home-count-list {
    display: flex;
}

.home-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 36px 19px 19px 19px;
    position: relative;
    flex: 1 1 0;
}

li.home-count-item:nth-child(4) section {
    border-top: 1px solid #cccccc;
    padding-top: 15px;
    margin-top: 9px;
}

.home-count-item span {
    display: block;
    color: #3275b6;
    font-size: 65px;
    font-family: 'MonEB';
    line-height: normal;
    padding-bottom: 5px;
}

    .home-count-item span strong {
        font-weight: 100;
    }

.home-count-item h3 {
    font-family: 'MonM';
    font-size: 15px;
    color: #3c3c3c;
    margin: 0;
    margin-top: 5px;
    font-weight: normal;
    line-height: 145%;
    border-top: 1px solid #cccccc;
    padding-top: 15px;
    padding-right: 15px;
}

.home-count-top-h h4 {
    font-size: 28px;
    font-family: 'MonEB';
    text-align: center;
    =: 10px;
    margin: 0;
    color: #dfb966;
    margin-bottom: 10px;
    line-height: 150%;
}

.home-count-top-h h5 {
    margin: 0;
    font-size: 18px;
    font-family: 'MonR';
    text-align: center;
    color: #4d93d7;
    line-height: 145%;
}

.home-count-top-h span {
    display: block;
    font-size: 18px;
    font-family: 'MonR';
    color: #ffffff;
    width: 811px;
    margin: auto;
    text-align: center;
}

li.home-count-item:before {
    content: "";
    position: absolute;
    background: #182a3d;
    right: 0;
    top: 0;
    width: 1px;
    height: 95%;
}

.home-count-item span p {
    font-size: 25px;
    margin: 0;
    text-transform: uppercase;
}

.home-count-item:nth-child(4) span {
    font-size: 40px;
    text-transform: uppercase;
}

    .home-count-item:nth-child(4) span strong {
        margin-right: 4px;
    }

.home-count-item:nth-child(4) section p {
    margin: 0;
    line-height: 145%;
    font-size: 16px;
    font-family: 'MonM';
    font-weight: normal;
    color: #3c3c3c;
}

.home-count-item:nth-child(4) {
    width: 298px;
}

    .home-count-item:nth-child(4):before {
        content: unset;
    }

@media(max-width:1023px) {
    .home-count {
        padding-top: 34px;
    }

    .home-count-container {
        padding-top: 26px;
        padding-bottom: 23px;
    }

    .home-count-top-h h4 {
        font-size: 18px;
    }

    .home-count-top-h span {
        width: auto;
        font-size: 15px;
        text-align: justify;
    }

    .home-count-list {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
    }

    li.home-count-item:before {
        display: none;
    }

    .home-count-item:nth-child(1) span, .home-count-item:nth-child(2) span {
        height: max-content;
        padding-bottom: 10px;
    }

    .home-count-item span {
        font-size: 24px;
        width: 100%;
        height: 52px;
        text-align: center;
        padding-bottom: 0;
        border-bottom: 1px solid #cccccc;
    }

    .home-count:before {
        content: "";
        position: absolute;
        background: url(/Design/img/MocHuynhThuan/f1.png) no-repeat;
        background-size: cover;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
    }

    .home-count-top-h h5 {
        font-size: 16px;
    }

    .home-count-item {
        padding: 15px;
        align-items: unset;
        justify-content: start;
        -webkit-justify-content: flex-start;
    }

        .home-count-item:nth-child(2):before {
            content: unset;
        }

        .home-count-item h3 {
            padding-right: 0;
            font-size: 13px;
            text-align: justify;
            border-top: none;
            margin-top: 5px;
            padding-top: 5px;
        }

    li.home-count-item:nth-child(4) section {
        border-top: none;
        padding-top: 5px;
        margin-top: 5px;
    }

    .home-count-item:nth-child(4) section p {
        font-size: 13px;
        text-align: left;
    }

    .home-count-item:nth-child(4) span {
        font-size: 22px;
        text-transform: uppercase;
    }

    .home-count-item span p {
        font-size: 17px;
    }

    .home-count-item:nth-child(4) {
        width: 100%;
    }
}