/* VELAXIZ v1.59.0 — Product thumb active state + About 11-module rebuild. */

/* Product Detail thumbnail state: use an explicit JS-synchronised active class so
 * the selected image remains obvious even when Slick's internal current class
 * changes during navigation. */
.single-product .prodeta-smimg-items .prodeta-smimg-cont {
    border: 2px solid #b8bec8;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.single-product .prodeta-smimg-items.is-active .prodeta-smimg-cont,
.single-product .prodeta-smimg-items[aria-current="true"] .prodeta-smimg-cont,
.single-product .prodeta-smimg-items.slick-current .prodeta-smimg-cont {
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(22,109,187,.28) !important;
    transform: translateY(-1px);
}
.single-product .prodeta-smimg-items.is-active .img_box,
.single-product .prodeta-smimg-items[aria-current="true"] .img_box {
    background: #f4f8fc;
}

/* About local nav: 11 modules remain one ordered navigation row on wide
 * screens, then become a smooth horizontal scroller before labels overlap. */
@media (min-width: 1281px) {
    .page-template-page-about .about-nav-list {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
    }
    .page-template-page-about .about-nav-item {
        flex: 0 1 auto;
        padding: 15px clamp(7px, .8vw, 16px);
        font-size: clamp(13px, .88vw, 17px);
        white-space: nowrap;
        text-align: center;
    }
}
@media (max-width: 1280px) {
    .page-template-page-about .about-nav-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .page-template-page-about .about-nav-list::-webkit-scrollbar { display:none; }
    .page-template-page-about .about-nav-item { flex:0 0 auto; white-space:nowrap; }
}

/* Common About section header used by Highlights / capabilities / gallery / video. */
.page-template-page-about .about-v159-section-header {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}
.page-template-page-about .about-v159-section-header .mod_subtitle,
.page-template-page-about .about-capability-grid-section .mod_subtitle,
.page-template-page-about .about-company-gallery-v159 .mod_subtitle {
    margin-top: 10px;
    color: #4b5563;
    line-height: 1.65;
}
.page-template-page-about .about-v159-section-header .mod_subtitle p,
.page-template-page-about .about-capability-grid-section .mod_subtitle p,
.page-template-page-about .about-company-gallery-v159 .mod_subtitle p { margin:0; }

/* 5. About Highlights — independent module. */
.page-template-page-about .about-highlights-v159 {
    padding: 72px 0;
    background: #f7f9fc;
}
.page-template-page-about .about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.page-template-page-about .about-highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 20px 22px;
    border: 1px solid #e4eaf1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20,49,78,.05);
}
.page-template-page-about .about-highlight-card .icons {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-template-page-about .about-highlight-card .icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.page-template-page-about .about-highlight-card .texts {
    color: #182235;
    font-weight: 600;
    line-height: 1.5;
}

/* 7 / 8 / 9. R&D, Manufacturing, Production: four columns. Eight items become
 * the requested two rows; the repeater remains unlimited in wp-admin. */
.page-template-page-about .about-capability-grid-section {
    padding: 76px 0;
    background: #fff;
}
.page-template-page-about .about-capability-grid-section:nth-of-type(even) {
    background: #f8fafc;
}
.page-template-page-about .about-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
}
.page-template-page-about .about-capability-card {
    min-width: 0;
    text-align: center;
}
.page-template-page-about .about-capability-card .img_box {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f5f7;
}
.page-template-page-about .about-capability-card .img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.page-template-page-about .about-capability-card:hover .img_box img { transform: scale(1.025); }
.page-template-page-about .about-capability-card .tits {
    margin-top: 10px;
    color: #111827;
    font-weight: 600;
    line-height: 1.4;
}
.page-template-page-about .about-capability-card .texts {
    margin-top: 6px;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}
.page-template-page-about .about-capability-card .texts p { margin:0; }

/* 10. Company Gallery — two columns; six images naturally render as 3 x 2. */
.page-template-page-about .about-company-gallery-v159 {
    padding: 78px 0;
    background: #f8fafc;
}
.page-template-page-about .about-company-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.page-template-page-about .about-company-gallery-item .img_box {
    width: 100%;
    aspect-ratio: 16 / 7.5;
    overflow: hidden;
    background: #eef1f4;
}
.page-template-page-about .about-company-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.page-template-page-about .about-company-gallery-item:hover img { transform: scale(1.02); }

/* 11. Customer Video — automatic Swiper with consistent brand-blue buttons. */
.page-template-page-about .about-customer-video-v159 {
    padding: 78px 0 90px;
    background: #fff;
}
.page-template-page-about .about-video-slider-shell {
    position: relative;
    padding: 0 58px;
}
.page-template-page-about .about-video-swiper { overflow: hidden; }
.page-template-page-about .about-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #07101f;
}
.page-template-page-about .about-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.page-template-page-about .about-video-title {
    margin-top: 12px;
    color: #111827;
    font-weight: 600;
    text-align: center;
}
.page-template-page-about .about-video-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22,109,187,.20);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.page-template-page-about .about-video-nav span {
    display: block;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-1px);
}
.page-template-page-about .about-video-prev { left: 0; }
.page-template-page-about .about-video-next { right: 0; }
.page-template-page-about .about-video-nav:hover,
.page-template-page-about .about-video-nav:focus-visible {
    background: #222;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    outline: none;
}
.page-template-page-about .about-video-nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 991px) {
    .page-template-page-about .about-highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-template-page-about .about-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-template-page-about .about-company-gallery-grid { grid-template-columns: 1fr; }
    .page-template-page-about .about-company-gallery-item .img_box { aspect-ratio: 16 / 9; }
    .page-template-page-about .about-video-slider-shell { padding: 0 50px; }
}

@media (max-width: 600px) {
    .page-template-page-about .about-highlights-grid,
    .page-template-page-about .about-capability-grid { grid-template-columns: 1fr; }
    .page-template-page-about .about-highlights-v159,
    .page-template-page-about .about-capability-grid-section,
    .page-template-page-about .about-company-gallery-v159,
    .page-template-page-about .about-customer-video-v159 { padding: 54px 0; }
    .page-template-page-about .about-video-slider-shell { padding: 0 42px; }
    .page-template-page-about .about-video-nav { width: 36px; height: 36px; margin-top:-18px; }
    .page-template-page-about .about-video-nav span { font-size:28px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-template-page-about .about-capability-card .img_box img,
    .page-template-page-about .about-company-gallery-item img,
    .page-template-page-about .about-video-nav,
    .single-product .prodeta-smimg-items .prodeta-smimg-cont { transition:none; }
}
.page-template-page-about .about-video-slider-shell.is-single-video { padding-left:0; padding-right:0; }
.page-template-page-about .about-video-slider-shell.is-single-video .about-video-nav { display:none; }
