.capacity-content {
    background-color: #f2f2f2;
    padding-bottom: 50px;
}

/* Tab bar */
.capacity-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    padding: 20px;
}
.capacity-list .item {
    position: relative;
    background-color: #fff;
    padding: 20px 15px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.2s;
}
.capacity-list .item .bottom {
    height: 150px;
}
.capacity-list .item .bottom .txt {
    font-size: 24px;
    color: #313131;
    font-weight: 600;
}
.capacity-list .item .icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 170px;
    z-index: 0;
    opacity: 0.15;
}
.capacity-list .item.active,
.capacity-list .item:hover {
    border-bottom: 4px #00a79d solid;
    color: #00a79d;
}
.capacity-list .item.active .txt,
.capacity-list .item:hover .txt {
    color: #00a79d;
}
.capacity-list .item.active::after,
.capacity-list .item:hover::after {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    width: 25px;
    height: 10px;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background-color: #00a79d;
}

/* Watermark title */
.capacity-tit {
    position: relative;
    font-size: 150px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    transform: translateY(80px);
    user-select: none;
}
.capacity-tit .tit-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 36px;
    color: #313131;
}

/* Tab panels */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* Common section text */
.tab-panel .txt-info {
    margin: 0 auto;
    max-width: calc(100% - 400px);
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    text-align: center;
    padding: 20px 0;
}
.tab-panel .txt-info p {
    margin-bottom: 12px;
}

/* Swiper carousel */
.capacity-swiper {
    background-color: #fff;
    margin-top: 30px;
    padding: 30px 0;
    overflow: hidden;
}
.capacity-swiper .swiper-slide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.capacity-swiper .swiper-slide-item img {
    margin-bottom: 16px;
    height: 380px;
    width: 100%;
    object-fit: cover;
}
.capacity-swiper .swiper-slide-item .caption {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
}
.swiper-pagination-bullet-active {
    background: #00a79d !important;
}

/* Testing (section 1) */
.section-testing .subsection-block {
    margin-top: 30px;
    padding: 40px 80px;
    background-color: #fff;
}
.section-testing .subsection-block h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}
.section-testing .subsection-block .sub-body {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}
.section-testing .subsection-block .sub-image {
    max-width: 100%;
    margin: 20px auto;
    display: block;
}
.section-testing .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}
.section-testing .gallery-grid .gallery-item {
    width: 45%;
    text-align: center;
}
.section-testing .gallery-grid .gallery-item img {
    max-width: 100%;
}
.section-testing .gallery-grid .gallery-item .caption {
    margin: 15px 0;
    font-size: 16px;
}

/* Experimental (section 2) */
.section-experimental .hero-row {
    display: flex;
    flex-wrap: wrap;
}
.section-experimental .hero-row .hero-img {
    width: 50%;
    object-fit: cover;
}
.section-experimental .hero-row .hero-text {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 30px;
    font-size: 22px;
    color: #313131;
}
.section-experimental .sub-images {
    display: flex;
    flex-wrap: wrap;
}
.section-experimental .sub-images .sub-img-item {
    width: 50%;
    padding: 5vw;
    text-align: center;
}
.section-experimental .sub-images .sub-img-item img {
    max-width: 100%;
}
.section-experimental .sub-images .sub-img-item .caption {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
}

/* Materials testing (section 3) */
.section-materials .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    margin-top: 40px;
}
.section-materials .gallery-grid .gallery-item {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-materials .gallery-grid .gallery-item img {
    max-width: 100%;
}
.section-materials .gallery-grid .gallery-item .caption {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 18px;
    color: #212121;
}

/* Achievements (section 4) */
.section-achievements .fluid {
    padding: 0 20px;
}
.section-achievements .fluid ul {
    list-style-type: disc !important;
    padding-left: 40px;
}
.section-achievements .hero-bottom {
    margin-top: 30px;
    text-align: center;
}
.section-achievements .hero-bottom img {
    max-width: 100%;
}
.coverflow-swiper {
    margin-top: 56px;
    padding-bottom: 36px;
    background: linear-gradient(to bottom, #f2f2f2, #fdfdfd);
}
.coverflow-swiper .swiper-slide {
    text-align: center;
}
.coverflow-swiper .swiper-slide img {
    max-width: 100%;
    object-fit: cover;
}

/* Automation (section 5) */
.section-automation {
    margin: 0 5vw;
    overflow: hidden;
}
.section-automation .video-list {
    margin-top: 36px;
}
.section-automation .video-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #fff;
    margin-bottom: 36px;
}
.section-automation .video-row:hover {
    border: 2px #00a79d solid;
}
.section-automation .video-row .row-left {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    height: 350px;
}
.section-automation .video-row .row-left .img {
    width: 60%;
    overflow: hidden;
}
.section-automation .video-row .row-left .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-automation .video-row .row-left .row-center {
    padding-left: 30px;
    color: #313131;
}
.section-automation .video-row .row-left .row-center .tit {
    position: relative;
    font-size: 20px;
    border-bottom: 2px #f2f2f2 solid;
    padding: 20px 0 20px 20px;
}
.section-automation .video-row .row-left .row-center .tit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 15px;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
    background-color: #007bff;
}
.section-automation .video-row video {
    height: 350px;
    max-width: 40%;
}

/* ODM/OEM (section 6) */
.section-odm .fluid img {
    margin-top: 40px;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .capacity-list {
        grid-template-columns: repeat(5, 1fr);
    }
    .capacity-list .item .bottom {
        height: 100px;
    }
    .capacity-list .item .bottom .txt {
        font-size: 22px;
        font-weight: 500;
    }
    .section-testing .subsection-block {
        padding: 20px 30px;
    }
    .tab-panel .txt-info {
        max-width: calc(100% - 200px);
    }
}

@media (max-width: 1024px) {
    .capacity-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .capacity-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .capacity-tit {
        font-size: 90px;
    }
    .capacity-tit .tit-txt {
        font-size: 24px;
    }
    .capacity-list .item {
        padding: 10px 6px;
    }
    .capacity-list .item .bottom {
        height: 60px;
    }
    .capacity-list .item .icon {
        width: 70px;
    }
    .capacity-list .item .bottom .txt {
        font-size: 15px;
    }
    .tab-panel .txt-info {
        max-width: calc(100% - 50px);
        font-size: 16px;
    }
    .section-experimental .hero-row .hero-img,
    .section-experimental .hero-row .hero-text {
        width: 100%;
    }
    .section-experimental .sub-images .sub-img-item {
        width: 100%;
    }
    .section-testing .gallery-grid .gallery-item {
        width: 100%;
    }
    .section-materials .gallery-grid .gallery-item {
        width: 100%;
    }
    .capacity-swiper .swiper-slide-item img {
        height: 250px;
    }
    .section-automation .video-row video {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .section-automation .video-row video {
        height: 280px;
    }
    .section-automation .video-row .row-left {
        height: 300px;
    }
    .section-automation .video-row .row-left .img {
        width: 100%;
    }
}
