/* =========================================================
   CoreIPC Factory Page
   File: coreipc-factory.css
   ========================================================= */

/* -----------------------------
   Page reset / scope
   ----------------------------- */
.coreipc-factory-page,
.coreipc-factory-page * {
    box-sizing: border-box;
}

.coreipc-factory-page {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
    color: #172033;
    font-family: inherit;
}

.coreipc-factory-page img {
    display: block;
    max-width: 100%;
}

.factory-wrap {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

.factory-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 48px 0;
}

.coreipc-factory-page .factory-section-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.coreipc-factory-page .factory-section-label > span {
    display: inline !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    text-align: left !important;
    transform: none !important;
}

.coreipc-factory-page .factory-section-label .factory-section-number {
    color: #0f6fe8 !important;
    font-size: 29px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.coreipc-factory-page .factory-section-label > span:last-child {
    color: #3f4a5a !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
}

/* -----------------------------
   HERO
   ----------------------------- */
.factory-hero {
    position: relative;
    width: 100vw;
    min-height: 320px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #0e315e;
    color: #fff;
}





.factory-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,37,76,.93) 0%, rgba(7,37,76,.76) 36%, rgba(7,37,76,.22) 70%, rgba(7,37,76,.08) 100%);
}

.factory-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 54px;
    padding-bottom: 50px;
}

.factory-breadcrumb {
    margin-bottom: 22px;
    color: rgba(255,255,255,.83);
    font-size: 13px;
}

.factory-breadcrumb span {
    margin: 0 8px;
    opacity: .7;
}

.factory-hero h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 800;
}

.factory-hero h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
}

.factory-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 15px;
    line-height: 1.7;
}

/* -----------------------------
   01 Factory Overview
   ----------------------------- */
.factory-overview {
    background: #fff;
}

.factory-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: 44px;
    align-items: center;
}

.factory-overview-content {
    min-width: 0;
}

.factory-overview-content h2 {
    margin: 0 0 18px;
    color: #10233f;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.factory-overview-content > p {
    max-width: 570px;
    margin: 0 0 28px;
    color: #5d6878;
    font-size: 14px;
    line-height: 1.75;
}

.factory-overview-image {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 330px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: #f2f5f8;
}

.factory-overview-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 330px;
    max-width: none !important;
    object-fit: cover !important;
}

.factory-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

.factory-stat {
    min-height: 104px;
    padding: 18px 10px 14px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15,35,65,.045);
}

.factory-stat::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.factory-stat:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='18' r='8'/%3E%3Cpath d='M18 26l-3 14 9-5 9 5-3-14'/%3E%3Cpath d='M21 18l2 2 4-5'/%3E%3C/svg%3E");
}

.factory-stat:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17' cy='17' r='5'/%3E%3Ccircle cx='31' cy='17' r='5'/%3E%3Ccircle cx='24' cy='28' r='5'/%3E%3Cpath d='M7 40c1-6 5-9 10-9M41 40c-1-6-5-9-10-9M15 40c1-5 4-8 9-8s8 3 9 8'/%3E%3C/svg%3E");
}

.factory-stat:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 39V18l10 5V13l10 5V9l16 9v21z'/%3E%3Cpath d='M13 39v-8h8v8M30 24h5M30 31h5'/%3E%3C/svg%3E");
}

.factory-stat:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='17'/%3E%3Cpath d='M7 24h34M24 7c5 5 8 10 8 17s-3 12-8 17M24 7c-5 5-8 10-8 17s3 12 8 17'/%3E%3C/svg%3E");
}

.factory-stat strong {
    display: block;
    margin-bottom: 4px;
    color: #10233f;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
}

.factory-stat span {
    display: block;
    color: #667181;
    font-size: 10.5px;
    line-height: 1.35;
}

/* -----------------------------
   02 Production Process
   ----------------------------- */
.factory-process {
    background: #f7f9fc;
}

.factory-process-grid {
    display: grid;
    grid-template-columns:
        minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr)
        24px
        minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);
    align-items: start;
    gap: 0;
}

.factory-process-step {
    min-width: 0;
    text-align: center;
}

.factory-process-step::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(15,35,65,.05);
}

.factory-process-step:nth-of-type(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 15l16-8 16 8-16 8z'/%3E%3Cpath d='M8 15v18l16 8 16-8V15M24 23v18'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='13' width='22' height='22' rx='2'/%3E%3Cpath d='M18 6v7M26 6v7M34 6v7M18 35v7M26 35v7M34 35v7M6 18h7M6 26h7M6 34h7M35 18h7M35 26h7M35 34h7'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='27' height='27' rx='2'/%3E%3Ccircle cx='31' cy='31' r='8'/%3E%3Cpath d='M37 37l6 6M14 15h14M14 22h10'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 10l8 8-6 6-8-8M34 10l-8 8 6 6 8-8M14 38l8-8-6-6-8 8M34 38l-8-8 6-6 8 8'/%3E%3Ccircle cx='24' cy='24' r='4'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='11' y='8' width='26' height='34' rx='3'/%3E%3Cpath d='M17 17l4 4 8-8M17 30h14'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(6)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7v22a7 7 0 1 0 6 0V7a3 3 0 0 0-6 0z'/%3E%3Cpath d='M24 17v16'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(7)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 5l15 6v11c0 10-6 17-15 21C15 39 9 32 9 22V11z'/%3E%3Cpath d='M17 23l5 5 10-11'/%3E%3C/svg%3E");
}

.factory-process-step:nth-of-type(8)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 31h25V16H6zM31 23h7l5 6v8H31z'/%3E%3Ccircle cx='14' cy='38' r='4'/%3E%3Ccircle cx='36' cy='38' r='4'/%3E%3C/svg%3E");
}

.factory-process-step b {
    display: block;
    margin-bottom: 3px;
    color: #10233f;
    font-size: 14px;
}

.factory-process-step strong {
    display: block;
    min-height: 36px;
    margin: 0 auto 5px;
    color: #172033;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 700;
}

.factory-process-step span {
    display: block;
    color: #6b7584;
    font-size: 10.5px;
    line-height: 1.45;
}

.factory-process-arrow {
    padding-top: 22px;
    color: #0f6fe8;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}

/* -----------------------------
   03 Manufacturing Gallery
   ----------------------------- */
.factory-gallery {
    background: #fff;
}

.factory-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 16px;
}

.factory-gallery figure {
    margin: 0;
}

.factory-gallery figure img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    background: #eef2f6;
}

.factory-gallery figcaption {
    padding-top: 9px;
    color: #172033;
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}

/* -----------------------------
   04 Video + 05 Testing
   ----------------------------- */
.factory-video-testing {
    background: #f7f9fc;
}

.factory-video-testing-grid {
    display: grid;
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    gap: 36px;
    align-items: stretch;
}

.factory-video-column,
.factory-testing-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.factory-video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: #10233f;
    box-shadow: 0 5px 18px rgba(15,35,65,.08);
}

.factory-video-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.factory-video-desc {
    margin: auto 0 0;
    padding-top: 13px;
    color: #667181;
    font-size: 12.5px;
    line-height: 1.65;
}








/* -----------------------------
   05 Testing & Quality Control
   Matched to approved reference
   ----------------------------- */
.factory-testing-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 10px;
}

.factory-test-card {
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(15,35,65,.035);
}

.factory-test-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: #eef2f6;
}

.factory-test-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.factory-test-info {
    min-height: 142px;
    padding: 9px 9px 12px;
    text-align: center;
    background: #fff;
}

/* Local testing icons: fixed-size pseudo elements, isolated from theme img rules */
.factory-test-info::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.factory-test-card:nth-child(1) .factory-test-info::before {
    background-image: url("/wp-content/themes/Generic/images/factory-icons/function-test.svg");
}

.factory-test-card:nth-child(2) .factory-test-info::before {
    background-image: url("/wp-content/themes/Generic/images/factory-icons/burn-in-test.svg");
}

.factory-test-card:nth-child(3) .factory-test-info::before {
    background-image: url("/wp-content/themes/Generic/images/factory-icons/temperature-test.svg");
}

.factory-test-card:nth-child(4) .factory-test-info::before {
    background-image: url("/wp-content/themes/Generic/images/factory-icons/vibration-test.svg");
}

.factory-test-card:nth-child(5) .factory-test-info::before {
    background-image: url("/wp-content/themes/Generic/images/factory-icons/esd-test.svg");
}

.factory-test-card:nth-child(6) .factory-test-info::before {
    background-image: url("/wp-content/themes/Generic/images/factory-icons/final-inspection.svg");
}




.factory-test-info h3 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
}

.factory-test-info p {
    margin: 0;
    color: #687382;
    font-size: 9.7px;
    line-height: 1.5;
    text-align: center;
}

/* iPad / tablet */
@media  (max-width:1100px) {
    .factory-testing-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 14px;
    }

    .factory-test-info {
        min-height: 132px;
    }

    .factory-test-info h3 {
        font-size: 12.5px;
    }

    .factory-test-info p {
        font-size: 10.3px;
    }
}

/* Mobile */
@media  (max-width:767px) {
    .factory-testing-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 12px;
    }

    .factory-test-info {
        min-height: 128px;
        padding: 9px 8px 11px;
    }

    
    
    .factory-test-info h3 {
        font-size: 12px;
    }

    .factory-test-info p {
        font-size: 10px;
    }
}

@media  (max-width:480px) {
    .factory-testing-grid {
        grid-template-columns: 1fr;
    }

    .factory-test-photo-wrap {
        aspect-ratio: 16 / 9;
    }

    .factory-test-info {
        min-height: auto;
        padding: 10px 14px 14px;
    }
}

/* -----------------------------
   06 OEM / ODM
   ----------------------------- */
.factory-oem {
    background: #fff;
}

.factory-oem-grid {
    display: grid;
    grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
    gap: 38px;
    align-items: start;
}

.factory-oem-intro p {
    margin: 0 0 20px;
    color: #5f6977;
    font-size: 13px;
    line-height: 1.7;
}

.factory-oem-capabilities {
    min-width: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
}

.factory-oem-capabilities > div {
    min-height: 102px;
    padding: 18px 15px;
    text-align: center;
    border-left: 1px solid #e6eaf0;
}

.factory-oem-capabilities > div:first-child {
    border-left: 0;
}

.factory-oem-capabilities > div::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 9px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.factory-oem-capabilities > div:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 7l4 3 5-1 2 5 5 2-1 5 3 4-3 4 1 5-5 2-2 5-5-1-4 3-4-3-5 1-2-5-5-2 1-5-3-4 3-4-1-5 5-2 2-5 5 1z'/%3E%3Ccircle cx='24' cy='25' r='6'/%3E%3C/svg%3E");
}

.factory-oem-capabilities > div:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 8v10M19 13h10'/%3E%3Cpath d='M15 24a9 9 0 1 0 18 0c0-6-4-10-9-10s-9 4-9 10z'/%3E%3Cpath d='M17 36h14'/%3E%3C/svg%3E");
}

.factory-oem-capabilities > div:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16l16-8 16 8-16 8z'/%3E%3Cpath d='M8 16v16l16 8 16-8V16M24 24v16'/%3E%3Cpath d='M18 12l16 8'/%3E%3C/svg%3E");
}

.factory-oem-capabilities > div:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 34h32M10 30l7-7 6 4 8-10 7 5'/%3E%3Cpath d='M33 17h5v5'/%3E%3C/svg%3E");
}

.factory-oem-capabilities > div:nth-child(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14c5-5 15-5 20 0s5 15 0 20-15 5-20 0-5-15 0-20z'/%3E%3Cpath d='M8 24h8M32 24h8M24 8v8M24 32v8'/%3E%3Cpath d='M18 24h12'/%3E%3C/svg%3E");
}

.factory-oem-capabilities strong {
    display: block;
    margin-bottom: 5px;
    color: #172033;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 800;
}

.factory-oem-capabilities span {
    display: block;
    color: #6a7483;
    font-size: 10.5px;
    line-height: 1.45;
}

/* -----------------------------
   Buttons
   ----------------------------- */
.factory-btn {
    display: inline-flex;
    min-width: 128px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    transition: .2s ease;
}

.factory-btn-primary {
    color: #fff !important;
    background: #0f6fe8;
    border: 1px solid #0f6fe8;
}

.factory-btn-primary:hover {
    color: #fff !important;
    background: #095fc9;
    border-color: #095fc9;
}

.factory-btn-light {
    color: #1555a5 !important;
    background: #fff;
    border: 1px solid #dce5ef;
}

.factory-btn-light:hover {
    color: #0f6fe8 !important;
    background: #f4f8fd;
}

/* -----------------------------
   CTA
   ----------------------------- */













/* =========================================================
   Large Desktop / 4K
   Factory Overview: stable top alignment
   ========================================================= */
@media  (min-width: 1400px) {
    .factory-overview-grid {
        grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
        gap: 48px;
        align-items: start;
    }

    .factory-overview-content {
        min-width: 0;
    }

    .factory-overview-content h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .factory-overview-image {
        min-height: 0;
        aspect-ratio: 2.15 / 1;
        margin-top: 0;
    }

    .factory-overview-image img {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 0 !important;
        object-fit: cover !important;
    }
}

/* =========================================================
   Tablet / iPad Pro
   ========================================================= */
@media  (max-width: 1100px) {

    .factory-section {
        padding: 44px 0;
    }

    .factory-overview-grid {
        grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
        gap: 28px;
    }

    .factory-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .factory-process-grid {
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap: 24px 18px;
    }

    .factory-process-arrow {
        display: none;
    }

    .factory-gallery-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 16px;
    }

    .factory-video-testing-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    
    .factory-oem-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* =========================================================
   iPad Mini / Air
   ========================================================= */
@media  (min-width: 768px) and (max-width: 900px) {

    .factory-hero {
        min-height: 300px;
    }

    .factory-overview-grid {
        grid-template-columns: 1fr;
    }

    .factory-overview-content > p {
        max-width: none;
    }

    .factory-overview-image {
        min-height: 360px;
    }

    .factory-process-grid {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

/* =========================================================
   Mobile
   ========================================================= */
@media  (max-width: 767px) {

    .factory-wrap {
        width: 92%;
    }

    .factory-section {
        padding: 36px 0;
    }

    .coreipc-factory-page .factory-section-label {
        margin-bottom: 16px !important;
    }

    .coreipc-factory-page .factory-section-label .factory-section-number {
        font-size: 25px !important;
    }

    .coreipc-factory-page .factory-section-label > span:last-child {
        font-size: 12px !important;
    }

    .factory-hero {
        min-height: 360px;
    }

    .factory-hero-overlay {
        background: rgba(7,37,76,.78);
    }

    .factory-hero-inner {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .factory-breadcrumb {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .factory-hero h1 {
        font-size: 38px;
    }

    .factory-hero h2 {
        font-size: 18px;
    }

    .factory-hero p {
        max-width: 100%;
        font-size: 13.5px;
        line-height: 1.65;
    }

    .factory-overview-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .factory-overview-content h2 {
        font-size: 25px;
    }

    .factory-overview-content > p {
        max-width: none;
        font-size: 13.5px;
        line-height: 1.68;
    }

    .factory-overview-image {
        min-height: 0;
    }

    .factory-overview-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .factory-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

    .factory-process-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 28px 18px;
    }

    .factory-process-step strong {
        min-height: 0;
        font-size: 13px;
    }

    .factory-process-step span {
        font-size: 11px;
    }

    .factory-gallery-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 15px 12px;
    }

    
    
    
    .factory-oem-capabilities {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 0;
    }

    .factory-oem-capabilities > div {
        border-left: 0;
        border-top: 1px solid #e6eaf0;
    }

    .factory-oem-capabilities > div:nth-child(odd) {
        border-right: 1px solid #e6eaf0;
    }

    

    

    

    

    
}

/* =========================================================
   Small Mobile
   ========================================================= */
@media  (max-width: 480px) {

    .factory-wrap {
        width: 94%;
    }

    .factory-gallery-grid,
    
    .factory-gallery figure img {
        aspect-ratio: 16 / 9;
    }

    .factory-process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px 12px;
    }

    .factory-stats {
        grid-template-columns: 1fr 1fr;
    }

    .factory-oem-capabilities {
        grid-template-columns: 1fr;
    }

    .factory-oem-capabilities > div,
    .factory-oem-capabilities > div:nth-child(odd) {
        border-right: 0;
    }

    

    .factory-btn {
        width: 100%;
        min-width: 0;
    }
}


.factory-process-grid > .factory-process-step:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 15l16-8 16 8-16 8z'/%3E%3Cpath d='M8 15v18l16 8 16-8V15M24 23v18'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='13' width='22' height='22' rx='2'/%3E%3Cpath d='M18 6v7M26 6v7M34 6v7M18 35v7M26 35v7M34 35v7M6 18h7M6 26h7M6 34h7M35 18h7M35 26h7M35 34h7'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='27' height='27' rx='2'/%3E%3Ccircle cx='31' cy='31' r='8'/%3E%3Cpath d='M37 37l6 6M14 15h14M14 22h10'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(7)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 10l8 8-6 6-8-8M34 10l-8 8 6 6 8-8M14 38l8-8-6-6-8 8M34 38l-8-8 6-6 8 8'/%3E%3Ccircle cx='24' cy='24' r='4'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(9)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='11' y='8' width='26' height='34' rx='3'/%3E%3Cpath d='M17 17l4 4 8-8M17 30h14'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(11)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7v22a7 7 0 1 0 6 0V7a3 3 0 0 0-6 0z'/%3E%3Cpath d='M24 17v16'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(13)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 5l15 6v11c0 10-6 17-15 21C15 39 9 32 9 22V11z'/%3E%3Cpath d='M17 23l5 5 10-11'/%3E%3C/svg%3E");
}
.factory-process-grid > .factory-process-step:nth-child(15)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230f6fe8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 31h25V16H6zM31 23h7l5 6v8H31z'/%3E%3Ccircle cx='14' cy='38' r='4'/%3E%3Ccircle cx='36' cy='38' r='4'/%3E%3C/svg%3E");
}


/* =========================================================
   04 / 05 stacked layout
   ========================================================= */

.coreipc-factory-page .factory-video-section,
.coreipc-factory-page .factory-testing-section {
    width: 100%;
}

.coreipc-factory-page .factory-video-section {
    background: #f7f8fa;
}

.coreipc-factory-page .factory-testing-section {
    background: #f7f8fa;
    padding-top: 0;
}

.coreipc-factory-page .factory-video-section .factory-wrap,
.coreipc-factory-page .factory-testing-section .factory-wrap {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

.coreipc-factory-page .factory-video-box {
    width: 100%;
    max-width: 960px;
    margin: 26px auto 0;
    aspect-ratio: 16 / 9;
}

.coreipc-factory-page .factory-video-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.coreipc-factory-page .factory-video-desc {
    max-width: 960px;
    margin: 14px auto 0;
}

.coreipc-factory-page .factory-testing-grid {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    box-sizing: border-box;
}

@media  (max-width: 1100px) {
    .coreipc-factory-page .factory-testing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media  (max-width: 767px) {
    .coreipc-factory-page .factory-testing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media  (max-width: 520px) {
    .coreipc-factory-page .factory-testing-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   04 FACTORY VIDEO - clean 4-poster grid
   No iframe placeholders / no 404 content
   ========================================================= */

.coreipc-factory-page .factory-video-section {
    width: 100%;
    background: #f7f8fa;
}

.coreipc-factory-page .factory-video-section .factory-wrap {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

.coreipc-factory-page .factory-video-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 26px !important;
    box-sizing: border-box !important;
}

.coreipc-factory-page .factory-video-card {
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

.coreipc-factory-page .factory-video-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #0d1726;
}

.coreipc-factory-page .factory-video-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coreipc-factory-page .factory-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 112, 243, 0.92);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding-left: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
}

.coreipc-factory-page .factory-video-card h3 {
    margin: 14px 0 6px;
    font-size: 18px;
    line-height: 1.35;
    color: #10213d;
}

.coreipc-factory-page .factory-video-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #667085;
}

@media  (max-width: 767px) {
    .coreipc-factory-page .factory-video-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .coreipc-factory-page .factory-video-play {
        width: 56px;
        height: 56px;
        font-size: 21px;
    }
}


/* =========================================================
   V25: tighter section rhythm + stronger section headings
   ========================================================= */

.coreipc-factory-page .factory-video-section {
    padding-top: 44px;
    padding-bottom: 44px;
}

.coreipc-factory-page .factory-testing-section {
    padding-top: 40px;
    padding-bottom: 44px;
}

.coreipc-factory-page .factory-oem {
    padding-top: 46px;
    padding-bottom: 46px;
}

@media  (max-width: 1100px) {
    .coreipc-factory-page .factory-video-section,
    .coreipc-factory-page .factory-testing-section,
    .coreipc-factory-page .factory-oem {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media  (max-width: 767px) {
    .coreipc-factory-page .factory-video-section,
    .coreipc-factory-page .factory-testing-section,
    .coreipc-factory-page .factory-oem {
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

/* =========================================================
   CTA — CLEAN SINGLE RULE SET
   No duplicate responsive overrides
   ========================================================= */

.factory-cta {
    position: relative;
    width: 100vw;
    min-height: 190px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    color: #fff;
    background: #0b315f;
}

.factory-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(6,41,82,.96) 0%,
        rgba(6,41,82,.86) 40%,
        rgba(6,41,82,.28) 72%,
        rgba(6,41,82,.12) 100%
    );
}

.factory-cta-inner {
    position: relative;
    z-index: 2;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.factory-cta h2 {
    max-width: 580px;
    margin: 0 0 9px;
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
}

.factory-cta p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 13.5px;
}

.factory-cta-actions {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

/* Tablet */
@media (max-width: 1100px) {
    .factory-cta-inner {
        min-height: 190px;
        gap: 28px;
    }

    .factory-cta h2 {
        font-size: 25px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .factory-cta {
        min-height: 0;
        padding: 28px 0 32px;
    }

    .factory-cta-inner {
        min-height: 0;
        display: block;
    }

    .factory-cta h2 {
        max-width: none;
        margin-bottom: 10px;
        font-size: 24px;
        line-height: 1.28;
    }

    .factory-cta p {
        margin-bottom: 22px;
        font-size: 13.5px;
        line-height: 1.55;
    }

    .factory-cta-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .factory-cta-actions .factory-btn {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        box-sizing: border-box;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .factory-cta {
        padding: 26px 0 30px;
    }

    .factory-cta h2 {
        font-size: 23px;
    }

    .factory-cta-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Future YouTube embeds inside current poster containers */
.factory-video-poster iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================================
   FINAL 06 OEM / ODM TABLET RULE
   768px–1100px: always 5 columns in one row
   ========================================================= */
@media (min-width: 768px) and (max-width: 1100px) {
    .coreipc-factory-page .factory-oem-capabilities {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .coreipc-factory-page .factory-oem-capabilities > div {
        grid-column: auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        min-height: 116px !important;
        margin: 0 !important;
        padding: 18px 8px !important;
        border: 0 !important;
        border-left: 1px solid #e6eaf0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .coreipc-factory-page .factory-oem-capabilities > div:first-child {
        border-left: 0 !important;
    }
}
