/* ==============================
   Home Banner
================================= */

.home-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #fff;
    overflow: hidden;
}

.home-banner-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.home-banner-carousel:not(.owl-loaded) {
    display: block;
}

.home-banner-carousel:not(.owl-loaded) .home-banner-item {
    display: none;
}

.home-banner-carousel:not(.owl-loaded) .home-banner-item:first-child {
    display: block;
}

.home-banner .owl-stage-outer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.home-banner .owl-stage {
    width: auto;
}

.home-banner .owl-item {
    min-height: 1px;
}

.home-banner-item {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    background: none;
    overflow: hidden;
}

.home-banner-link {
    width: 100%;
    max-width: 100%;
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-banner-picture {
    width: 100%;
    max-width: 100%;
    display: block;
    line-height: 0;
}

.home-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
    object-fit: initial;
}

/* Owl dots */

.home-banner .owl-dots {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.home-banner .owl-dot {
    width: 32px;
    height: 5px;
    margin: 0;
    padding: 0;
    display: block;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.home-banner .owl-dot.active {
    width: 62px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    ) !important;
}


/* =========================================================
   Home Common Sections
========================================================= */

.home-section-head {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-section-head span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #168a3a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.home-section-head h2 {
    margin: 0 0 14px;
    color: #14284b;
    font-size: 36px;
    line-height: 1.28;
    font-weight: 800;
}

.home-section-head p {
    margin: 0;
    color: #5b6472;
    font-size: 16px;
    line-height: 1.75;
}

.home-section-head-flex {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    text-align: left;
}

.home-section-head-flex > div {
    max-width: 760px;
}

.home-section-more {
    min-height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(55, 179, 74, 0.22);
    border-radius: 999px;
    color: #168a3a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(16, 36, 58, 0.05);
    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.home-section-more:hover {
    background: linear-gradient(
        135deg,
        #37b34a 0%,
        #109bd7 82%
    );
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 32px rgba(55, 179, 74, 0.22);
}


/* =========================================================
   Product Categories
========================================================= */

.home-product-category {
    padding: 68px 0 76px;
    background: #f7fbf8;
}

.home-product-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-product-category-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 36, 58, 0.05);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-product-category-item:hover {
    border-color: rgba(16, 155, 215, 0.36);
    box-shadow: 0 18px 42px rgba(16, 155, 215, 0.14);
    transform: translateY(-6px);
}

.home-product-category-img {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef8f1;
    overflow: hidden;
}

.home-product-category-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    );
}

.home-product-category-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-product-category-item:hover .home-product-category-img img {
    transform: scale(1.06);
}

.home-product-category-info {
    flex: 1;
    padding: 22px 21px 24px;
    display: flex;
    flex-direction: column;
}

.home-product-category-info h3 {
    margin: 0 0 11px;
    color: #14284b;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.home-product-category-info p {
    margin: 0 0 20px;
    display: -webkit-box;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-category-info strong {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #168a3a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
}

.home-product-category-info strong i {
    color: #109bd7;
    transition: transform 0.25s ease;
}

.home-product-category-item:hover .home-product-category-info strong i {
    transform: translateX(5px);
}


/* =========================================================
   More Products
========================================================= */

.home-product-category-more {
    position: relative;
    min-height: 170px;
    margin-top: 24px;
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(16, 155, 215, 0.15) 0,
            rgba(16, 155, 215, 0) 190px
        ),
        linear-gradient(
            135deg,
            rgba(55, 179, 74, 0.08),
            rgba(16, 155, 215, 0.08)
        ),
        #fff;
    border: 1px solid #e7f2ee;
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(16, 36, 58, 0.06);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-product-category-more::after {
    content: "";
    position: absolute;
    right: 36px;
    bottom: 0;
    left: 36px;
    height: 5px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    );
    border-radius: 8px 8px 0 0;
}

.home-product-category-more:hover {
    border-color: rgba(16, 155, 215, 0.36);
    box-shadow: 0 20px 44px rgba(16, 155, 215, 0.14);
    transform: translateY(-5px);
}

.home-product-category-more-info {
    max-width: 820px;
}

.home-product-category-more-info > span {
    margin-bottom: 9px;
    display: inline-flex;
    color: #168a3a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-product-category-more-info h3 {
    margin: 0 0 10px;
    color: #14284b;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 800;
}

.home-product-category-more-info p {
    margin: 0;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.7;
}

.home-product-category-more > strong {
    flex: 0 0 auto;
    min-width: 148px;
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(
        135deg,
        #37b34a 0%,
        #109bd7 82%
    );
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(55, 179, 74, 0.22);
}

.home-product-category-more > strong i {
    transition: transform 0.25s ease;
}

.home-product-category-more:hover > strong i {
    transform: translateX(5px);
}


/* =========================================================
   Latest Products
========================================================= */

.home-latest-products {
    padding: 78px 0;
    background: #fff;
}

.home-product-slider {
    position: relative;
    width: 100%;
}

.home-product-viewport {
    width: 100%;
    overflow: hidden;
}

.home-product-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.home-latest-product-item {
    flex: 0 0 auto;
    display: block;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 36, 58, 0.05);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-latest-product-item:hover {
    border-color: rgba(16, 155, 215, 0.36);
    box-shadow: 0 18px 42px rgba(16, 155, 215, 0.14);
    transform: translateY(-5px);
}

.home-latest-product-img {
    position: relative;
    width: 100%;
    height: 245px;
    background: #f7fbf8;
    overflow: hidden;
}

.home-latest-product-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    );
}

.home-latest-product-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-latest-product-item:hover .home-latest-product-img img {
    transform: scale(1.06);
}

.home-latest-product-info {
    padding: 22px 22px 24px;
}

.home-latest-product-info h3 {
    margin: 0 0 12px;
    display: -webkit-box;
    color: #14284b;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-latest-product-info p {
    margin: 0;
    display: -webkit-box;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    color: #168a3a;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(16, 36, 58, 0.16);
    transition:
        color 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;
}

.home-product-arrow i {
    font-size: 28px;
    line-height: 48px;
}

.home-product-arrow:hover {
    background: linear-gradient(
        135deg,
        #37b34a 0%,
        #109bd7 82%
    );
    color: #fff;
}

.home-product-arrow.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.home-product-prev {
    left: -24px;
}

.home-product-next {
    right: -24px;
}


/* =========================================================
   Applications
========================================================= */

.home-applications {
    padding: 78px 0;
    background: linear-gradient(
        135deg,
        rgba(55, 179, 74, 0.08),
        rgba(16, 155, 215, 0.08)
    );
}

.home-application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-application-item {
    display: block;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 36, 58, 0.05);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-application-item:hover {
    border-color: rgba(16, 155, 215, 0.36);
    box-shadow: 0 18px 42px rgba(16, 155, 215, 0.14);
    transform: translateY(-6px);
}

.home-application-img {
    position: relative;
    width: 100%;
    height: 245px;
    background: #f7fbf8;
    overflow: hidden;
}

.home-application-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    );
}

.home-application-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-application-item:hover .home-application-img img {
    transform: scale(1.06);
}

.home-application-info {
    padding: 24px 24px 26px;
}

.home-application-info h3 {
    margin: 0 0 12px;
    color: #14284b;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.home-application-info p {
    margin: 0;
    display: -webkit-box;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   Why Choose Us
========================================================= */

.home-why {
    padding: 78px 0;
    background: #fff;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home-why-item {
    position: relative;
    padding: 34px 26px 32px;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 36, 58, 0.05);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-why-item::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 0;
    left: 26px;
    height: 4px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    );
    border-radius: 6px 6px 0 0;
}

.home-why-item:hover {
    border-color: rgba(16, 155, 215, 0.36);
    box-shadow: 0 18px 42px rgba(16, 155, 215, 0.14);
    transform: translateY(-6px);
}

.home-why-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
    padding: 14px;
    background: linear-gradient(
        135deg,
        rgba(55, 179, 74, 0.12),
        rgba(16, 155, 215, 0.12)
    );
    border-radius: 22px;
    box-sizing: border-box;
}

.home-why-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.home-why-item h3 {
    margin: 0 0 12px;
    color: #14284b;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.home-why-item p {
    margin: 0;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   Latest News
========================================================= */

.home-latest-news {
    padding: 78px 0 88px;
    background: #f7fbf8;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home-news-item {
    display: block;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 36, 58, 0.05);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-news-item:hover {
    border-color: rgba(16, 155, 215, 0.36);
    box-shadow: 0 18px 42px rgba(16, 155, 215, 0.14);
    transform: translateY(-6px);
}

.home-news-img {
    position: relative;
    width: 100%;
    height: 215px;
    background: #f7fbf8;
    overflow: hidden;
}

.home-news-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #37b34a 0%,
        #109bd7 72%,
        #f6bd16 100%
    );
}

.home-news-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-news-item:hover .home-news-img img {
    transform: scale(1.06);
}

.home-news-info {
    padding: 20px 20px 22px;
}

.home-news-info > span {
    margin-bottom: 9px;
    display: block;
    color: #168a3a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.home-news-info h3 {
    margin: 0 0 10px;
    display: -webkit-box;
    color: #14284b;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-info p {
    margin: 0;
    display: -webkit-box;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   Responsive
========================================================= */

@media screen and (max-width: 1200px) {
    .home-product-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-category-img {
        height: 300px;
    }

    .home-application-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-why-grid,
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-product-prev {
        left: 8px;
    }

    .home-product-next {
        right: 8px;
    }
}


/* ==============================
   Mobile
================================= */

@media screen and (max-width: 768px) {
    .home-banner {
        margin-top: 0;
    }

    .home-banner-carousel,
    .home-banner-item,
    .home-banner-link,
    .home-banner-picture {
        width: 100%;
        max-width: 100%;
    }

    .home-banner-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .home-banner .owl-dots {
        bottom: 14px;
        gap: 8px;
    }

    .home-banner .owl-dot {
        width: 22px;
        height: 4px;
    }

    .home-banner .owl-dot.active {
        width: 44px;
    }

    .home-product-category,
    .home-latest-products,
    .home-applications,
    .home-why,
    .home-latest-news {
        padding: 46px 0;
    }

    .home-section-head,
    .home-section-head-flex {
        max-width: none;
        margin-bottom: 24px;
        display: block;
        text-align: left;
    }

    .home-section-head h2 {
        font-size: 28px;
        line-height: 1.32;
    }

    .home-section-head p {
        font-size: 15px;
        line-height: 1.7;
    }

    .home-section-more {
        margin-top: 18px;
    }

    .home-product-category-grid,
    .home-application-grid,
    .home-why-grid,
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-application-img,
    .home-latest-product-img {
        height: 220px;
    }

    .home-news-img {
        height: 210px;
    }

    .home-application-info,
    .home-latest-product-info,
    .home-news-info {
        padding: 18px;
    }

    .home-product-category-info h3,
    .home-application-info h3 {
        font-size: 20px;
    }

    .home-product-arrow {
        width: 42px;
        height: 42px;
        margin-top: -21px;
    }

    .home-product-arrow i {
        font-size: 24px;
        line-height: 42px;
    }

    .home-product-prev {
        left: 6px;
    }

    .home-product-next {
        right: 6px;
    }

    .home-why-item {
        padding: 28px 22px;
    }

    .home-product-category-item {
        border-radius: 20px;
    }

    .home-product-category-img {
        height: 240px;
    }

    .home-product-category-info {
        padding: 19px 18px 22px;
    }

    .home-product-category-info h3 {
        font-size: 20px;
    }

    .home-product-category-info p {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .home-product-category-more {
        min-height: 0;
        margin-top: 16px;
        padding: 24px 20px 28px;
        display: block;
        border-radius: 20px;
    }

    .home-product-category-more::after {
        right: 20px;
        left: 20px;
    }

    .home-product-category-more-info h3 {
        font-size: 22px;
    }

    .home-product-category-more-info p {
        font-size: 14px;
    }

    .home-product-category-more > strong {
        width: fit-content;
        min-width: 138px;
        min-height: 44px;
        margin-top: 20px;
        padding: 0 18px;
    }
}