﻿.home-loithe {
    position: relative;
    background-image: url(/Design/img/home-bg-lt.png);
    background-size: cover;
    padding-bottom: 49px;
}

.home-loithe-decor {
    position: absolute;
    top: -148px;
    left: 0;
    pointer-events: none;
}

    .home-loithe-decor img {
    }

.home-loithe .grid.wide {
    max-width: 1218px;
}

.home-loithe-container {
}

.title-loithe-top {
}

    .title-loithe-top .p-cate {
    }

    .title-loithe-top .p-title {
    }

.home-loithe-list {
    padding: 0;
    list-style: none;
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 29px;
    row-gap: 24px;
    /* Căn giữa các item */
}

.home-loithe-wrap {
    margin-top: 26px;
}

.home-loithe-item:first-child {
}

.home-loithe-item:nth-child(5) {
    grid-column: 2 / span 1;
    grid-row: 2;
}

.home-loithe-item:nth-child(6) {
    grid-column: 3 / span 1;
    grid-row: 2;
}

.home-loithe-item {
    height: 248px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

    .home-loithe-item::before {
        content: '';
        position: absolute;
        width: 100%;
        top: -6px;
        left: -9px;
        height: 100%;
        border-radius: 21px;
        border: 1px solid #1C3984;
    }

    .home-loithe-item::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 21px;
        background: linear-gradient(180deg, #18BFF0 0%, #1C3984 100%), #1C3984;
    }

    .home-loithe-item .img {
        z-index: 2;
        position: relative;
    }

        .home-loithe-item .img img {
        }

    .home-loithe-item .title {
        z-index: 2;
        max-width: 237px;
    }

        .home-loithe-item .title h4 {
            text-align: center;
            color: #FFFFFF;
            font-family: robotoSB;
            font-size: 31px;
            margin: 0;
            font-weight: 100;
            margin-top: 17px;
            text-transform: capitalize;
        }

@media (min-width: 1024px) and (max-width: 1220px) {
}

@media(max-width:1023px) {
    .home-loithe-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 15px;
        row-gap: 15px;
    }

    .home-loithe-item:nth-child(5),
    .home-loithe-item:nth-child(6) {
        grid-column: unset;
        grid-row: unset;
    }
}

@media(min-width:740px) and (max-width:1023px) {
}

@media(max-width:739px) {
    .home-loithe-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
    }

    .home-loithe-item::before {
        top: 0;
        left: 0;
        opacity: 0;
    }

    .home-loithe-item {
        background: linear-gradient(180deg, #18BFF0 0%, #1C3984 100%), #1C3984;
        border-radius: 21px;
        border: 1px solid #1C3984;
        padding: 0 10px;
    }

        .home-loithe-item::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 21px;
            background: linear-gradient(180deg, #18BFF0 0%, #1C3984 100%), #1C3984;
            top: 0;
            left: 0;
            opacity: 0;
        }

        .home-loithe-item .title h4 {
            font-size: 20px;
        }
        .home-loithe-item .img img {
            width: 55px;
        }

    .home-loithe-item {
        height: 200px;
    }
    .home-loithe {
        padding-bottom: 25px;
    }

  
}
