/* 1. 서브 페이지 상단 비주얼 */
.sub-hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    /* 전문적인 이미지로 변경 */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/img/main_slide/pagetop.jpg") no-repeat center center/cover;
    color: #ffffff; /* var(--primary-color) */
    text-align: center;
    padding-top: 90px; /* 헤더 높이만큼 안쪽 여백 (absolute 헤더 때문) */
}
.sub-hero-content {
    position: relative;
    z-index: 2;
}
.sub-hero-content .sub-title {
    font-size: 18px;
    font-weight: 500;
    color: #cfb17e; /* var(--accent-color) */
    margin-bottom: 10px;
}
.sub-hero-content .page-title {
    font-size: 48px;
    font-weight: 800;
}

.sub-hero-content .page-titles {
    font-size: 34px;
    font-weight: 600;
}

.sub-hero-content .page-title span {
    background: linear-gradient(140deg, #e59f4a, #fdebc5, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    box-sizing: border-box;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .sub-hero-section {
        height: 300px;
        padding-top: 80px; /* 태블릿 헤더 높이 */
    }
    .sub-hero-content .page-title {
        font-size: 38px;
    }
        .sub-hero-content .page-titles {
        font-size: 28px;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .sub-hero-section {
        height: 250px;
        padding-top: 70px; /* 모바일 헤더 높이 */
    }
    .sub-hero-content .page-title {
        font-size: 30px;
    }
        .sub-hero-content .page-titles {
        font-size: 20px;
    }
    .sub-hero-content .sub-title {
        font-size: 16px;
    }
}

.sub-nav {
    position: sticky; /* 스크롤 시 상단에 고정 */
    top: 89px; /* 스크롤된 헤더 높이(90px) 바로 아래 */
    z-index: 800; /* 헤더(1000)보다 낮게 */
    background-color: #ffffff; /* var(--primary-color) */
    border-bottom: 1px solid #e0e0e0; /* var(--border-color) */
}
.header.scrolled + .sub-page-main .sub-nav {
    top: 89px; /* 스크롤된 헤더 높이 */
}
/* 수정: 원본 CSS는 스크롤 안됐을 때 top: 0 이지만,
   헤더 높이가 90px이므로 89px가 맞습니다. (스크롤 시 80px 헤더 기준 79px)
   스크롤 여부에 관계없이 헤더 높이 바로 아래에 붙어야 합니다.
*/
.header:not(.scrolled) + .sub-page-main .sub-nav {
    top: 89px; /* 기본 헤더 높이(90px) - 1px */
}
.sub-nav ul {
    display: flex;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}
.sub-nav li {
    flex-grow: 1;
    max-width: 200px; /* 탭 너비 제한 */
}
.sub-nav li a {
    display: block;
    padding: 20px 10px;
    font-size: 17px;
    font-weight: 500;
    color: #666;
    text-align: center;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px; /* active 테두리가 border-bottom과 겹치게 */
}
.sub-nav li a:hover {
    color: #333; /* var(--text-color-dark) */
}
.sub-nav li a.active {
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
    color: transparent;
    box-sizing: border-box;
    border-bottom: 2px solid #d8bc82;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .sub-nav {
        top: 79px; /* 태블릿 헤더 높이(80px) - 1px */
    }
    .header.scrolled + .sub-page-main .sub-nav {
        top: 79px;
    }
    .header:not(.scrolled) + .sub-page-main .sub-nav {
        top: 79px;
    }
    .sub-nav ul {
        padding: 0 30px;
    }
    .sub-nav li a {
        padding: 18px 5px;
        font-size: 16px;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .sub-nav {
        top: 69px; /* 모바일 헤더 높이(70px) - 1px */
        white-space: nowrap;
        overflow-x: auto; /* LNB 가로 스크롤 */
    }
    .header.scrolled + .sub-page-main .sub-nav {
        top: 69px;
    }
    .header:not(.scrolled) + .sub-page-main .sub-nav {
        top: 69px;
    }
    .sub-nav ul {
        justify-content: flex-start;
        width: auto;
        padding: 0 10px;
    }
    .sub-nav li {
        flex-grow: 0; /* 크기 고정 */
        flex-shrink: 0;
    }
    .sub-nav li a {
        padding: 15px 12px; /* LNB 링크 간격 조정 */
        font-size: 15px;
    }
}

/* 3. 서브 페이지 공통 콘텐츠 래퍼 */
.page-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 50px;
    box-sizing: border-box;
}
/* 4. 공통 섹션 스타일 */
.about-section {
    margin-bottom: 120px;
}
.about-section:last-child {
    margin-bottom: 0;
}
.about-section-title {
    position: relative;
    font-size: 36px;
    font-weight: 700;
    color: #222222; /* var(--secondary-color) */
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 15px;
}
.about-section-title::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 3px;
    /* 수정: 원본 CSS에 background-background 오타가 있었습니다.
          background: linear-gradient(...)가 맞습니다.
        */
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    content: "";
    transform: translateX(-50%);
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .page-content-wrapper {
        padding: 80px 30px;
    }
    .about-section {
        margin-bottom: 100px;
    }
    .about-section-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .page-content-wrapper {
        padding: 60px 20px;
    }
    .about-section {
        margin-bottom: 80px;
    }
    .about-section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }
}

.greeting-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}
.greeting-text {
    flex: 1;
}
.greeting-text .lead {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.6;
    color: #333; /* var(--text-color-dark) */
    margin-bottom: 30px;
}
.greeting-text .lead strong {
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
    color: transparent;
    box-sizing: border-box;
}
.greeting-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}
.greeting-signature {
    font-size: 20px;
    font-weight: 500;
    color: #222222; /* var(--secondary-color) */
    margin-top: 40px;
}
.greeting-signature span {
    font-weight: 700;
    margin-left: 10px;
}
.greeting-image {
    flex: 0 0 450px; /* 450px 고정 너비 */
    width: 450px;
    height: 550px;
    border-radius: 10px;
    overflow: hidden;
}
.greeting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .greeting-layout {
        flex-direction: column;
        text-align: center;
    }
    .greeting-image {
        flex: 0 0 auto; /* 고정너비 해제 */
        width: 100%;
        max-width: 500px; /* 최대 너비 */
        height: 500px;
        order: -1; /* 이미지를 위로 */
        margin-bottom: 0px;
    }
    .greeting-text .lead {
        font-size: 20px;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .greeting-image {
        height: 400px;
    }
    .greeting-text .lead {
        font-size: 18px;
    }
    .greeting-text p {
        font-size: 16px;
    }

    .greeting-signature {
        margin: 0;
        font-size: 16px;
    }
}

.ci-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}
.ci-image-wrapper {
    width: 500px;
    padding: 0px;
    background-color: #222222; /* var(--secondary-color) */ /* 로고 배경과 유사하게 */
    text-align: center;
}
.ci-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}
.ci-text-wrapper {
    flex: 1;
}
.ci-text-wrapper h4 {
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: transparent;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.ci-text-wrapper p {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .ci-layout {
        flex-direction: column;
        text-align: center;
    }
    .ci-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 450px;
        margin-bottom: 30px;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .ci-image-wrapper {
        width: 100%;
    }
    .ci-text-wrapper h4 {
        font-size: 20px;
    }
}

.core-values-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}
.value-item {
    padding: 40px 0px;
    border: 1px solid #e0e0e0; /* var(--border-color) */
    border-radius: 10px;
    background-color: #fcfcfc;
    text-align: center;
}
.value-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}
.value-item .icon-wrapper {
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 48px;
    color: transparent;
    box-sizing: border-box;
    margin-bottom: 25px;
}
.value-item .value-title {
    font-size: 22px;
    font-weight: 700;
    color: #222222; /* var(--secondary-color) */
    margin-bottom: 15px;
}
.value-item .value-description {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }
}

.service-process-section {
    width: calc(100% + 100px); /* 래퍼 패딩만큼 확장 */
    padding: 80px 50px;
    background-color: #f9f9f9;
    /* 참고: margin-left/right, width: calc(100% + ...) 는
          부모(.page-content-wrapper)의 padding(50px)을 무시하고
          브라우저 너비만큼 확장하기 위한 트릭입니다.
        */
    margin-left: -50px; /* 래퍼 패딩만큼 확장 */
    margin-right: -50px; /* 래퍼 패딩만큼 확장 */
}
.process-grid {
    display: grid;
    gap: 30px;
    max-width: 1280px; /* .page-content-wrapper와 동일하게 */
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
}
.process-step {
    position: relative;
    text-align: center;
}
/* 단계 사이 화살표 */
.process-step:not(:last-child)::after {
    position: absolute;
    top: 45px;
    right: -15px;
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: "Font Awesome 6 Free";
    font-size: 20px;
    font-weight: 900;
    color: transparent;
    content: "\f061"; /* fa-arrow-right */
    box-sizing: border-box;
    opacity: 0.5;
    transform: translateX(50%);
}
.process-step .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border: 2px solid #e0cca2;
    border-radius: 50%;
    background: linear-gradient(140deg, #e59f4a, #e0cca2, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: initial;
    font-size: 36px;
    color: transparent;
    box-sizing: border-box;
}

.process-step .icon-wrapper i {
    color: #fff;
}
.process-step .step-number {
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 16px;
    font-weight: 700;
    color: transparent;
    box-sizing: border-box;
}
.process-step .step-title {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 10px;
    margin-top: 20px;
}
.process-step .step-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .service-process-section {
        width: calc(100% + 60px);
        padding: 60px 30px;
        margin-left: -30px;
        margin-right: -30px;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 2열이므로 2번째, 4번째 화살표 제거 */
    .process-step:nth-child(2n)::after {
        display: none;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .service-process-section {
        width: calc(100% + 40px);
        padding: 50px 20px;
        margin-left: -20px;
        margin-right: -20px;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process-step::after {
        display: none; /* 모바일 세로 정렬 시 화살표 모두 제거 */
    }
    .process-step {
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px dashed #e0e0e0; /* var(--border-color) */
    }
    .process-step:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

.technology-section .tech-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}
/* 신규: 텍스트-이미지 교차 배치를 위한 REVERSE 스타일 */
.technology-section .tech-layout.alt-layout {
    flex-direction: row-reverse;
}
/* 신규: 섹션 구분을 위한 DIVIDER */
.tech-divider {
    height: 1px;
    margin: 60px 0;
    border: 0;
    background-color: #e0e0e0; /* var(--border-color) */
}
.technology-section .tech-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}
.technology-section .tech-image img {
    display: block;
    width: 100%;
    height: auto;
}
.technology-section .tech-content {
    flex: 1;
}
.technology-section .tech-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #222222; /* var(--secondary-color) */
    margin-bottom: 20px;
}
.technology-section .tech-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}
.technology-section .tech-content ul {
    padding-left: 0px;
}
.technology-section .tech-content li {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    list-style: none;
    padding-left: 30px;
    margin-bottom: 15px;
}
.technology-section .tech-content li::before {
    position: absolute;
    top: 2px;
    left: 0;
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: "Font Awesome 6 Free";
    font-size: 18px;
    font-weight: 900;
    color: transparent;
    content: "\f058"; /* fa-check-circle */
    box-sizing: border-box;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .technology-section .tech-layout {
        flex-direction: column;
    }
    /* (신규) alt-layout도 column으로 정렬 (순서 유지) */
    .technology-section .tech-layout.alt-layout {
        flex-direction: column;
    }
    .technology-section .tech-image {
        margin-bottom: 0px;
    }
}

.partners-grid {
    display: grid;
    gap: 30px;
    align-items: center;
    grid-template-columns: repeat(6, 1fr);
}
.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #e0e0e0; /* var(--border-color) */
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.partner-logo-item img {
    width: auto;
    max-width: 100%;
    max-height: 40px;
    transition: all 0.3s ease;
    opacity: 1;
}
.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .partners-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

.location-layout {
    display: grid;
    gap: 50px;
    align-items: center;
    grid-template-columns: 1fr 1.5fr;
}

.location-layout.log {
    margin-top: 60px;
}
.location-info ul {
    font-size: 20px;
    line-height: 2;
    color: #333;
}
.location-info li {
    display: flex;
    margin-bottom: 15px;
}
.location-info li .label {
    flex: 0 0 80px; /* 80px 고정 너비 */
    font-weight: 700;
    color: #222222; /* var(--secondary-color) */
}
.location-info li .data {
    flex: 1;
}
.location-info li .data strong {
    background: linear-gradient(140deg, #e59f4a, #d8bd84, #e59f4a);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
    color: transparent;
    box-sizing: border-box;
    margin-right: 10px;
}
.map-wrapper {
    width: 100%;
    height: 350px;
    border: 1px solid #e0e0e0; /* var(--border-color) */
    border-radius: 10px;
    overflow: hidden;
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .location-layout {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    .map-wrapper {
        height: 350px;
    }
}
/* 모바일 반응형 */
@media (max-width: 767px) {
    .location-info {
        order: 2;
    }
    .location-info ul {
        font-size: 15px;
    }
    .location-info li {
        gap: 5px;
        margin-bottom: 0px;
    }
    .location-info li .label {
        flex-basis: auto;
    }
    .map-wrapper {
        height: 300px;
    }
}


 .certs {
            padding: 60px 0;
            overflow: hidden;
            background-color: #ffffff;
            text-align: center;
            margin-bottom: 100px;
        }
        .certs .grid {
            display: grid;
            gap: 20px;
            grid-template-columns: repeat(4, 1fr);
            margin-top: 40px;

            /* 데스크톱에서 너무 넓어지지 않도록 최대 너비 및 가운데 정렬 추가 */
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }
        .certs .item {
            display: flex;
            gap: 10px;
            flex-direction: column;
            border-radius: 8px; /* 아이템 카드에 둥근 모서리 추가 */
            overflow: hidden; /* 이미지 래퍼의 둥근 모서리 적용을 위해 */
            background-color: #fff;
        }
        .certs .img-wrap {
            border: 1px solid #eeeeee;
            overflow: hidden;
            aspect-ratio: 3 / 4;
        }

        .certs .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease; /* 호버 시 확대 효과 */
        }

        .certs .img-wrap img:hover {
            transform: scale(1.05);
        }

        .certs .item p {
            margin: 0;
            font-size: 20px;
            font-weight: 500;
            color: #444444;
            padding: 15px; /* 텍스트에 패딩 추가 */
        }

        @media (max-width: 1024px) {
            .certs {
                padding: 50px 20px; /* 태블릿: 상하 패딩 줄이고, 좌우 패딩 추가 */
                margin-bottom: 80px;
            }

            .certs .grid {
                grid-template-columns: repeat(3, 1fr); /* 4열 -> 3열 */
                gap: 15px; /* 아이템 간격 살짝 줄임 */
            }
        }

        /* [수정됨]
          @media (max-width: 767) -> @media (max-width: 767px)
          'px' 단위가 누락되어 모바일 스타일이 적용되지 않는 문제를 수정했습니다.
        */
        @media (max-width: 767px) {
            .certs {
                padding: 40px 15px; /* 모바일: 패딩 더 줄임 */
                margin-bottom: 60px;
            }

            .certs .grid {
                grid-template-columns: repeat(2, 1fr); /* 3열 -> 2열 */
                gap: 15px;
                margin-top: 30px;
            }

            .certs .item p {
                font-size: 16px; /* 모바일에서 폰트 크기 조정 */
                padding: 12px;
            }

            .about-section-title {
                font-size: 24px;
            }
        }
