@import url("global.css");
@import url("../layout/header.css");
@import url("../layout/footer.css");

.hero-banner img {
    border-radius: 35px;
    max-height : 615px;
}

@media (max-width: 992px) {
    .hero-banner {
        border-radius: 10px;
    }
}

.first-banner .swiper-button-next,
.first-banner .swiper-rtl .swiper-button-prev {
    right: 0px;
}

.first-banner .swiper-button-prev,
.first-banner .swiper-rtl .swiper-button-next {
    left: 0px;
}

.first-banner .swiper-button-prev,
.first-banner .swiper-button-next {
    transform: scale(1.5);
}

.advantages .advantages-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.advantages .advantage {
    background-color: white;
    color: var(--primary-color);
    box-shadow: rgba(23, 48, 135, 0.1) 0px 5px 20px;
    border-radius: 80px;
    font-size: 18px;
    padding: 10px 20px;
}

.advantages .advantage p {
    margin-bottom: 0px;
}

.products-list-box div {
    border-radius: 100px;
    color: white;
    padding: 5px 30px;
    background-color: rgb(2, 77, 161);
}

@media (max-width: 768px) {
    .products-list-box div {
        border-radius: 30px;
        padding: 5px 0px;
    }
}

.products-list-box h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 0px;
    color: var(--mainWhite);
}

.products-list-box img {
    width: 200px;
    height: 100%;
}

.products-list-box a {
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.2s ease-in-out;
}

.products-list-box a:hover {
    transform: translateY(-2px);
}

.wave {
    position: relative;
    display: flex;
    justify-content: center;
}

.wave svg {
    position: absolute;
    bottom: -116px;
}

.pagination-box {
    position: absolute;
    z-index: 5;
    top: 5px;
    margin-right: 5px;
}

.category-parent {
    margin-top: 10px;
}

.category-parent .category-box {
    z-index: 10;
}

.category {
    position: relative;
    bottom: 70px;
    z-index: 1;
}

.category-content {
    opacity: 0;
    max-height: 0px;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
}

.category-content.active {
    opacity: 1;
    max-height: 100%;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active h2 {
    color: white;
}

.category-card.active p {
    color: white;
}

.category-card {
    border-radius: 30px;
    display: flex;
    background-color: white;
    box-shadow: rgba(23, 48, 135, 0.2) 0px 5px 30px;
    padding: 35px 20px;
    margin: 0px 10px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .category-card {
        margin: 0px 10px 50px;
    }
}

@media (max-width: 992px) {
    .category-card {
        padding: 15px 20px;
    }
}

.category-card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
}

.category-card p {
    color: rgb(123, 125, 126);
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.float-button-box {
    position: relative;
    display: flex;
    justify-content: center;
    transition: 0.2s;
}

.float-button {
    position: absolute;
    top: 10px;
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 25px;
    transition: 0.2s;
}

.category-card:hover {
    transition: 0.2s;
    background-color: var(--primary-color);
}

.category-card:hover h2,
.category-card:hover p {
    color: rgb(255, 255, 255);
}

.category-card:hover .float-button {
    background-color: white;
}

.category-card .float-button svg {
    transition: 0.2s;
    rotate: 45deg;
}

.category-card:hover .float-button svg {
    transition: 0.5s;
}

.category-card:hover .float-button svg path {
    stroke: var(--secondary-color);
}

@media (min-width: 992px) and (max-width: 1200px) {
    .category {
        margin: 0px;
        bottom: 0px;
        z-index: 1;
    }

    .category-card h2 {
        font-size: 1rem;
    }

    .space-box {
        display: none;
    }
}

@media (max-width: 992px) {
    .wave svg {
        display: none;
    }

    .category-parent {
        position: unset;
    }

    .category {
        bottom: 0px;
        gap: 20px;
    }

    .category-icon svg {
        height: 100%;
        width: 100%;
    }

    .category-card h2 {
        font-size: 0.8rem !important;
    }

    .category-card p {
        font-size: 0.4rem !important;
    }

    .float-button {
        top: 0px;
    }
}

.products-box {
    background-color: rgb(214, 223, 255);
    padding: 150px 0px 30px;
    margin-top: -95px;
    position: relative;
    margin-bottom: 50px;
}

.product-card {
    border-radius: 30px;
    display: flex;
    background-color: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 14px;
}

.product-card img {
    border-radius: 22px;
    height: 250px;
}

.product-card .primary-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: none;
}

.content-product {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-product h3 {
    font-weight: 800;
    font-size: 1.4rem;
    color: rgb(104, 104, 104);
}

.content-product p {
    font-weight: 600;
    font-size: 0.8rem;
    color: rgb(170, 168, 168);
    margin-bottom: 0;
}

.products-box .action-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.products-box .action-product .product-btn {
    background-color: rgb(214, 223, 255);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px;
    width: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-box .action-product .product-btn svg {
    width: 50%;
}

@media (min-width: 768px) and (max-width: 992px) {
    .products-box .action-product .product-btn svg {
        width: 30%;
    }
}

@media (max-width: 576px) {
    .products-box .action-product {
        gap: 2px;
    }
}

@media (max-width: 450px) {
    .products-box .action-product .product-btn svg {
        width: 30%;
    }
}

.more-product {
    display: flex;
    justify-content: center;
    transform: translateY(30px);
}

.more-product-button {
    background-color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.3s ease-in-out;
}

.more-product-button:hover {
    transform: translateY(-6px);
    box-shadow: rgba(118, 69, 62, 0.4) 0px 5px 20px;
    color: white;
}

@media (min-width: 1200px) and (max-width: 1300px) {
    .primary-btn {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .product-card {
        border-radius: 15px;
        padding: 10px;
        gap: 5px;
    }

    .content-product h3 {
        font-size: 0.8rem;
    }

    .content-product p {
        font-size: 0.6rem;
    }
}

.main-banner img {
    border-radius: 30px;
    height: 400px;
}

@media (max-width: 768px) {
    .main-banner img {
        height: 200px;
    }
}

.articles-section {
    background-color: var(--color-three);
}

.articles .article-card {
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 4px;
    padding: 15px 15px 35px;
    margin: 20px 0px 0px;
    border-radius: 30px;
    text-align: justify;
    transition: 0.3s ease-in-out;
}

.articles .article-card:hover {
    box-shadow: rgba(23, 48, 135, 0.2) 0px 20px 30px;
}

@media (max-width: 576px) {
    .articles .article-card {
        margin: 20px 0px;
    }
}

.articles .article-card img {
    height: 300px;
}

@media (max-width: 768px) {
    .articles .article-card img {
        height: 250px;
    }
}

.articles .article-card .caption-box {
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100px;
}

.articles .action-box svg {
    transition: 0.2s ease-in-out;
}

.articles .action-box svg:hover {
    scale: 1.1;
}

.article-card img {
    border-radius: 24px;
}

.articles .article-card h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
}

.articles .article-card h4:hover {
    cursor: pointer;
}

@media (max-width: 1400px) {
    .articles .article-card h4 {
        font-size: 0.8rem;
    }
}

.articles .article-card p,
.articles .article-card li {
    color: var(--color-text);
    font-size: 10px;
    line-height: 25px;
    margin-block: 0px;
}

.articles .article-card li {
    color: var(--primary-color);
    display: inline;
    list-style-type: disc;
}

.articles .more-content {
    background-color: var(--primary-color);
    color: white;
    padding: 35px 30px;
    margin: 20px 0px 0px;
    border-radius: 30px;
    text-align: justify;
    transition: 0.3s ease-in-out;
}

.articles .more-content h3 {
    font-size: 35px;
    font-weight: 900;
}

.articles .more-content a {
    background-color: white;
    color: var(--color-text);
    font-size: 20px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    width: 100%;
    transition: 0.3s ease-in-out;
}

.articles .more-content a:hover {
    box-shadow: gray 0px 10px 50px 10px;
    transform: translateY(-6px);
}

.information-btn {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    padding: 3px 20px;
    transition: 0.3s ease-in-out;
}

.information-btn:hover,
.articles .article-btn:hover {
    cursor: pointer;
}

.articles .article-btn {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    border-radius: 50px;
    padding: 10px 35px;
    transition: 0.3s ease-in-out;
    bottom: -30px;
}

.articles .swiper {
    padding: 1rem 2rem 5rem;
}

.features .text-box {
    width: 35%;
}

.features .text-box h1 {
    font-size: 50px;
    font-weight: bold;
    color: var(--primary-color);
}

.features .text-box h3 {
    font-size: 38px;
    font-weight: 500;
    color: rgb(172, 191, 255);
}

.features .category-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 65%;
}

.features .category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
    transition: 0.2s;
}

.features .category-box:hover {
    transform: translateY(-8px);
    box-shadow: rgba(211, 211, 211, 0.4) 0px 13px 20px;
}

.features .category-title {
    margin-top: 20px;
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1rem;
}

@media (max-width: 1200px) {
    .features {
        gap: 20px;
    }

    .features .text-box {
        width: 100%;
    }

    .features .text-box h1 {
        font-size: 38px;
    }

    .features .text-box h3 {
        font-size: 28px;
    }

    .features .category-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .features .category-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features .category-title {
        font-size: 0.7rem;
    }
}