/* banner style */

.box-swiper {
    padding: 25px 14px;
    width: 100%;
    background: var(--primary-color);
}

.swiper {
    width: 100%;
}

.swiper-slide {
    max-width: 70%;
    width: 100%;
    height: 300px;
    overflow: hidden;
    z-index: 1;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.tagline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main-tagline {
    font-size: 18px;
    font-family: var(--fonttext-montserrat);
    letter-spacing: .2px;
}

.sub-tagline {
    font-size: 14.5px;
    font-family: var(--fonttext-poppins);
    letter-spacing: .2px;
    color: var(--fourth-color);
}

.sub-tagline span {
    color: var(--primary-color);
    font-weight: 600;
}

/* content card style */

.box-content {
    display: flex;
    flex-direction: column;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 0 14px;
}

#list-popular-product {
    display: flex;
    max-width: fit-content;
    overflow-x: scroll;
    /* overflow-x: scroll;
    overflow-y: hidden; */
    padding: 5px;
}

#list-popular-product::-webkit-scrollbar {
    display: none;
}

.list-product {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 11px;
}

#list-all-product {
    min-height: 200px;
}

.card-data {
    display: flex;
    background: var(--secondary-color);
    max-width: 220px;
    width: 100%;
    height: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    transition: .2s all;
    -webkit-transition: .2s all;
    -moz-transition: .2s all;
    -ms-transition: .2s all;
    -o-transition: .2s all;
}

.card-data a {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-data a img {
    max-width: 100%;
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    transition: .3s all;
    -webkit-transition: .3s all;
    -moz-transition: .3s all;
    -ms-transition: .3s all;
    -o-transition: .3s all;
}

.card-data-title p {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 4px;
    padding-bottom: 0;
    font-family: var(--fonttext-poppins);
    font-size: 14.5px;
    color: var(--five-color);
    margin-top: 5px;
    text-align: center;
    letter-spacing: .2px;
    line-height: 1.52em;
}

.card-data:hover {
    transform: scale(1.07);
    -webkit-transform: scale(1.07);
    -moz-transform: scale(1.07);
    -ms-transform: scale(1.07);
    -o-transform: scale(1.07);
    transition: .3s all;
    -webkit-transition: .3s all;
    -moz-transition: .3s all;
    -ms-transition: .3s all;
    -o-transition: .3s all;
}

.card-data.popular {
    min-width: 200px;
}

.card-data.popular:hover {
    transform: scale(1.03);
    -webkit-transform: scale(1.03);
    -moz-transform: scale(1.03);
    -ms-transform: scale(1.03);
    -o-transform: scale(1.03);
    transition: .3s all;
    -webkit-transition: .3s all;
    -moz-transition: .3s all;
    -ms-transition: .3s all;
    -o-transition: .3s all;
}

/* category style */

.list-category-button {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    overflow-x: scroll;
    gap: 11px;
    padding: 5px;
}

.list-category-button::-webkit-scrollbar {
    display: none;
}

.list-category-button button.active {
    font-weight: 600;
    outline: none;
    background: var(--primary-color);
    color: var(--secondary-color);
}

.list-category-button button {
    padding: 10px 20px;
    border: none;
    outline: 1px solid rgba(128, 128, 128, 0.2);
    color: var(--five-color);
    font-size: 16px;
    letter-spacing: .2px;
    font-family: var(--fonttext-poppins);
    text-align: center;
    white-space: nowrap;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.list-category-button button:hover {
    filter: brightness(95%);
    -webkit-filter: brightness(95%);
}

/* news style  */

.list-news {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 10px;
    max-width: fit-content;
    min-height: 200px;
}

.list-news::-webkit-scrollbar {
    display: none;
}

.card-news {
    display: flex;
}

.card-news a {
    display: flex;
    flex-direction: column;
    background: var(--secondary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.09);
    max-width: 300px;
    width: 100%;
    min-width: 270px;
    overflow: hidden;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.card-news a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-news-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
    margin-top: 11px;
}

.card-news-title h4 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--fonttext-poppins);
    color: var(--five-color);
    line-height: 1.32em;
    letter-spacing: .2px;
}

.card-news-title .preview-news {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--fonttext-poppins);
    font-size: 14px;
    color: var(--fourth-color);
    letter-spacing: .2px;
    line-height: 1.32em;
}

.no-news {
    display: flex;
    justify-content: center;
    font-family: var(--fonttext-poppins);
    font-size: 14.5px;
    color: var(--fourth-color);
    margin-top: 11px;
}

.btn-all-news {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    width: fit-content;
    margin: 0 auto;
    margin-top: 2rem;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.btn-all-news a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    padding: 10px 20px;
    font-size: 14.5px;
    font-family: var(--fonttext-montserrat);
    color: var(--secondary-color);
}

.btn-all-news a span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-all-news a:hover {
    filter: brightness(95%);
    -webkit-filter: brightness(95%);
}

/* info about style  */

#about-lebipay {
    background: rgb(29, 161, 242, 0.1);
    max-width: 100%;
}

.list-info-about {
    display: flex;
    flex-direction: column;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.list-info-about p {
    font-size: 13.5px;
    font-family: var(--fonttext-montserrat);
    letter-spacing: .2px;
    line-height: 1.52em;
    color: var(--five-color);
    margin-top: 11px;
}

.btn-all-about {
    display: flex;
    width: fit-content;
    font-size: 14.5px;
    font-family: var(--fonttext-montserrat);
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-all-about:hover {
    filter: brightness(95%);
    -webkit-filter: brightness(95%);
}

@media (max-width: 1300px) {
    .swiper-slide img {
        height: 250px;
        object-fit: contain;
    }
}

@media(max-width: 900px) {

    .swiper-slide {
        max-width: 90%;
        width: 100%;
    }

    #p-2-about {
        display: none;
    }

}

@media screen and (max-width: 768px) {

    .box-swiper {
        display: flex;
        align-items: baseline;
        margin-top: -.5rem;
        padding: 14px;
    }

    .swiper-slide {
        max-width: 100%;
        height: 200px;
    }

    .swiper-slide img {
        height: 200px;
    }

    .list-product {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .card-data.popular {
        width: 180px;
    }

    .list-info-about p {
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .card-data-title p {
        display: -webkit-box;
        line-clamp: 1;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        font-size: 13px;
    }

}

@media (max-width: 600px) {

    .list-product {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .card-data {
        max-width: 100%;
        height: 230px;
    }

    .card-data a img {
        height: 185px;
    }

    .card-news a {
        min-width: 240px;
    }

    .card-data.popular {
        min-width: 135px;
        width: 150px;
    }


}

@media (max-width: 520px) {

    .swiper-slide {
        max-width: 100%;
        height: 160px;
    }

    .swiper-slide img {
        height: 160px;
    }
}

@media (max-width: 450px) {
    
    .card-data {
        height: 190px;
    }

    .card-data a img {
        height: 150px;
    }

}

@media (max-width: 380px) {   
    .list-product {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}