/* =======================
   TESTING SERVICE PAGE (EJS 매칭 + 반응형 통합)
   ======================= */

:root {
    --test-red: #e11d2e;
    --test-gray: #555;
    --test-black: #111;
}

/* ===== 배경 전체 래퍼 ===== */
.business-content-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}
.business-content-wrap .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.25;
    z-index: 0;
}

/* ===== 콘텐츠 전체 ===== */
.testing-service-content {
    width: min(1200px, 92%);
    margin: 0 auto;
    text-align: center;
    padding: clamp(4rem, 6vw, 6rem) 0 clamp(6rem, 8vw, 8rem);
    position: relative;
    z-index: 1;
    font-family: "Noto Sans KR", system-ui, sans-serif;
}

/* =======================
   상단 소개 (Intro)
   ======================= */
.business-intro .highlight {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}
.business-intro .content-sub {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--test-gray);
    margin-bottom: clamp(4rem, 6vw, 5rem);
    line-height: 1.7;
}

/* ===== ENGINEERING 타이틀 ===== */
.content-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--test-red);
    letter-spacing: 0.5px;
    margin-bottom: clamp(3rem, 5vw, 4rem);
    margin-top: 0;
}

/* =======================
   고객 맞춤형 서비스
   ======================= */
.testing-intro {
    margin-bottom: clamp(5rem, 8vw, 6rem);
}
.testing-title {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--test-black);
    margin-top: clamp(3rem, 6vw, 5rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}
.testing-sub {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--test-gray);
    line-height: 1.6;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

/* ===== 아이콘 4개 ===== */
.testing-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 2vw, 2rem);
    justify-items: center;
    align-items: start;
}
.icon-box {
    text-align: center;
    background: #fff;
    padding: clamp(1rem, 2vw, 1.2rem);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.icon-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}
.icon-box img {
    width: clamp(120px, 15vw, 200px);
    height: auto;
    margin-bottom: 1rem;
}
.icon-box p {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}
.icon-box span {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: #888;
}

/* =======================
   시험 서비스 | TEST SOLUTIONS
   ======================= */
.testing-section {
    margin-top: clamp(5rem, 8vw, 6rem);
}
.section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--test-black);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}
.section-sub {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: var(--test-gray);
    margin-bottom: clamp(4rem, 6vw, 5rem);
}

/* ===== 시험 블록 ===== */
.test-block {
    margin-bottom: clamp(6rem, 8vw, 8rem);
}
.test-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 3rem);
    flex-wrap: nowrap;
    margin-top: 5rem;
}
.test-top.reverse {
    flex-direction: row-reverse;
}
.test-left {
    flex: 1;
    text-align: center;
}
.test-left img {
    width: 100%;
    max-width: clamp(300px, 40vw, 480px);
    border: 1px solid #eee;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.test-left img:hover {
    transform: scale(1.02);
}
.test-right {
    flex: 1;
    text-align: center;
    display: grid;
    gap: clamp(0.8rem, 1.5vw, 1rem);
}
.test-right h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.test-right p,
.test-right span {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: #444;
    line-height: 1.6;
}
.test-right p span {
    font-weight: 700;
    color: #000;
}

/* ===== 그래프 ===== */
.test-graphs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(2rem, 4vw, 3rem);
    flex-wrap: nowrap;
    width: 45%;
    margin: 0 auto;
    margin-top: 1rem;
}

.test-graphs img {
    width: 100%;
    max-width: none;
    height: auto;
    flex: 1 1 auto;
    object-fit: contain;
}
/* =======================
   장비 스트립
   ======================= */
.equipment-strip {
    margin: clamp(3rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}
.equip-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: nowrap;
}
.equip-row img {
    height: clamp(90px, 12vw, 140px);
    max-width: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

/* =======================
   하단 문구
   ======================= */
.testing-footer {
    margin-top: clamp(6rem, 10vw, 8rem);
    text-align: center;
}
.testing-footer.compact h4 {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 800;
    color: #111;
    margin-bottom: 0.4rem;
}
.testing-footer.compact p {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: #666;
    margin-bottom: 0.8rem;
}
.testing-footer img {
    width: clamp(100px, 10vw, 120px);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .testing-icons {
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .test-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .test-right {
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .test-graphs {
        gap: 2rem;
    }

    .equip-row {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .testing-icons {
        gap: 1.5rem;
        grid-template-columns: 1fr 1fr;
    }

    .test-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .test-right {
        text-align: center !important;
        max-width: 90%;
        margin: 0 auto;
    }

    .test-left img {
        width: 90%;
        height: auto;
    }

    .test-graphs {
        align-items: center;
    }

    .test-graphs img {
        width: clamp(260px, 90vw, 480px);
        max-width: 100%;
    }

    .equip-row img {
        height: clamp(70px, 15vw, 100px);
    }

    .content-title {
        margin-top: clamp(2.5rem, 5vw, 3rem);
        margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
    }

    .testing-sub {
        margin-bottom: clamp(3rem, 5vw, 4rem);
    }
    .icon-box img {
        width: clamp(180px, 15vw, 200px);
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .testing-icons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: clamp(1rem, 3vw, 1.5rem);
        justify-items: center;
        align-items: center;
        width: 100%;
    }

    .icon-box {
        width: 100%;
        max-width: 300px;
    }

    .icon-box img {
        width: 80%;
        height: auto;
    }

    .test-left img {
        width: 90%;
        max-width: 320px;
    }

    .test-right h4 {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .test-right p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        text-align: left;
    }

    .test-graphs img {
        width: 90%;
    }

    .equip-row {
        align-items: center;
    }

    .equip-row img {
        height: clamp(60px, 15vw, 90px);
    }

    .content-title {
        margin-top: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .testing-sub {
        margin-bottom: clamp(2rem, 5vw, 3rem);
    }
}
