/* ===========================================================================
   sub-page.css — 하위 상세 페이지 공통 스타일
   about/, business/, technology/, careers/ 등 모든 서브페이지에서 사용합니다.
   common.css, responsive.css 와 함께 로드하세요. (home.css는 메인 전용이므로 불필요)
   =========================================================================== */

/* 서브 비주얼 (페이지 상단 타이틀 배너) */
.sub-visual {
    background-color: var(--primary);
    background-image: linear-gradient(135deg, rgba(14,165,233,0.12), transparent 60%);
    color: var(--text-light);
    padding: 160px 20px 40px;
    text-align: center;
}

.sub-visual .sv-title {
    font-size: 32px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.sub-visual .sv-title .bar {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.sub-visual .breadcrumb {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.sub-visual .breadcrumb span {
    margin: 0 8px;
    color: rgba(148, 163, 184, 0.5);
}

/* 서브 탭 내비게이션 (2-depth 메뉴) */
.sub-nav {
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 80px;
    z-index: 500;
}

.sub-nav ul {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sub-nav a {
    display: block;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #64748B;
    border-bottom: 3px solid transparent;
}

.sub-nav li.active a,
.sub-nav a:hover {
    color: var(--primary);
    font-weight: 700;
    border-bottom-color: var(--accent);
}

/* 페이지 인트로 (소제목 + 설명) */
.page-intro {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 70px 20px 20px;
    text-align: center;
}

.page-intro h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.page-intro p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* 공통 콘텐츠 섹션 */
.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3::before {
    content: '';
    width: 6px;
    height: 22px;
    background-color: var(--accent);
    border-radius: 3px;
    display: inline-block;
}

/* CEO 인사말 */
.ceo-message {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 50px;
    line-height: 2;
    font-size: 16px;
    color: #334155;
}

.ceo-message .signature {
    display: block;
    margin-top: 30px;
    font-weight: 700;
    color: var(--primary);
    font-size: 17px;
}

/* 사업분야 카드 그리드 */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ba-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 32px 26px;
    transition: var(--transition);
}

.ba-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
}

.ba-card .ba-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 18px;
}

.ba-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.ba-card ul li {
    font-size: 14px;
    color: #64748B;
    padding-left: 14px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.ba-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* 조직도 */
.org-chart-wrap {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.org-chart-wrap img {
    max-width: 100%;
    height: auto;
}

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

@media (max-width: 768px) {
    .sub-visual {
        padding: 130px 20px 30px;
    }
    .sub-nav {
        top: 70px;
        overflow-x: auto;
    }
    .sub-nav ul {
        justify-content: flex-start;
    }
    .ceo-message {
        padding: 30px 24px;
    }
    .ba-grid {
        grid-template-columns: 1fr;
    }
}

/* 연혁/실적 타임라인 (history.html) */
.history-timeline .year-group {
    display: flex;
    gap: 30px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.history-timeline .year-group:first-child {
    padding-top: 0;
}

.history-timeline .yr {
    flex: 0 0 100px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.history-timeline .yr.now {
    color: var(--accent);
}

.history-timeline ul {
    flex: 1;
    min-width: 0;
}

.history-timeline li {
    display: flex;
    gap: 16px;
    padding: 5px 0;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
}

.history-timeline li .dt {
    flex: 0 0 66px;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    padding-top: 1px;
}

.history-timeline li .tx {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .history-timeline .year-group {
        flex-direction: column;
        gap: 10px;
    }
    .history-timeline .yr {
        flex: none;
    }
    .history-timeline li {
        flex-direction: column;
        gap: 2px;
        padding: 8px 0;
    }
    .history-timeline li .dt {
        flex: none;
    }
}

/* 고객 및 협력사 배너 그리드 (partners.html) : 가로 5개, 초과 시 다음 줄로 자동 이동 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.partner-grid li {
    list-style: none;
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    transition: var(--transition);
}

.partner-grid li:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-3px);
}

.partner-grid li img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}

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

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .partner-grid li {
        height: 76px;
        padding: 12px;
    }
}

/* 오시는 길 (directions.html) : 지도 + 연락처 카드 */
.map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    line-height: 0;
}

.map-wrap iframe {
    width: 100%;
    height: 460px;
    border: 0;
    display: block;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 30px 26px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-card i {
    font-size: 26px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14.5px;
    color: #64748B;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .map-wrap iframe {
        height: 300px;
    }
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* 보유기술 인증/특허 그리드 (technology/*.html) : 가로 5개, 이미지 원본 비율 유지 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.cert-grid li {
    list-style: none;
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cert-grid li:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-3px);
}

.cert-grid li img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 채용안내 - 지원절차 (careers/info.html) */
.step-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 40px;
}

.step-card {
    flex: 1;
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.step-card .step-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-size: 22px;
    margin: 0 auto 18px;
}

.step-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.6;
}

.step-arrow {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.2);
    font-size: 18px;
}

.recruit-info {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.recruit-info dt {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.recruit-info dd {
    font-size: 14px;
    color: #64748B;
    line-height: 1.8;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-download:hover {
    background-color: var(--accent);
}

/* 인재상 (5열) / 복리후생 (4열) 카드 그리드 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.value-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 34px 22px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
}

.value-card .value-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    font-size: 24px;
    margin: 0 auto 18px;
}

.value-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.6;
}

.benefit-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 28px 24px;
}

.benefit-card .benefit-icon {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 16px;
}

.benefit-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.benefit-card ul li {
    font-size: 13.5px;
    color: #64748B;
    padding-left: 14px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.benefit-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent);
}

@media (max-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .step-flow {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        padding: 6px 0;
    }
    .recruit-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .value-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }
}

/* 채용절차 5단계 프로세스 (원형 스텝, careers/info.html) */
.process-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 10px;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    min-width: 0;
}

.process-circle {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.process-circle .num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.process-circle .label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.process-desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.75;
    word-break: keep-all;
}

.process-arrow {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 56px;
    color: rgba(15, 23, 42, 0.22);
    font-size: 18px;
}

@media (max-width: 1024px) {
    .process-flow {
        flex-wrap: wrap;
        row-gap: 30px;
    }
    .process-step {
        flex: 0 0 calc(33.333% - 10px);
    }
    .process-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-step {
        flex: 0 0 calc(50% - 10px);
    }
    .process-circle {
        width: 108px;
        height: 108px;
    }
}

/* 모집분야 표 (careers/info.html) */
.recruit-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.recruit-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.recruit-table thead th {
    background-color: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 16px 22px;
    text-align: left;
    white-space: nowrap;
}

.recruit-table tbody td {
    padding: 22px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.75;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.recruit-table tbody tr:last-child td {
    border-bottom: none;
}

.recruit-table tbody tr:hover {
    background-color: var(--bg-light);
}

.recruit-table td.field-col {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.recruit-table td.field-col span {
    display: block;
    font-weight: 400;
    color: #94A3B8;
    font-size: 12px;
    margin-top: 4px;
}

/* 비전/목표 (Vision & Goal) 섹션 - company.html */
.vision-section {
    padding-top: 40px;
    padding-bottom: 50px;
}

.vision-section .dotted-line {
    border: none;
    border-top: 2px dotted rgba(15, 23, 42, 0.15);
    margin: 0 0 24px;
}

.vision-tagline {
    text-align: center;
    font-style: italic;
    color: #64748B;
    font-size: 17px;
    margin-bottom: 30px;
}

.vision-band {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-light);
    border-radius: 4px;
    padding: 34px 60px;
    overflow: hidden;
}

.vision-band::before,
.vision-band::after {
    content: '';
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    background-color: #8FC1E3;
    opacity: 0.55;
}

.vision-band::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.vision-band::after {
    right: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.vision-col {
    text-align: center;
    position: relative;
    z-index: 1;
}

.vision-col .vision-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.vision-col .vision-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.vision-item {
    text-align: center;
}

.vision-icon {
    width: 76px;
    height: 76px;
    line-height: 76px;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-size: 30px;
    margin: 0 auto 20px;
}

.vision-item h4 {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.vision-item p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
}

.vision-quote {
    text-align: center;
    font-style: italic;
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    margin: 36px 0 24px;
}

@media (max-width: 768px) {
    .vision-band {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 20px;
    }
    .vision-band::before,
    .vision-band::after {
        display: none;
    }
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 솔루션 및 플랫폼 소개 (business/solutions.html) */
.solution-block {
    --sol-color: var(--accent);
    padding: 50px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.solution-block:last-child {
    border-bottom: none;
}

.solution-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.solution-head .sol-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 16px;
    background-color: var(--sol-color);
    color: #fff;
    font-size: 26px;
    text-align: center;
    flex-shrink: 0;
}

.solution-head h3 {
    margin: 0;
    display: block;
}

.solution-head h3::before {
    display: none;
}

.solution-head .sol-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.solution-head .sol-subtitle {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.solution-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.solution-col h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sol-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-col ul li {
    font-size: 13.5px;
    color: #475569;
    padding-left: 16px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.solution-col ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--sol-color);
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sol-color);
    margin-bottom: 14px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-badge {
    flex: 0 0 110px;
    background-color: var(--sol-color);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
}

.feature-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
}

.ops-note {
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 22px;
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}

.ops-item {
    text-align: center;
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 20px 14px;
}

.ops-item .ops-icon {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--sol-color);
    font-size: 18px;
    margin: 0 auto 10px;
}

.ops-item h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.ops-item p {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.5;
}

.pamphlet-preview {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.pamphlet-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.pamphlet-caption {
    text-align: center;
    font-size: 12.5px;
    color: #94A3B8;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .solution-cols {
        grid-template-columns: 1fr;
    }
    .ops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solution-head {
        flex-direction: column;
        text-align: center;
    }
    .feature-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .feature-badge {
        flex: none;
    }
}
