@import url("iconfont.css");

/* home banner */
.home-banner {
    background-color: #f5f5f5;
}

.home-banner .pcimg {
    display: block
}

.home-banner .pcimg img {
    display: block
}

.home-banner .mobimg {
    display: none
}

.home-banner .mobimg img {
    display: none
}

.home-banner .swiper-slide img {
    width: 100%
}

.home-banner .swiper-pagination-bullet {
    background-color: #CCC;
    border-radius: 999px;
    height: 4px;
    opacity: 1;
    overflow: hidden;
    position: relative;
    width: 32px
}

.home-banner .swiper-pagination-bullet:after {
    background-color: var(--color);
    border-radius: 999px;
    content: "";
    display: block;
    height: 100%;
    width: 0
}

.home-banner .swiper-pagination-bullet-active.cur::after {
    transition: width 6s linear;
    width: 100%
}

.home-banner .swiper-pagination-bullet-active {
    background-color: #cb451b
}

.home-banner .banner-button-next,
.home-banner .banner-button-prev {
    position: absolute;
    left: 20px;
    top: 45%;
    width: 50px;
    height: 50px;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, .4);
    border-radius: 50%;
    padding: 10px;
    transition: all .1s linear
}

.home-banner .banner-button-next:hover,
.home-banner .banner-button-prev:hover {
    background: var(--color)
}

.home-banner .banner-button-next em,
.home-banner .banner-button-prev em {
    font-size: 22px;
    color: #FFF
}

.home-banner .banner-button-next {
    left: auto;
    right: 20px
}

.home-banner .banner-animote {
    position: absolute;
    bottom: 40%;
    left: 10%;
    color: #FFF;
    opacity: 0;
    max-width: 1000px
}

.home-banner .banner-animote .title {
    font-size: 42px;
    font-weight: 700
}

.home-banner .banner-animote .text {
    font-size: 20px
}

.home-banner .swiper-slide-active .banner-animote {
    animation: bannerani .5s forwards;
    animation-delay: .7s
}

@keyframes bannerani {
    0% {
        opacity: 0;
        transform: translateX(40px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

.index>main>section {
    position: relative
}

/* home choose */
.home-choose {
    padding: 6% 0 6%;
    z-index: 1;
    background: #f8f9fa;
    /* Light Grey */
}

/* Removed ::before pseudo element to clean up design */
.home-choose::before {
    display: none;
}

.home-choose .home-des,
.home-choose .home-title {
    color: #333;
    /* Changed to dark for light background */
}

.choose-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 60px
}

.choose-ul .choose-item {
    width: 23%;
    background: #FFFf;
    box-shadow: 0 6px 13px 0 rgba(19, 20, 21, .08);
    padding: 50px 30px;
    text-align: center;
    transition: all .2s linear
}

.choose-ul .choose-item:hover {
    transform: translateY(-5px)
}

.choose-ul .choose-item:hover .icon {
    transform: rotateY(360deg)
}

.choose-ul .choose-item .title {
    color: var(--fontcolortitle);
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 20px
}

.choose-ul .choose-item img {
    height: 60px;
    transition: all .3s linear
}

.choose-ul .choose-item .icon {
    transition: all .3s linear;
    line-height: 1
}

.choose-ul .choose-item em {
    font-size: 60px;
    color: var(--color)
}

.choose-ul .choose-item .info {
    margin-top: 20px;
    color: var(--fontcolorintro)
}

/* home about */
.home-about {
    padding: 6% 0 8%;
    background: #ffffff;
    /* White */
}

.home-about .about-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center
}

.home-about .about-wrap>div {
    width: 50%
}

.home-about .about-img {
    position: relative;
    width: 50%;
    padding: 10px 3% 0 10px
}

.home-about .about-img:hover img {
    transform: translate(-10px, -10px)
}

.home-about .about-img>img {
    width: 100%;
    transition: all .4s linear
}

.home-about .about-img .about-icon {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color);
    color: #FFF;
    width: 220px;
    height: 200px;
    text-align: center;
    transition: all .1s linear
}

.home-about .about-img .about-icon:hover {
    opacity: .96
}

.home-about .about-img .about-icon img {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%)
}

.home-about .about-img .about-icon span {
    display: block;
    font-size: 30px;
    font-weight: 500;
    padding-top: 20%
}

.home-about .about-img .about-icon p {
    padding-top: 20%;
    font-size: 18px
}

.home-about .about-info {
    padding-top: 30px
}

.home-about .about-info .home-des,
.home-about .about-info .home-title {
    text-align: left
}

.home-about .about-info .about-content {
    color: var(--fontcolorintro);
    margin-top: 30px
}

.home-about .about-info .about-content p {
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
    line-clamp: 12;
    overflow: hidden
}

.home-about .color {
    font-weight: var(--fontweight);
    font-size: 18px;
    color: #080808;
    display: flex;
    align-items: center
}

.home-about .color span {
    color: var(--color);
    font-size: 24px;
    padding-right: 15px
}

.home-about .about-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 13px 0 rgba(19, 20, 21, .15);
    padding: 2% 6%;
    margin-top: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -70px;
    max-width: 1600px;
    width: 100%;
    z-index: 9;
    background: #FFF
}

.home-about .about-contact p {
    font-weight: var(--fontweight);
    font-size: 22px
}

/* home project */
.home-project {
    background: #FFFbfa;
    padding: 8% 15px 4%
}

.home-project .swiper {
    margin-top: 60px;
    padding-bottom: 100px
}

.home-project .swiper .project-button-next,
.home-project .swiper .project-button-prev {
    position: absolute;
    bottom: 0;
    left: calc(50% - 50px);
    background: var(--color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all .1s linear
}

.home-project .swiper .project-button-next.swiper-button-disabled,
.home-project .swiper .project-button-prev.swiper-button-disabled {
    background: #bababa
}

.home-project .swiper .project-button-next em,
.home-project .swiper .project-button-prev em {
    font-size: 20px
}

.home-project .swiper .project-button-next:hover,
.home-project .swiper .project-button-prev:hover {
    opacity: .9
}

.home-project .swiper .swiper-slide {
    overflow: hidden;
    max-height: 308px
}

.home-project .swiper .swiper-slide img {
    transition: all .2s linear;
    width: 100%
}

.home-project .swiper .swiper-slide img:hover {
    transform: scale(1.1)
}

.home-project .swiper .project-button-next {
    left: auto;
    right: calc(50% - 50px)
}

/* home product */
.home-product {
    padding: 6% 0 6%;
    background: #ffffff;
    /* White */
}

.index-pro {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px
}

.index-pro .pro-item {
    width: 25%;
    border: 1px solid #e5e5e5;
    border-left: none;
    overflow: hidden;
    text-align: center;
    transition: all .1s linear;
    display: flex;
    flex-direction: column;
    position: relative
}

.index-pro .pro-item:nth-child(4n+1) {
    border-left: 1px solid #e5e5e5
}

.index-pro .pro-item:nth-child(n+5) {
    border-top: none
}

.index-pro .pro-item:hover {
    outline-color: var(--color);
    z-index: 9
}

.index-pro .pro-item:hover .pro-img img {
    transform: translate(-50%, -50%) scale(1.05)
}

.index-pro .pro-item:hover .pro-info .pro-title a {
    color: var(--color)
}

.index-pro .pro-item:hover .pro-info .pro-btn em {
    position: static;
    opacity: 1
}

.index-pro .pro-item .pro-img a {
    display: block;
    overflow: hidden;
    position: relative;
    height: 0;
    padding-bottom: 100%
}

.index-pro .pro-item .pro-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all .1s linear
}

.index-pro .pro-item .pro-info {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.index-pro .pro-item .pro-title a {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--fontcolortitle);
    line-height: 20px;
    text-transform: capitalize
}

.index-pro .pro-item .pro-btn {
    color: var(--color);
    font-size: 16px;
    padding-left: 15px;
    transition: all .1s linear
}

.index-pro .pro-item .pro-btn em {
    font-style: normal;
    opacity: 0;
    transition: all .1s linear
}

/* home activity */
.home-activity {
    z-index: 1
}

.home-activity::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, var(--fontcolortitle) 0, rgba(0, 0, 0, 0) 100%);
    z-index: -1
}

.home-activity .l-wrap {
    display: flex;
    justify-content: flex-end
}

.activity-wrap {
    width: 50%;
    color: #FFF;
    padding: 6% 0
}

.activity-wrap .text {
    font-size: 18px
}

.activity-wrap .title {
    font-size: 48px;
    font-weight: var(--fontweight);
    line-height: 1.2;
    margin: 10px 0 20px
}

.activity-wrap .content {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px
}

.activity-wrap .img {
    display: flex;
    margin-bottom: 30px
}

.activity-wrap .img img {
    height: 200px;
    margin-right: 15px;
    transition: all .2s linear
}

.activity-wrap .img img:hover {
    transform: translateY(-5px)
}

/* home news - REDESIGNED FEATURED LAYOUT */
.home-news {
    padding: 6% 0 6%;
    background: #fbfbfb;
    /* Very Light Grey */
}

.news-featured-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px
}

.news-featured {
    width: calc(55% - 15px);
    position: relative;
    background: #FFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s ease
}

.news-featured:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    transform: translateY(-5px)
}

.news-featured .news-featured-img {
    display: block;
    height: 320px;
    overflow: hidden
}

.news-featured .news-featured-img::after {
    padding-bottom: 0
}

.news-featured .news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease
}

.news-featured:hover .news-featured-img img {
    transform: scale(1.05)
}

.news-featured-content {
    padding: 30px
}

.news-featured-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color);
    color: #FFF;
    width: 70px;
    height: 70px;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 8px;
    text-align: center
}

.news-featured-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1
}

.news-featured-date .month {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 4px
}

.news-featured-title {
    margin: 0 0 15px
}

.news-featured-title a {
    color: var(--fontcolortitle);
    font-size: 24px;
    font-weight: 700;
    transition: color .2s;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden
}

.news-featured-title a:hover {
    color: var(--color)
}

.news-featured-excerpt {
    color: var(--fontcolorintro);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden
}

.news-featured-btn {
    display: inline-flex;
    align-items: center;
    color: var(--color);
    font-weight: 600;
    transition: all .2s
}

.news-featured-btn:hover {
    gap: 8px
}

.news-featured-btn em {
    font-style: normal;
    margin-left: 6px;
    transition: margin .2s
}

.news-sidebar {
    width: calc(45% - 15px);
    display: flex;
    flex-direction: column;
    gap: 20px
}

.news-sidebar-item {
    display: flex;
    gap: 20px;
    background: #FFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s ease;
    padding: 15px
}

.news-sidebar-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transform: translateX(5px)
}

.news-sidebar-item:hover .news-sidebar-title a {
    color: var(--color)
}

.news-sidebar-img {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden
}

.news-sidebar-img::after {
    display: none
}

.news-sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.news-sidebar-item:hover .news-sidebar-img img {
    transform: scale(1.05)
}

.news-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.news-sidebar-date {
    color: var(--color);
    font-size: 13px;
    margin-bottom: 6px
}

.news-sidebar-title {
    margin: 0 0 8px
}

.news-sidebar-title a {
    color: var(--fontcolortitle);
    font-size: 16px;
    font-weight: 600;
    transition: color .2s
}

.news-sidebar-btn {
    color: var(--color);
    font-size: 14px;
    font-weight: 500
}

/* home advantages */
.home-advantages {
    padding: 4% 0 4%;
    background: #f8f9fa
}

.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px
}

.advantage-card {
    width: calc(25% - 23px);
    background: #FFF;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    position: relative;
    overflow: hidden
}

.advantage-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color);
    transform: scaleX(0);
    transition: transform .3s ease
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12)
}

.advantage-card:hover::before {
    transform: scaleX(1)
}

.advantage-card:hover .advantage-icon {
    transform: rotateY(360deg)
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color) 0%, #e66b4a 100%);
    border-radius: 50%;
    transition: transform .6s ease
}

.advantage-icon em,
.advantage-icon i {
    font-size: 36px;
    color: #FFF
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fontcolortitle);
    margin-bottom: 15px
}

.advantage-desc {
    color: var(--fontcolorintro);
    line-height: 1.7;
    font-size: 15px
}

/* Responsive - All Sections */
@media (max-width:1280px) {
    .choose-ul .choose-item .title {
        font-size: 20px
    }

    .home-activity::before {
        background: linear-gradient(90deg, var(--fontcolortitle) 0, rgba(0, 0, 0, .45) 100%)
    }

    .home-activity .activity-wrap {
        width: 100%
    }

    .home-activity .activity-wrap .title {
        font-size: 30px
    }

    /* New Styles */
    .advantage-card {
        width: calc(25% - 23px);
        padding: 30px 20px
    }

    .news-featured .news-featured-img {
        height: 280px
    }

    .news-featured-title a {
        font-size: 20px
    }
}

@media (max-width:1024px) {
    .choose-ul .choose-item {
        width: 24%
    }

    .home-banner .banner-animote {
        left: 0;
        width: 100%;
        padding: 0 10%
    }

    .home-banner .banner-animote .title {
        font-size: 30px
    }

    .home-banner .banner-animote .text {
        font-size: 16px
    }

    .home-about {
        padding-bottom: 0
    }

    .home-about .about-contact {
        position: static;
        transform: none;
        margin-top: 70px
    }

    /* New Styles */
    .advantage-card {
        width: calc(50% - 15px)
    }

    .news-featured-layout {
        flex-direction: column
    }

    .news-featured,
    .news-sidebar {
        width: 100%
    }

    .news-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px
    }

    .news-sidebar-item {
        width: calc(50% - 8px)
    }
}

@media (max-width:768px) {
    .home-banner .pcimg {
        display: block
    }

    .home-banner .pcimg img {
        display: block
    }

    .home-banner .mobimg {
        display: block
    }

    .home-banner .mobimg img {
        display: block
    }

    .home-banner .banner-button-next,
    .home-banner .banner-button-prev {
        top: 36%;
        display: none
    }

    .home-banner .banner-animote {
        bottom: 32%
    }

    .home-banner .banner-animote .title {
        font-size: 16px
    }

    .home-banner .banner-animote .text {
        font-size: 12px
    }

    .home-about .about-img:hover>img {
        transform: none
    }

    .home-about .about-info .about-content {
        margin-top: 10px
    }

    .choose-ul .choose-item:hover .icon {
        transform: none
    }

    .choose-ul {
        margin-top: 30px
    }

    .choose-ul .choose-item {
        width: 48%;
        margin-bottom: 20px;
        padding: 20px 10px
    }

    .choose-ul .choose-item .title {
        margin-bottom: 10px;
        font-size: 18px
    }

    .choose-ul .choose-item em {
        font-size: 40px
    }

    .choose-ul .choose-item .info {
        margin-top: 15px;
        font-size: 14px
    }

    .home-about .about-wrap>div {
        width: 100%
    }

    .home-about {
        padding-bottom: 3%
    }

    .home-about .about-contact {
        margin-top: 30px;
        display: none
    }

    .home-about .about-contact .home-more {
        margin-top: 20px
    }

    .home-about .about-img .about-icon {
        width: 140px;
        height: 110px
    }

    .home-about .about-img .about-icon span {
        font-size: 18px;
        padding-top: 10%
    }

    .home-about .about-img .about-icon p {
        padding-top: 10%
    }

    .home-project .swiper {
        margin-top: 40px
    }

    .home-project .swiper .project-button-next,
    .home-project .swiper .project-button-prev {
        bottom: 20px
    }

    .home-activity .activity-wrap .img {
        justify-content: space-between;
        align-items: flex-start
    }

    .home-activity .activity-wrap .img img {
        margin: 0;
        height: auto
    }

    .home-activity .activity-wrap .title {
        font-size: 26px
    }

    .home-activity .activity-wrap .title br {
        display: none
    }

    .index-pro .pro-item {
        width: 50%;
        border: 1px solid #e5e5e5 !important
    }

    .index-pro .pro-item:nth-child(2n+1) {
        border-right: none !important
    }

    .index-pro .pro-item:nth-child(n+3) {
        border-top: none !important
    }

    .index-pro .pro-item .pro-info {
        font-weight: 400
    }

    /* New Styles */
    .advantage-card {
        width: 100%
    }

    .advantage-icon {
        width: 70px;
        height: 70px
    }

    .advantage-icon em,
    .advantage-icon i {
        font-size: 30px
    }

    .advantage-title {
        font-size: 18px
    }

    .news-featured .news-featured-img {
        height: 220px
    }

    .news-featured-content {
        padding: 20px
    }

    .news-featured-date {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px
    }

    .news-featured-date .day {
        font-size: 22px
    }

    .news-featured-date .month {
        font-size: 10px
    }

    .news-featured-title a {
        font-size: 18px
    }

    .news-sidebar-item {
        width: 100%;
        padding: 12px
    }

    .news-sidebar-img {
        width: 100px;
        height: 80px
    }

    .news-sidebar-title a {
        font-size: 14px
    }
}

@media(max-width:500px) {
    .home-project .swiper .swiper-slide {
        max-height: 172px
    }
}

/* Company Showcase */
.company-showcase {
    padding: 6% 0 8%;
    background: #f4f6f8;
    /* Soft Grey-Blue */
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.company-showcase .home-title {
    margin-bottom: 20px;
}

.company-showcase-slider {
    margin-top: 60px;
    padding: 20px 0 80px;
    /* Bottom padding to accommodate buttons */
    position: relative;
    overflow: visible;
    /* Allowing shadows to not be clipped if possible, though swiper usually clips */
}

/* Override swiper default overflow if needed for shadows, but main container has overflow hidden */
.company-showcase .swiper {
    overflow: visible;
}

.company-showcase {
    overflow: hidden;
    /* Keep section overflow hidden to avoid horiz scrollbar */
}

.company-showcase-slider .swiper-slide {
    width: auto;
    margin-right: 30px;
}

.company-showcase-img {
    height: 350px;
    width: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.company-showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.company-showcase-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.company-showcase-img:hover img {
    transform: scale(1.1);
}

/* Navigation Buttons */
.company-showcase-next,
.company-showcase-prev {
    position: absolute;
    bottom: 0px;
    left: calc(50% - 60px);
    background: var(--color);
    width: 50px;
    height: 50px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    /* Circular buttons */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-showcase-next {
    left: auto;
    right: calc(50% - 60px);
}

.company-showcase-next em,
.company-showcase-prev em {
    color: #FFF;
    font-size: 20px;
}

.company-showcase-next:hover,
.company-showcase-prev:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.company-showcase-next.swiper-button-disabled,
.company-showcase-prev.swiper-button-disabled {
    opacity: 0.5;
    cursor: auto;
    background: #ccc;
}

/* Mobile responsiveness */
@media(max-width: 768px) {
    .company-showcase-img {
        height: 250px;
        width: 300px;
    }
}