@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

/* ============================================================
   SAVE-M Sub Page Styles — mrsys.co.kr style
   ============================================================ */

/* ===== Sub Banner — background image + title + sub-nav tabs ===== */
.sub-banner {
    position: relative;
    height: 340px;
    margin-top: 120px;
    background-size: cover;
    background-position: center;
    background-color: #0068b7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.sub-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(141 172 205 / 38%) 0%, rgba(0, 0, 0, 0.4) 100%);
}
.sub-banner-content {
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
}
.sub-banner-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}
.sub-banner-breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.sub-banner-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.sub-banner-breadcrumb a:hover { color: #fff; }
.sub-banner-breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.3); }
.sub-banner-breadcrumb em { color: #ed6c00; font-style: normal; font-weight: 500; }

/* ===== Sub Navigation Tabs — overlapping banner bottom ===== */
.sub-nav-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}
.sub-nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10%;
    display: flex;
    gap: 0;
}
.sub-nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    font-size: 21px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    white-space: nowrap;
}
.sub-nav-tab:last-child { border-right: none; }
.sub-nav-tab:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.sub-nav-tab.active {
    background: #fff;
    color: #001f3f;
    font-weight: 700;
    font-size: 21px;
}
@media (max-width: 1199px) {
    .sub-nav-tab.active { font-size: inherit; }
}

/* ===== Sub Content Area ===== */
.sub-content-area {
    padding: 130px 15% 150px;
    background: #fff;
    min-height: 400px;
}
/* sub-content-area 안의 .layout은 추가 여백 없이 */
.sub-content-area .layout {
    padding: 0;
    max-width: 100%;
}
.sub-page-wrap {
    max-width: 100%;
}

/* ===== Page Section ===== */
.page-section {
    margin-bottom: 60px;
}
.page-section:last-child { margin-bottom: 0; }

.page-heading {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: 80px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    position: relative;
}
.page-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ed6c00;
}
.page-lead {
    font-size: 23px;
    color: #000;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

/* ===== Greeting Page ===== */
/* ===== Greeting v2 ===== */
.greeting-v2 .page-heading {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #0068b7;
    line-height: 1.5;
    letter-spacing: -0.02em;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 30px;
    word-break: keep-all;
}
.greeting-v2 .page-heading::after { display: none; }

.greeting-hero {
    width: 100%;
    margin: 30px 0 60px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(27,58,92,0.15);
    background: #eef2f7;
}
.greeting-hero img {
    width: 100%;
    display: block;
    height: 400px;
    object-fit: cover;
}
.greeting-hero.no-img {
    height: 400px;
    background: linear-gradient(135deg, #0068b7, #2c5a8a);
}

.greeting-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.greeting-content .greeting-body {
    margin-bottom: 40px;
}
.greeting-content .greeting-body p {
    font-size: 19px;
    color: #000;
    line-height: 1.9;
    margin-bottom: 24px;
    text-align: center;
    word-break: keep-all;
}
.greeting-content .greeting-body p:last-child { margin-bottom: 0; }

.greeting-sign {
    margin-top: 36px;
    text-align: center;
}
.greeting-sign span {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.greeting-sign strong {
    font-size: 23px;
    color: #0068b7;
    font-weight: 700;
}

/* Mobile for greeting-v2 */
@media (max-width: 900px) {
    .greeting-hero { margin: 20px 0 40px; }
    .greeting-hero img { height: 260px; }
    .greeting-hero.no-img { height: 260px; }
    .greeting-v2 .page-heading { font-size: 22px; line-height: 1.45; }
    .greeting-content .greeting-body p {
        font-size: 16px;
        line-height: 1.85;
        text-align: left;
    }
    /* 모바일에서는 고정 줄바꿈을 해제하여 자연스럽게 흐르도록 */
    .greeting-content .greeting-body br { display: none; }
}

/* ============================================================
   모바일 다국어(CJK) 안전망 — 일본어·중국어는 띄어쓰기가 없어
   word-break:keep-all 만으로는 줄바꿈 지점을 못 찾아 가로 스크롤이 생김
   ============================================================ */
@media (max-width: 900px) {
    /* 전역 가로 스크롤 차단 */
    html, body { overflow-x: hidden; max-width: 100vw; }

    /* 모든 페이지 공통 컨테이너 폭 안전 */
    .layout, .sub-page-wrap, .sub-content-area,
    .greeting-content, .overview-intro, .overview-table,
    .page-section { max-width: 100%; }

    /* 표·코드 등 폭 큰 요소는 가로 스크롤이 안 만들도록 */
    .overview-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    pre, code { overflow-x: auto; word-break: break-all; }

    /* 일본어·중국어 본문은 어디서든 줄바꿈 허용 */
    html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] td, html[lang="ja"] h1,
    html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4, html[lang="ja"] h5,
    html[lang="zh"] p, html[lang="zh"] li, html[lang="zh"] td, html[lang="zh"] h1,
    html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4, html[lang="zh"] h5 {
        word-break: break-word !important;
        overflow-wrap: anywhere;
        line-break: anywhere;
    }
    /* 페이지 제목은 모바일에서 살짝 더 작게 (모든 언어 공통) */
    .page-heading { font-size: 22px !important; line-height: 1.4 !important; }
    /* 인사말 페이지에서 모바일 일본어/중국어는 br 없애도 자연스럽게 흐르도록 */
    html[lang="ja"] .greeting-content .greeting-body br,
    html[lang="zh"] .greeting-content .greeting-body br { display: none !important; }
}

/* ===== Overview Table ===== */
/* ===== Overview Intro (PPT 회사 소개 단락) ===== */
.overview-intro {
    margin: 10px 0 200px;
    padding: 36px 40px;
    background: #f8fafc;
    border-left: 4px solid #0068b7;
    border-radius: 4px;
}
.ov-intro-title {
    font-size: 26px;
    font-weight: 500;
    color: #0068b7;
    line-height: 1.5;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
@media (max-width: 900px) {
    .ov-intro-title { font-size: 22px; }
}
.ov-intro-body {
    font-size: 19px;
    color: #000;
    line-height: 1.9;
    margin: 0;
    word-break: keep-all;
}

/* 특징·개요 섹션 상단 제목 (page-heading과 동일 스타일) */
.ov-feat-heading,
.ov-table-heading {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    text-align: left;
    margin: 0 0 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    position: relative;
    letter-spacing: -0.02em;
}
.ov-feat-heading::after,
.ov-table-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ed6c00;
}

.overview-table {
    margin-top: 0;
    margin-bottom: 0;
}
.overview-table table {
    width: 100%;
    border-top: 2px solid #0068b7;
    border-collapse: collapse;
}
.overview-table tbody {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
}
.overview-table tr { display: contents; }
.overview-table tr.row-full td { grid-column: span 3; }
.overview-table th,
.overview-table td {
    padding: 18px 22px;
    font-size: 19px;
    color: #000;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
    text-align: left;
    vertical-align: middle;
}
.overview-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ===== Overview Features ===== */
.overview-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 200px;
}
@media (max-width: 1280px) {
    .overview-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* CJK 언어는 글자 폭이 넓어 5열에선 넘침 — 기본 3열, 화면이 충분히 넓을 때만 5열, 모바일에선 2열 */
html[lang="zh"] .overview-features,
html[lang="ja"] .overview-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1500px) {
    html[lang="zh"] .overview-features,
    html[lang="ja"] .overview-features {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    html[lang="zh"] .overview-features,
    html[lang="ja"] .overview-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.ov-feature {
    text-align: center;
    padding: 30px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    min-width: 0;
    overflow-wrap: anywhere;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.ov-feature:hover { transform: translateY(-5px); }
.ov-feature:nth-child(1):hover {
    border-color: #ed6c00;
    box-shadow: 0 12px 28px rgba(237,108,0,0.18);
}
.ov-feature:nth-child(2):hover {
    border-color: #f5c518;
    box-shadow: 0 12px 28px rgba(245,197,24,0.20);
}
.ov-feature:nth-child(3):hover {
    border-color: #2ecc71;
    box-shadow: 0 12px 28px rgba(46,204,113,0.20);
}
.ov-feature:nth-child(4):hover {
    border-color: #3aa8e8;
    box-shadow: 0 12px 28px rgba(58,168,232,0.20);
}
.ov-feature:nth-child(5):hover {
    border-color: #9b59b6;
    box-shadow: 0 12px 28px rgba(155,89,182,0.20);
}
.ov-icon {
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    color: #ed6c00;
}
.ov-icon svg {
    width: 60px;
    height: 60px;
    stroke-width: 0.75;
}
.ov-icon svg * { stroke-width: 0.75 !important; }
.ov-feature h4 { font-size: 18px; font-weight: 700; color: #000; margin-bottom: 10px; word-break: keep-all; line-height: 1.35; }
.ov-feature p  { font-size: 14.5px; color: #333; line-height: 1.6; word-break: keep-all; }
html[lang="zh"] .ov-feature h4, html[lang="ja"] .ov-feature h4 { font-size: 16.5px; }
html[lang="zh"] .ov-feature p,  html[lang="ja"] .ov-feature p  { font-size: 13.5px; }

/* ===== Timeline v2 (History) ===== */
.timeline-v2 {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
/* 타임라인 전체를 관통하는 연속 세로 라인 */
.timeline-v2::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 258px;
    width: 1px;
    background: #e5e8ee;
    transform: translateX(-50%); /* 라인 중앙을 left 값에 정확히 일치시킴 */
}
.tl-row {
    display: flex;
    align-items: stretch;
    min-height: 90px;
    position: relative;
}
/* 새로운 연도 시작 시 추가 상단 여백 */
.tl-row--year-start { margin-top: 70px; }
.tl-row--first { margin-top: 0; }
.tl-year {
    flex: 0 0 241px;
    text-align: right;
    font-size: 56px;
    font-weight: 700;
    color: #575757;
    line-height: 1;
    padding-right: 90px;
    padding-top: 2px;
    letter-spacing: -0.02em;
    /* 연도 숫자 — Oswald (플레인 원형 0, 조건: 디스플레이 폰트 + tabular-nums) */
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
}
.tl-line {
    flex: 0 0 30px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}
.tl-dot {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: radial-gradient(circle,
        rgba(237,108,0,0) 20%,
        rgba(237,108,0,0.10) 55%,
        rgba(237,108,0,0.22) 85%,
        rgba(237,108,0,0.32) 100%);
}
.tl-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ed6c00;
}
.tl-content {
    flex: 1;
    padding: 0 0 40px 110px;
}
.tl-row:last-child .tl-content { padding-bottom: 0; }
.tl-date {
    font-size: 22px;
    font-weight: 600;
    color: #0068b7;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
.tl-desc {
    font-size: 21px;
    color: #333;
    line-height: 1.6;
    word-break: keep-all;
}

@media (max-width: 900px) {
    .timeline-v2::before { left: 110px; }
    .tl-year { flex: 0 0 97px; font-size: 30px; padding-right: 32px; padding-top: 2px; }
    .tl-line { flex: 0 0 24px; padding-top: 10px; }
    .tl-dot { width: 28px; height: 28px; }
    .tl-dot::before { width: 7px; height: 7px; }
    .tl-content { flex: 1; padding: 0 0 30px 28px; }
    .tl-date { font-size: 18px; margin-bottom: 8px; }
    .tl-desc { font-size: 15px; }
    .tl-row--year-start { margin-top: 50px; }
}

/* ===== Organization Chart ===== */
.org-tree {
    position: relative;
    max-width: 1400px;
    margin: 20px auto 10px;
    padding: 70px 10px 20px;
}

/* --- Cards (shared) --- */
.org-card {
    position: relative;
    background: linear-gradient(145deg, #3dd0ff 0%, #0f4f73 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}
.org-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(90deg, transparent, #e5e5e5, transparent);
    opacity: 0.9;
}
.org-card:hover {
    transform: translateY(-3px);
}
.org-card__icon {
    width: 48px; height: 48px;
    grid-row: span 2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.org-card__title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.org-card__role {
    font-size: 17px;
    letter-spacing: 1.3px;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 5px;
    text-transform: uppercase;
}

/* --- CEO card --- */
.org-ceo-row {
    display: flex;
    justify-content: center;
    position: relative;
}
.org-card--ceo {
    min-width: 280px;
    padding: 22px 36px;
    background: linear-gradient(180deg, #ff7400 0%, #ffa700 100%);
}
.org-card--ceo::before {
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0.55;
}
.org-card--ceo .org-card__icon {
    width: 56px; height: 56px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.32);
}
.org-card--ceo .org-card__title { font-size: 29px; }
.org-card--ceo .org-card__role { opacity: 0.88; font-size: 22px; }

/* --- Admin (관리부) single centered card --- */
.org-admin-row {
    display: flex;
    justify-content: center;
    position: relative;
}
.org-card--admin {
    min-width: 280px;
    padding: 20px 32px;
}
.org-card--admin .org-card__icon {
    width: 52px; height: 52px;
    font-size: 22px;
}
.org-card--admin .org-card__title { font-size: 21px; }

/* --- Trunk & Distributor (connectors) --- */
.org-trunk {
    font-weight: 800;
    width: 1px;
    height: 80px;
    margin: 0 auto;
    background: #ed6c00;
}
.org-distributor {
    position: relative;
    height: 1px;
    background: #ed6c00;
    margin: 0 12.5%;
}
.org-distributor::before,
.org-distributor::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ed6c00;
    transform: translateY(-50%);
}
.org-distributor::before { left: -4px; }
.org-distributor::after  { right: -4px; }
.org-distributor__mid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ed6c00;
}

/* --- Department row --- */
.org-dept-row {
    display: grid;
    gap: 24px;
    margin-top: 0;
}
.org-dept-row--3 {
    grid-template-columns: repeat(3, 1fr);
}
.org-distributor--3 {
    margin: 0 16%;
}
.org-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.org-branch__stem {
    width: 1px;
    height: 80px;
    margin: 0 auto 0px;
    background: #ed6c00;
}
.org-branch .org-card--dept {
    max-width: 320px;
    width: 100%;
}

/* --- Sub teams (horizontal row) --- */
.org-subgroup {
    position: relative;
    margin: 0px auto 0;
    padding-top: 60px;
    max-width: 450px;
    width: 100%;
}
.org-subgroup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 60px;
    background: #ed6c00;
}
.org-subgroup__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: relative;
    padding-top: 60px;
}
.org-subgroup__row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: #ed6c00;
}
.org-sub-item {
    position: relative;
}
.org-sub-item::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 60px;
    background: #ed6c00;
}
.org-sub-item::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ed6c00;
}
.org-sub-card {
    position: relative;
    background: linear-gradient(181deg, #3d3d3d 0%, #1e546b 100%);
    border: none;
    border-radius: 10px;
    padding: 20px 14px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: -0.2px;
    transition: all 0.25s ease;
    overflow: hidden;
}
.org-sub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0.55;
}
.org-sub-card:hover {
    transform: translateY(-2px);
}

/* --- Compact tablet adjustments --- */
@media screen and (max-width: 1024px) {
    .org-tree { padding: 20px 0 10px; }
    .org-dept-row { gap: 16px; }
    .org-card { padding: 16px 16px; column-gap: 12px; }
    .org-card__icon { width: 44px; height: 44px; font-size: 18px; }
    .org-card__title { font-size: 15px; }
    .org-card--ceo { padding: 20px 30px; }
    .org-card--ceo .org-card__icon { width: 52px; height: 52px; font-size: 22px; }
    .org-card--ceo .org-card__title { font-size: 20px; }
    .org-card--ceo .org-card__role { font-size: 11px; }
    .org-card--admin { padding: 18px 28px; }
    .org-card--admin .org-card__icon { width: 48px; height: 48px; font-size: 20px; }
    .org-card--admin .org-card__title { font-size: 17px; }
    .org-subgroup { max-width: 280px; }
    .org-subgroup__row { gap: 8px; }
    .org-sub-card { font-size: 13px; padding: 11px 10px 11px 20px; }
    .org-trunk { width: 1px; height: 36px; background: #ed6c00; }
    .org-distributor { height: 1px; }
    .org-distributor--3 { margin: 0 16.667%; }
    .org-branch__stem { height: 36px; margin: 0 auto 8px; }
}

/* ===== Certification Cards ===== */
.cert-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cert-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 14px;
    transition: all 0.4s;
}
.cert-card:hover {
    border-color: #0068b7;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.cert-card-icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0068b7, #2C5F7C);
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
}
.cert-card h4 { font-size: 18px; font-weight: 700; color: #0068b7; margin-bottom: 8px; }
.cert-card p { font-size: 14px; color: #999; }

/* ===== Process Flow (ZigZag) ===== */
.process-flow {
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 20px 10px;
}
.pf-row {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 80px 0;
    gap: 90px;
    justify-content: center;
}
.pf-row:last-child { margin-bottom: 0; }
.pf-row.pf-reverse { flex-direction: row-reverse; }

.pf-step {
    position: relative;
    width: 260px;
    min-height: 260px;
    border: 1px solid #94afc9;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    padding: 35px 14px 22px;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}
.pf-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(237, 108, 0, 0.12);
}
.pf-step.pf-accent {
    border-color: #ed6c00;
    border-width: 1px;
}
.pf-icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff7400 0%, #ed6c00 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.pf-num {
    color: #ed6c00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 6px;
}
.pf-title {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 6px;
    line-height: 1.35;
    word-break: keep-all;
}
.pf-desc {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
    word-break: keep-all;
}

/* Connector lines */
.pf-line {
    position: absolute;
    background: #ed6c00;
    z-index: 1;
    transition: width 0.4s ease, height 0.4s ease;
}
.pf-row:not(.pf-reverse) .pf-step.line-lr .pf-line {
    top: 50%;
    left: 100%;
    width: 0;
    height: 1px;
    transform: translateY(-50%);
}
.pf-row.pf-reverse .pf-step.line-rl .pf-line {
    top: 50%;
    right: 100%;
    width: 0;
    height: 1px;
    transform: translateY(-50%);
}
.pf-step.line-bt .pf-line {
    top: 100%;
    left: 50%;
    width: 1px;
    height: 0;
    transform: translateX(-50%);
}
.pf-step.line-n .pf-line { display: none; }

/* Animated state: lines expand in sequence */
.process-flow.is-animated .pf-row:not(.pf-reverse) .pf-step.line-lr .pf-line,
.process-flow.is-animated .pf-row.pf-reverse .pf-step.line-rl .pf-line {
    width: 90px;
}
.process-flow.is-animated .pf-step.line-bt .pf-line {
    height: 80px;
}
/* Staggered delays — flow order 1→2→3→4 down 5→6→7 */
.process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(1) .pf-line { transition-delay: 0s; }
.process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(2) .pf-line { transition-delay: 0.35s; }
.process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(3) .pf-line { transition-delay: 0.7s; }
.process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(4) .pf-line { transition-delay: 1.05s; }
.process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(1) .pf-line { transition-delay: 1.45s; }
.process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(2) .pf-line { transition-delay: 1.8s; }
.process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(3) .pf-line { transition-delay: 2.15s; }

/* Arrow head at line end (horizontal) */
.pf-row:not(.pf-reverse) .pf-step.line-lr .pf-line::after,
.pf-row.pf-reverse .pf-step.line-rl .pf-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: translateY(-50%);
}
.pf-row:not(.pf-reverse) .pf-step.line-lr .pf-line::after {
    right: -1px;
    border-left: 15px solid #ed6c00;
}
.pf-row.pf-reverse .pf-step.line-rl .pf-line::after {
    left: -1px;
    border-right: 15px solid #ed6c00;
}
/* Vertical arrow */
.pf-step.line-bt .pf-line::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #ed6c00;
    transform: translateX(-50%);
}

/* Tablet: 2 per row */
@media screen and (max-width: 1024px) {
    .process-flow { max-width: 720px; }
    .pf-row { flex-wrap: wrap; gap: 50px 50px; margin-bottom: 60px; justify-content: center; }
    .pf-row.pf-reverse { flex-direction: row; }
    .pf-step { width: 190px; height: 200px; }
    .pf-step.line-bt .pf-line,
    .pf-row:not(.pf-reverse) .pf-step.line-lr .pf-line,
    .pf-row.pf-reverse .pf-step.line-rl .pf-line { display: none; }
}

/* Mobile: 2-col zigzag with directional arrows */
@media screen and (max-width: 767px) {
    .process-flow { padding: 0px; margin: 24px auto 20px; }
    .pf-row,
    .pf-row.pf-reverse {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        flex-direction: initial;
        flex-wrap: initial;
        justify-content: initial;
        margin-bottom: 50px;
        position: relative;
    }
    .pf-row:last-child { margin-bottom: 0; }

    /* Zigzag order: 1,2 then 4,3 (swap last two) */
    .pf-row .pf-step:nth-child(3) { order: 2; }
    .pf-row .pf-step:nth-child(4) { order: 1; }

    .pf-step {
        width: auto;
        max-width: none;
        height: auto;
        min-height: 160px;
        padding: 20px 10px;
        margin: 0;
        position: relative;
    }
    .pf-icon { width: 46px; height: 46px; font-size: 19px; margin-bottom: 8px; }
    .pf-num { font-size: 11px; }
    .pf-title { font-size: 16px; }
    .pf-desc { font-size: 13px; margin-top: 14px; line-height: 1.45; }
    .pf-line { display: none !important; }

    /* Zigzag connectors (line + arrow) spanning full gap */
    /* Card 1,5: right line + arrow */
    .pf-row .pf-step:nth-child(1)::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -20px;
        width: 20px;
        height: 1px;
        background: #ed6c00;
        transform: translateY(-50%);
        z-index: 2;
    }
    .pf-row .pf-step:nth-child(1)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -30px;
        transform: translateY(-50%);
        width: 0; height: 0;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 10px solid #ed6c00;
        z-index: 2;
    }
    /* Card 2,6: down line + arrow (40px gap) */
    .pf-row .pf-step:nth-child(2)::before {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 50%;
        width: 1px;
        height: 30px;
        background: #ed6c00;
        transform: translateX(-50%);
        z-index: 2;
    }
    .pf-row .pf-step:nth-child(2)::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        width: 0; height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 10px solid #ed6c00;
        z-index: 2;
    }
    /* Card 3,7: left line + arrow */
    .pf-row .pf-step:nth-child(3)::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -20px;
        width: 20px;
        height: 1px;
        background: #ed6c00;
        transform: translateY(-50%);
        z-index: 2;
    }
    .pf-row .pf-step:nth-child(3)::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -30px;
        transform: translateY(-50%);
        width: 0; height: 0;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 10px solid #ed6c00;
        z-index: 2;
    }
    /* Card 4 (first pf-row only): down line + arrow (50px between pf-rows) */
    .pf-row:not(:last-child) .pf-step:nth-child(4)::before {
        content: '';
        position: absolute;
        bottom: -40px;
        left: 50%;
        width: 1px;
        height: 40px;
        background: #ed6c00;
        transform: translateX(-50%);
        z-index: 2;
    }
    .pf-row:not(:last-child) .pf-step:nth-child(4)::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 0; height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 10px solid #ed6c00;
        z-index: 2;
    }

    /* Sequential card reveal (flow effect) */
    .process-flow .pf-step {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }
    .process-flow.is-animated .pf-step {
        opacity: 1;
        transform: translateY(0);
    }
    .process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(1) { transition-delay: 0s; }
    .process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(2) { transition-delay: 0.15s; }
    .process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(3) { transition-delay: 0.3s; }
    .process-flow.is-animated .pf-row:nth-child(1) .pf-step:nth-child(4) { transition-delay: 0.45s; }
    .process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(1) { transition-delay: 0.6s; }
    .process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(2) { transition-delay: 0.75s; }
    .process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(3) { transition-delay: 0.9s; }
    .process-flow.is-animated .pf-row:nth-child(2) .pf-step:nth-child(4) { transition-delay: 1.05s; }
}

/* ===== Korea Mold Center — magazine split layout ===== */
.kmc-page {
    margin-bottom: 60px;
}
.kmc-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 70px;
    border-bottom: 1px solid #e8edf2;
}
.kmc-hero-left { min-width: 0; }
.kmc-hero-right { position: relative; }

.kmc-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}
.kmc-title {
    font-size: 42px;
    font-weight: 800;
    color: #17243a;
    letter-spacing: -1px;
    margin: 0 0 8px;
    line-height: 1.15;
}
.kmc-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #ff7400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #ff7400;
    display: inline-block;
}
.kmc-body {
    font-size: 21px;
    line-height: 1.75;
    color: #4a5567;
    margin: 0 0 32px;
}
.kmc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.kmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1;
}
.kmc-btn span {
    transition: transform 0.25s ease;
    font-size: 16px;
    font-weight: 600;
}
.kmc-btn:hover span { transform: translateX(3px); }
.kmc-btn--primary {
    background: #0068b7;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,104,183,0.25);
}
.kmc-btn--primary:hover {
    background: #005390;
    box-shadow: 0 10px 24px rgba(0,104,183,0.35);
    transform: translateY(-2px);
}
.kmc-btn--secondary {
    background: #fff;
    color: #0068b7;
    border: 1.5px solid #c9d6e3;
}
.kmc-btn--secondary:hover {
    border-color: #0068b7;
    background: #f3f9ff;
}
.kmc-external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #8a95a7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.kmc-external:hover { color: #0068b7; }
.kmc-external span {
    font-size: 15px;
}

.kmc-map-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f6fa;
    box-shadow: 0 20px 50px rgba(27,58,92,0.10);
}
.kmc-map {
    width: 100%;
    height: auto;
    display: block;
}
.kmc-distance {
    position: absolute;
    bottom: -30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.kmc-distance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px; height: 130px;
    background: linear-gradient(135deg, #ff7400 0%, #ff9a3c 100%);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(255,116,0,0.45);
    padding: 22px 10px 16px;
    line-height: 1;
    text-align: center;
}
.kmc-distance-walk {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.95;
    margin-bottom: 2px;
}
.kmc-distance-num {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.9;
}
.kmc-distance-unit {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}
.kmc-distance-label {
    margin-top: 10px;
    background: rgba(23,36,58,0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* Stats Row */
.kmc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    padding: 30px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f7fa 0%, #e9eef4 100%);
}
.kmc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 10px 20px;
    border-right: 1px solid rgba(23,36,58,0.08);
}
.kmc-stat:last-child { border-right: none; }
.kmc-stat-num {
    font-size: 52px;
    font-weight: 900;
    color: #0068b7;
    letter-spacing: -2px;
    line-height: 1;
}
.kmc-stat-num sup {
    font-size: 24px;
    color: #ff7400;
    vertical-align: top;
    margin-left: 2px;
}
.kmc-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #6f7a8c;
    letter-spacing: 0.5px;
}

/* Capability Cards */
.kmc-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.kmc-cap-card {
    position: relative;
    display: block;
    padding: 30px 28px 32px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid #e8edf2;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}
.kmc-cap-card:hover {
    transform: translateY(-6px);
    border-color: #0068b7;
    box-shadow: 0 18px 40px rgba(0,104,183,0.15);
}
.kmc-cap-card.kmc-cap-card--static { cursor: default; }
.kmc-cap-card.kmc-cap-card--static:hover {
    transform: none;
    border-color: #e8edf2;
    box-shadow: none;
}
.kmc-cap-icon {
    font-size: 36px;
    margin-bottom: 14px;
    line-height: 1;
}
.kmc-cap-title {
    font-size: 19px;
    font-weight: 700;
    color: #17243a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.kmc-cap-desc {
    font-size: 13px;
    color: #6f7a8c;
    margin: 0;
    line-height: 1.6;
}
.kmc-cap-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 22px;
    font-weight: 600;
    color: #c2ccda;
    transition: all 0.3s ease;
}
.kmc-cap-card:hover .kmc-cap-arrow {
    color: #0068b7;
    transform: translateX(4px);
}

@media screen and (max-width: 1024px) {
    .kmc-hero { grid-template-columns: 1fr; gap: 50px; }
    .kmc-title { font-size: 36px; }
    .kmc-distance { right: 20px; bottom: -22px; }
    .kmc-distance-badge { width: 110px; height: 110px; padding: 18px 8px 12px; }
    .kmc-distance-num { font-size: 46px; }
}
@media screen and (max-width: 900px) {
    .kmc-hero { gap: 40px; margin-bottom: 60px; padding-bottom: 50px; }
    .kmc-logo { width: 140px; margin-bottom: 14px; }
    .kmc-title { font-size: 30px; }
    .kmc-subtitle { font-size: 13px; margin: 0 0 18px; padding-bottom: 16px; }
    .kmc-body { font-size: 17px; margin: 0 0 24px; }
    .kmc-actions { gap: 10px; margin-bottom: 18px; }
    .kmc-btn { padding: 12px 14px; font-size: 15px; flex: 1; justify-content: center; }

    .kmc-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 20px 0;
        margin-bottom: 45px;
    }
    .kmc-stat { padding: 14px 10px; border-right: 1px solid rgba(23,36,58,0.08); border-bottom: 1px solid rgba(23,36,58,0.08); }
    .kmc-stat:nth-child(2n) { border-right: none; }
    .kmc-stat:nth-child(n+3) { border-bottom: none; }
    .kmc-stat-num { font-size: 38px; }
    .kmc-stat-num sup { font-size: 17px; }
    .kmc-stat-label { font-size: 11px; }

    .kmc-capabilities { grid-template-columns: 1fr; gap: 12px; }
    .kmc-cap-card { padding: 22px 22px 24px; }
    .kmc-cap-icon { font-size: 30px; margin-bottom: 10px; }
    .kmc-cap-title { font-size: 17px; }
    .kmc-cap-arrow { top: 22px; right: 22px; font-size: 18px; }
}

/* ===== Injection Lineup — split layout ===== */
.inj-section {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 100px;
}
.inj-section:last-child { margin-bottom: 0; }
.inj-section--reverse { flex-direction: row-reverse; }

.inj-image,
.inj-tablebox {
    flex: 1;
    min-width: 0;
}
.inj-image {
    background: linear-gradient(135deg, #eef3f8 0%, #dee6ef 100%);
    border: 1px dashed #c2ccda;
    border-radius: 14px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.inj-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.inj-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #8a95a7;
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
}
.inj-ph-icon {
    font-size: 32px;
    opacity: 0.5;
    font-style: normal;
    line-height: 1;
}
.inj-placeholder em {
    font-style: normal;
    font-size: 14px;
    letter-spacing: 2px;
    color: #6f7a8c;
}
.inj-tablebox .equip-subheading {
    margin-top: 0;
}

@media screen and (max-width: 1024px) {
    .inj-section { gap: 20px; }
    .inj-image { min-height: 320px; }
}
@media screen and (max-width: 900px) {
    .inj-section,
    .inj-section--reverse { flex-direction: column; gap: 16px; margin-bottom: 45px; }
    .inj-image { min-height: 200px; order: -1; }
}

/* ===== Equipment Table ===== */
.equip-subheading {
    font-size: 23px;
    font-weight: 700;
    color: #000000;
    padding-left: 14px;
    border-left: 9px solid #ed6c00;
    margin: 0 0 18px;
    line-height: 1.3;
}
.equip-subheading--mt { margin-top: 100px; }

.equip-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #d5dee7;
}
.equip-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}
.equip-table thead th {
    background: #e4f0f5;
    color: #434343;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
    padding: 14px 12px;
    text-align: left;
    border-right: 1px solid #d5dee7;
    border-bottom: 2px solid #0068b7;
    white-space: nowrap;
}
.equip-table thead th:last-child { border-right: none; }
.equip-table tbody td {
    padding: 13px 17px;
    border-top: 1px solid #d5dee7;
    border-right: 1px solid #d5dee7;
    text-align: center;
    color: #333;
    vertical-align: middle;
}
.equip-table tbody td:last-child { border-right: none; }
.equip-table tbody tr:nth-child(even) { background: #f8fafc; }
.equip-table tbody tr:hover { background: #fff6eb; }

.equip-table .col-no { width: 70px; color: #888; font-weight: 600; }
.equip-table .col-name { text-align: left; font-weight: 600; color: #1a1a1a; min-width: 200px; }
.equip-table .col-model { font-weight: 500; color: #0068b7; min-width: 140px; }
.equip-table .col-qty { width: 70px; font-weight: 700; color: #ed6c00; }
.equip-table .col-maker { color: #555; min-width: 110px; }
.equip-table .col-note { text-align: left; }
.equip-table td.col-note { color: #000; font-size: 15px; }
.equip-table thead th.col-note { padding-left: 17px; }

/* CAD/CAM vertical header table */
.equip-table--cadcam tbody th {
    background: #f4f6f9;
    color: #0068b7;
    font-weight: 700;
    padding: 14px 18px;
    text-align: center;
    width: 140px;
    border-right: 1px solid #d5dee7;
    border-top: 1px solid #d5dee7;
    font-size: 15px;
    white-space: nowrap;
}
.equip-table--cadcam tbody td {
    text-align: left;
    padding-left: 18px;
    font-size: 15px;
}
.equip-table--cadcam tbody tr:first-child th,
.equip-table--cadcam tbody tr:first-child td { border-top: none; }

/* Tablet */
@media screen and (max-width: 1024px) {
    .equip-table { font-size: 14px; }
    .equip-table thead th { padding: 12px 8px; font-size: 13px; }
    .equip-table tbody td { padding: 11px 8px; }
    .equip-subheading { font-size: 18px; }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .equip-subheading { font-size: 17px; padding-left: 10px; border-left-width: 3px; }
    .equip-subheading--mt { margin-top: 36px; }
    .equip-table { font-size: 13px; min-width: 640px; }
    .equip-table thead th { padding: 10px 6px; font-size: 14px; }
    .equip-table tbody td { padding: 10px 6px; }
    .equip-table .col-no { width: 50px; }
    .equip-table .col-name { min-width: 130px; }
    .equip-table .col-model { min-width: 120px; }
    .equip-table .col-maker { min-width: 92px; }
    .equip-table .col-qty { width: 50px; }
    .equip-table td.col-note { font-size: 14px; }
    .equip-table--cadcam { min-width: 0; }
    .equip-table--cadcam tbody th { width: 110px; padding: 12px; font-size: 13px; }
    .equip-table--cadcam tbody td { padding: 12px; font-size: 13px; }
}

/* ===== Quality Flow ===== */
/* ===== Quality Flow v2 (Circle Steps) ===== */
.quality-flow-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    max-width: 1400px;
    margin: 60px auto 40px;
    padding: 0;
}
.qf2-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.qf2-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid var(--color);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}
.qf2-step:hover .qf2-circle {
    transform: translateY(-4px);
}
.qf2-circle span {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    line-height: 1;
}
.qf2-icon {
    margin: 0;
    font-size: 50px;
    color: var(--color);
    line-height: 1;
    opacity: 0.8;
}
.qf2-label {
    font-variant-east-asian: jis78;
    margin-top: 15px;
    font-size: 23px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.2px;
    word-break: keep-all;
    line-height: 1.25;
}
.qf2-label--inside { display: none; }
/* Connector line between steps */
.qf2-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 90px; /* center of 180px circle */
    left: calc(50% + 90px);
    right: calc(-50% + 90px);
    height: 5px;
    background: linear-gradient(90deg, var(--color), var(--next, var(--color)));
    z-index: 1;
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .quality-flow-v2 { padding: 0 10px; margin-top: 40px; }
    .qf2-circle { width: 140px; height: 140px; padding: 14px; gap: 12px; }
    .qf2-circle span { font-size: 16px; }
    .qf2-icon { font-size: 38px; }
    .qf2-label { font-size: 16px; }
    .qf2-step:not(:last-child)::after { top: 70px; left: calc(50% + 70px); right: calc(-50% + 70px); height: 4px; }
}

/* Mobile: vertical stack, content inside larger circle */
@media screen and (max-width: 767px) {
    .quality-flow-v2 {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        padding: 0;
        margin-top: 28px;
    }
    .qf2-step { flex: initial; width: auto; }
    .qf2-circle {
        width: 230px;
        height: 230px;
        padding: 28px 22px;
        gap: 20px;
    }
    .qf2-circle span { font-size: 21px; }
    .qf2-icon { font-size: 44px; }
    .qf2-label--outside { display: none; }
    .qf2-label--inside {
        display: block;
        margin: 0;
        font-size: 21px;
        font-weight: 700;
        line-height: 1.25;
    }
    .qf2-step:not(:last-child)::after {
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 4px;
        height: 36px;
        background: linear-gradient(180deg, var(--color), var(--next, var(--color)));
    }
}

/* ===== Product Gallery ===== */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pg-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.4s;
    background: #fff;
}
.pg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}
.pg-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}
.pg-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.pg-item:hover .pg-img img { transform: scale(1.08); }
.pg-name {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #0068b7;
    text-align: center;
    letter-spacing: 1px;
}
.pg-noimg {
    display: flex; align-items: center; justify-content: center;
    height: 100%; background: #f0f0f0; color: #999;
}

/* ===== Bento Grid (Auto page) ===== */
.bento-section {
    margin-bottom: 100px;
}
.bento-section:last-child { margin-bottom: 0; }

.bento-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 10px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e8edf2;
    position: relative;
}
.bento-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 76px;
    height: 3px;
    background: linear-gradient(90deg, #0068b7, #ff7400);
    border-radius: 2px;
}
.bento-head-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bento-num {
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0068b7 0%, #00a3c1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bento-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 33px;
    font-weight: 700;
    color: #17243a;
    margin: 0;
    line-height: 1.2;
}
.bento-title-en {
    font-size: 12px;
    font-weight: 600;
    color: #8a95a7;
    letter-spacing: 2px;
}
.bento-desc {
    margin: 0;
    font-size: 16px;
    color: #ff7400;
}
.bento-count {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 32px;
    font-weight: 800;
    color: #0068b7;
    line-height: 1;
}
.bento-count small {
    font-size: 11px;
    color: #8a95a7;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 14px;
}
.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef2f7;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    isolation: isolate;
}
.bento-item::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(23,36,58,0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,104,183,0.18);
    z-index: 3;
}
.bento-item:hover::before { opacity: 1; }
.bento-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    overflow: hidden;
}
.bento-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bento-item:hover .bento-img img { transform: scale(1.05); }
.bento-item.size-big { grid-column: span 2; grid-row: span 2; }
.bento-item.size-wide { grid-column: span 2; grid-row: span 1; }
.bento-item.size-tall { grid-column: span 1; grid-row: span 2; }

/* Tank section custom 6-col layout: big + 2 right, 3 bottom */
.bento-section--tank-grid .bento-grid {
    grid-template-columns: repeat(6, 1fr);
}
.bento-section--tank-grid .bento-item.size-big  { grid-column: span 3; grid-row: span 2; }
.bento-section--tank-grid .bento-item.size-wide { grid-column: span 3; grid-row: span 1; }
.bento-section--tank-grid .bento-item.size-third{ grid-column: span 2; grid-row: span 1; }
@media screen and (max-width: 768px) {
    .bento-section--tank-grid .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-section--tank-grid .bento-item.size-big  { grid-column: span 2; grid-row: span 2; }
    .bento-section--tank-grid .bento-item.size-wide { grid-column: span 2; grid-row: span 1; }
    .bento-section--tank-grid .bento-item.size-third{ grid-column: span 1; grid-row: span 1; }
}

.bento-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    color: #17243a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}
.bento-item.size-big .bento-label {
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(0,104,183,0.96), rgba(0,163,193,0.96));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,104,183,0.25);
}
.bento-item.size-wide .bento-label {
    font-size: 13px;
    padding: 9px 14px;
}
.bento-item:hover .bento-label {
    transform: translateY(-2px);
}

/* ===== Contact Form ===== */
.contact-form { max-width: 800px; margin: 0 auto; }
.cf-row { display: flex; gap: 20px; }
.cf-row .form-group { flex: 1; }

/* ===== Location ===== */
.location-map { margin-bottom: 40px; }
.location-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.loc-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}
.loc-icon {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    background: #0068b7;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.loc-item h4 { font-size: 14px; font-weight: 700; color: #0068b7; margin-bottom: 5px; }
.loc-item p { font-size: 19px; color: #000; }

/* ===== FAQ Accordion — Modern card ===== */
.faq-list { max-width: 1100px; margin: 0 auto; }
.faq-item {
    position: relative;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.faq-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0068b7, #00a3c1);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faq-item:hover {
    border-color: #c5d4e3;
    transform: translateY(-1px);
}
.faq-item.open {
    border-color: transparent;
    box-shadow: 0 14px 36px rgba(0,104,183,0.12), 0 2px 8px rgba(11,42,74,0.05);
    background: linear-gradient(180deg, #f4f9ff 0%, #fff 60%);
}
.faq-item.open::before { opacity: 1; }

.faq-q {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px 22px 30px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.faq-q:hover { background: rgba(0,104,183,0.03); }
.faq-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0068b7, #00a3c1);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0,104,183,0.28);
}
.faq-icon-a {
    background: linear-gradient(135deg, #ed6c00, #ff9a3c);
    box-shadow: 0 6px 14px rgba(237,108,0,0.28);
}
.faq-question {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #17243a;
    line-height: 1.45;
    letter-spacing: -0.2px;
}
.faq-item.open .faq-question { color: #0068b7; }

/* +/× toggle icon (replaces chevron) */
.faq-arrow {
    position: relative;
    width: 32px; height: 32px;
    flex-shrink: 0;
    color: transparent;
    border-radius: 50%;
    background: #f3f6fa;
    transition: all 0.3s ease;
}
.faq-arrow::before,
.faq-arrow::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 2px;
    background: #0068b7;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background 0.3s ease;
}
.faq-arrow::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item:hover .faq-arrow { background: #e7f0f9; }
.faq-item.open .faq-arrow {
    background: #0068b7;
    transform: rotate(45deg);
}
.faq-item.open .faq-arrow::before,
.faq-item.open .faq-arrow::after { background: #fff; }

.faq-a {
    display: none;
    padding: 0 30px 26px 84px;
    font-size: 15px;
    color: #4a5567;
    line-height: 1.85;
    animation: faqOpen 0.35s ease;
}
.faq-item.open .faq-a {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
    .faq-q { gap: 12px; padding: 18px 18px 18px 22px; }
    .faq-icon { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
    .faq-question { font-size: 15px; }
    .faq-arrow { width: 28px; height: 28px; }
    .faq-arrow::before, .faq-arrow::after { width: 10px; }
    .faq-a { padding: 0 22px 22px 66px; font-size: 14px; gap: 12px; }
}

/* Board placeholder */
.board-placeholder {
    border: 2px dashed #eee;
    border-radius: 12px;
    margin-top: 20px;
}

/* ===== TABLET (≤1199px) ===== */
@media screen and (max-width: 1199px) {
    .sub-content-area { padding: 90px 8% 110px; }
    .sub-nav-tab { font-size: 14px; padding: 14px 12px; }
    .overview-features { grid-template-columns: 1fr 1fr; }
    .location-info { grid-template-columns: repeat(2, 1fr); }
    /* 섹션 간 여백 축소 */
    .overview-intro { margin-bottom: 120px; }
    .overview-features { margin-bottom: 120px; }
}

/* ===== MOBILE WIDE (≤900px) ===== */
@media screen and (max-width: 900px) {
    .sub-content-area { padding: 60px 6% 80px; }
    .sub-banner { height: 280px; margin-top: 56px; }
    .overview-intro { margin-bottom: 80px; padding: 28px 22px; }
    .overview-features { margin-bottom: 80px; }
}

/* ===== MOBILE PHONE (≤767px) ===== */
@media screen and (max-width: 767px) {
    .sub-banner { height: 220px; margin-top: 56px; }
    .sub-banner-title { font-size: 26px; }
    .sub-banner-breadcrumb { font-size: 12px; }
    .sub-nav-inner { padding: 0 3%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sub-nav-tab { font-size: 13px; padding: 12px 14px; min-width: fit-content; }
    .sub-content-area { padding: 40px 5% 60px; }
    .page-heading { font-size: 22px; }
    .page-lead { font-size: 14px; }

    /* 회사 소개/특징 섹션 여백 추가 축소 */
    .overview-intro { margin-bottom: 56px; padding: 22px 18px; }
    .overview-features { margin-bottom: 56px; }
    .ov-feat-heading, .ov-table-heading { font-size: 22px; margin: 0 0 24px; padding-bottom: 14px; }

    .overview-features { grid-template-columns: 1fr 1fr; }
    .ov-feature { padding: 24px 16px; }
    .ov-feature h4 { font-size: 16px; }
    .ov-feature p { font-size: 15px; }

    /* 정보표: 4열 Grid → 2열 테이블 + zebra 스트라이프 */
    .overview-table tbody {
        display: table-row-group;
        grid-template-columns: none;
    }
    .overview-table tr {
        display: flex;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .overview-table tr.row-full { display: flex; }
    .overview-table tr.row-full td { grid-column: auto; }
    .overview-table th,
    .overview-table td {
        padding: 13px 14px;
        font-size: 15px;
        border-bottom: 0;
    }
    .overview-table th {
        flex: 0 0 35%;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        background: transparent;
    }
    .overview-table td {
        flex: 1;
        background: transparent;
    }
    /* zebra — 홀수 행 컬러, 짝수 행 흰색 */
    .overview-table tr:nth-child(odd) { background: #f4f7fa; }
    .overview-table tr:nth-child(even) { background: #fff; }

    .cert-list { grid-template-columns: 1fr 1fr; }
    /* equipment table: mobile handled in dedicated block above */
    .product-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-gallery .pg-img { height: 160px; }
    .product-gallery .pg-name { padding: 12px 14px; font-size: 14px; }

    /* Bento — mobile */
    .bento-section { margin-bottom: 40px; }
    .bento-head { padding: 6px 0 10px; margin-bottom: 16px; gap: 10px; }
    .bento-head::after { width: 54px; height: 2px; }
    .bento-head-left { gap: 14px; }
    .bento-num { font-size: 42px; }
    .bento-title { font-size: 18px; gap: 8px; }
    .bento-title-en { font-size: 10px; letter-spacing: 1.5px; }
    .bento-desc { font-size: 13px; }
    .bento-count { font-size: 24px; }
    .bento-count small { font-size: 10px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 10px; }
    .bento-item.size-big { grid-column: span 2; grid-row: span 2; }
    .bento-item.size-wide { grid-column: span 2; grid-row: span 1; }
    .bento-item.size-tall { grid-column: span 1; grid-row: span 2; }
    .bento-img { padding: 0; }
    .bento-label { bottom: 8px; left: 8px; right: 8px; padding: 5px 10px; font-size: 10px; }
    .bento-item.size-big .bento-label { padding: 10px 14px; font-size: 14px; bottom: 12px; left: 12px; right: 12px; }
    .bento-item.size-wide .bento-label { font-size: 11px; }

    .cf-row { flex-direction: column; gap: 0; }
    .location-info { grid-template-columns: 1fr; gap: 12px; }
    .loc-item { padding: 14px; }
    .loc-item p { font-size: 16px; color: #000; }

    .org-tree { padding: 45px 0; }
    .org-card { padding: 14px 16px; border-radius: 12px; column-gap: 12px; background: linear-gradient(145deg, #3dd0ff 0%, #0f4f73 100%); }
    .org-card::before { height: 8px; background: linear-gradient(90deg, transparent, #e5e5e5, transparent); }
    .org-card__icon { width: 42px; height: 42px; font-size: 17px; }
    .org-card__title { font-size: 20px; }
    .org-card__role { font-size: 13px; letter-spacing: 1.2px; }
    .org-card--ceo { min-width: 230px; padding: 18px 26px; background: linear-gradient(180deg, #ff7400 0%, #ffa700 100%); }
    .org-card--ceo .org-card__icon { width: 48px; height: 48px; font-size: 20px; }
    .org-card--ceo .org-card__title { font-size: 23px; }
    .org-card--ceo .org-card__role { font-size: 13px; }
    .org-card--admin { min-width: 230px; padding: 16px 24px; }
    .org-card--admin .org-card__icon { width: 46px; height: 46px; font-size: 19px; }
    .org-card--admin .org-card__title { font-size: 20px; }
    .org-trunk { width: 1px; height: 28px; background: #ed6c00; }
    .org-distributor,
    .org-distributor--3 { display: none; }
    .org-dept-row,
    .org-dept-row--3 { grid-template-columns: 1fr; gap: 3px; }
    .org-branch__stem { width: 1px; height: 45px; margin: -3px; background: #ed6c00; }
    .org-subgroup { max-width: 280px; padding-top: 30px; }
    .org-subgroup::before { width: 1px; transform: translateX(-50%); }
    .org-subgroup__row { grid-template-columns: repeat(1, 1fr); gap: 12px; padding-top: 10px; }
    .org-subgroup__row::before { display: none; }
    .org-sub-item::before { width: 1px; height: auto; transform: translateX(-50%); }
    .org-sub-item::after { display: none; }
    .org-sub-card { font-size: 16px; padding: 11px 12px 11px 11px; }

    /* quality-flow-v2 mobile handled in dedicated block above */
}

@media screen and (max-width: 767px) {
    .bento-section {
        margin-bottom: 80px;
    }
}

/* ===== SMALL PHONE (≤640px) ===== */
@media screen and (max-width: 640px) {
    .sub-banner { height: 180px; }
    .sub-banner-title { font-size: 22px; margin-bottom: 10px; }
    .sub-content-area { padding: 32px 4% 50px; }
    .overview-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ov-feature { padding: 22px 12px; }
    .ov-icon svg { width: 42px; height: 42px; }
    .ov-feature h4 { font-size: 14px; margin-bottom: 8px; }
    .ov-feature p  { font-size: 12.5px; line-height: 1.55; }
    .overview-intro { margin-bottom: 42px; padding: 20px 16px; }
    .ov-intro-title { font-size: 18px; margin-bottom: 12px; }
    .ov-intro-body { font-size: 14.5px; line-height: 1.75; }
    .overview-features { margin-bottom: 42px; }
    .ov-feat-heading, .ov-table-heading { font-size: 20px; }
    .ov-icon svg { width: 48px; height: 48px; }
    .ov-feature h4 { font-size: 15px; }
    .ov-feature p { font-size: 14px; }
    .greeting-sign strong { font-size: 18px; }
}

/* ============================================================
   Member / Auth pages (login, signup, mypage, password)
   ============================================================ */

/* 서브 히어로 & 브레드크럼 (sub.php 레이아웃) */
.sub-hero {
    padding: 110px 0 70px;
    margin-top: 80px;
    background: linear-gradient(135deg, #1a2230, #2c3e5a);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(232,119,34,0.18), transparent 60%);
}
.sub-hero > .container { position: relative; z-index: 1; }
.sub-hero__eyebrow {
    font-size: 13px;
    letter-spacing: 0.3em;
    color: #ed6c00;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}
.sub-hero__title {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    line-height: 1.2;
    color: #fff;
}
.breadcrumb ol {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}
.breadcrumb li { list-style: none; }
.breadcrumb li + li::before {
    content: "›";
    margin-right: 10px;
    color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: rgba(255,255,255,0.72); }
.breadcrumb a:hover { color: #ed6c00; }

/* 섹션 & 컨테이너 */
.sub {
    /* padding: 80px 0 120px; */
    min-height: 400px;
    background: #fafbfc;
}
.sub > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Auth 박스 (로그인·가입·마이페이지 공용) */
.auth-box {
    max-width: 440px;
    margin: 0 auto;
    padding: 44px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(11,42,74,0.05);
}
.auth-box--wide { max-width: 760px; }
.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: #6b7480;
}
.auth-links a { color: #6b7480; }
.auth-links a:hover { color: #ed6c00; }
.auth-links__sep { margin: 0 8px; color: #e6e9ef; }

/* 폼 */
.form { max-width: 760px; margin: 0 auto; }
.form--auth { max-width: 440px; }
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a2230;
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field input[type=url],
.field input[type=number],
.field input[type=search],
.field input[type=date],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d8dde4;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: #1a2230;
    transition: border-color 0.22s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: #ed6c00;
    box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.field__hint { font-size: 13px; color: #6b7480; margin-top: 6px; }
.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-items: start;
    margin-bottom: 20px;
}
.field-row .field { margin-bottom: 0; }
.field--small input { max-width: 140px; }
.field--checks { display: flex; flex-wrap: wrap; gap: 18px; }
.field--checks label {
    font-weight: 400;
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 0;
}
.field--checks input[type=checkbox] { width: 16px; height: 16px; accent-color: #ed6c00; }
.field--agreement {
    padding: 15px 18px;
    background: #f6f7fa;
    border-radius: 4px;
}
.req { color: #d4443c; font-weight: 400; }

/* 버튼 (main.css-스타일, savem 테마와 공존) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 4px;
    transition: all 0.22s;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
    text-decoration: none;
}
.btn--primary {
    background: #ed6c00;
    color: #fff;
    border-color: #ed6c00;
}
.btn--primary:hover {
    background: #c96513;
    border-color: #c96513;
    color: #fff;
}
.btn--ghost-dark {
    background: transparent;
    color: #1a2230;
    border-color: #d8dde4;
}
.btn--ghost-dark:hover {
    background: #f6f7fa;
    border-color: #1a2230;
    color: #1a2230;
}
.btn--block { display: flex; width: 100%; }

/* 알림 */
.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
}
.alert--ok {
    background: #e8f5ee;
    color: #2e8b57;
    border: 1px solid #b9e0c8;
}
.alert--err {
    background: #fdecea;
    color: #d4443c;
    border: 1px solid #f5c6c1;
}
.alert--err ul { margin: 0 0 0 20px; padding: 0; list-style: disc; }
.alert--err li { list-style: disc; }

/* 폼 하단 액션 바 */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 22px;
    border-top: 1px solid #e6e9ef;
    margin-top: 28px;
    flex-wrap: wrap;
}
.form-actions .btn:not(:last-child) { margin-right: auto; }

/* 마이페이지 헤더 */
.mypage-head {
    padding-bottom: 22px;
    border-bottom: 2px solid #1a2230;
    margin-bottom: 26px;
}
.mypage-head h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #1a2230;
}
.mypage-head__meta {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: #6b7480;
    flex-wrap: wrap;
}
.mypage-head__meta strong { color: #ed6c00; font-weight: 600; }

/* 모바일 */
@media (max-width: 640px) {
    .sub-hero { padding: 70px 0 50px; margin-top: 56px; }
    /* .sub { padding: 50px 0 80px; } */
    .auth-box { padding: 28px 20px; }
    .form-actions { justify-content: stretch; }
    .form-actions .btn { flex: 1; }
    .form-actions .btn:not(:last-child) { margin-right: 0; }
}

/* ============================================================
   Full Board pages (/board/...) — list / view / write / pagination
   ============================================================ */
section.sub {
    padding: 70px 0 110px;
    min-height: 400px;
    background: #fff;
}
section.sub > .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 6%;
}
@media (max-width: 1024px) { section.sub > .container { padding: 0 5%; } }
@media (max-width: 640px)  { section.sub > .container { padding: 0 18px; } section.sub { padding: 50px 0 80px; } }

/* Board Tools (search + write) */
.board-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.board-tools__right {
    display: flex;
    gap: 6px;
    align-items: center;
}
.board-search {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.board-search select,
.board-search input[type="search"] {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d5dee7;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #17243a;
}
.board-search input[type="search"] { min-width: 240px; }
.board-search input[type="search"]:focus,
.board-search select:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 0 0 0 3px rgba(0,104,183,0.12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary {
    background: #0068b7;
    color: #fff;
    border-color: #0068b7;
}
.btn--primary:hover {
    background: #005390;
    border-color: #005390;
}
.btn--ghost {
    background: #fff;
    color: #4a5567;
    border-color: #d5dee7;
}
.btn--ghost:hover {
    border-color: #0068b7;
    color: #0068b7;
}
.btn--danger {
    background: #fff;
    color: #b03238;
    border-color: #f3bcc1;
}
.btn--danger:hover {
    background: #b03238;
    color: #fff;
    border-color: #b03238;
}

/* Board Table */
.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #0068b7;
}
.board-table th {
    padding: 16px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #4a5567;
    background: #f7f9fc;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0;
}
.board-table td {
    padding: 18px 10px;
    font-size: 17px;
    border-bottom: 1px solid #eef2f7;
    color: #17243a;
}
.board-table .col-num { width: 80px; text-align: center; color: #8a95a7; font-size: 14px; }
.board-table .col-title { text-align: left; font-size: 17px; }
.board-table .col-author,
.board-table .col-date,
.board-table .col-views { width: 110px; text-align: center; color: #6f7a8c; font-size: 14px; }
.board-table .col-actions { width: 100px; text-align: center; }
.board-table .row-act-form { display: inline-block; margin: 0; }
.board-table .row-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    margin: 0 2px;
    border-radius: 6px;
    border: 1px solid #d5dee7;
    background: #fff;
    color: #6f7a8c;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.board-table .row-act--edit:hover { color: #0068b7; border-color: #0068b7; background: #f3f9ff; }
.board-table .row-act--del:hover { color: #b03238; border-color: #f3bcc1; background: #fdebec; }
.board-table .col-date { font-size: 14px; }
.board-table .col-title a {
    font-weight: 500;
    color: #17243a;
    text-decoration: none;
    transition: color 0.2s;
}
.board-table .col-title a:hover { color: #0068b7; }
.board-table tr.is-notice { background: #fafbfd; }
.board-table tr.is-notice td { font-weight: 500; }
.board-table tr:hover { background: #fafbfd; }
.board-table__empty {
    text-align: center;
    padding: 80px 20px !important;
    color: #98a4b5;
    font-size: 14px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
    vertical-align: 1px;
}
.badge--notice {
    background: #0068b7;
    color: #fff;
}
.badge--cat {
    background: #eef3f8;
    color: #4a5567;
    border: 1px solid #d5dee7;
}
.badge--secret { background: #888; color: #fff; }
.comment-count {
    color: #ed6c00;
    font-size: 13px;
    margin-left: 4px;
    font-weight: 600;
}
.ico-file, .ico-lock { font-size: 12px; margin-left: 4px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}
.pagination a,
.pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #d5dee7;
    border-radius: 6px;
    color: #6f7a8c;
    background: #fff;
    font-weight: 500;
    text-decoration: none;
}
.pagination a:hover { border-color: #0068b7; color: #0068b7; }
.pagination strong { background: #0068b7; color: #fff; border-color: #0068b7; }
.pagination__edge { font-size: 18px; }

/* Post view — modernized */
.post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(11,42,74,0.06);
    border: 1px solid #eef2f7;
    padding: 40px 44px;
    margin-bottom: 24px;
}
.post__head {
    padding-bottom: 22px;
    border-bottom: 2px solid #0068b7;
    margin-bottom: 0;
    position: relative;
}
.post__head .badge { margin-bottom: 12px; }
.post__title {
    font-size: 30px;
    font-weight: 800;
    margin: 6px 0 18px;
    line-height: 1.35;
    color: #17243a;
    letter-spacing: -0.5px;
}
.post__meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #6f7a8c;
    font-size: 13px;
    align-items: center;
}
.post__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post__author { font-weight: 600; color: #0068b7; }
.post__author::before { content: "\f007"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; opacity: 0.8; }
.post__date::before { content: "\f017"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; opacity: 0.7; }
.post__views::before { content: "\f06e"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; opacity: 0.7; }

.post__files {
    margin: 24px 0 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f4f9ff, #eef5fc);
    border-radius: 10px;
    border: 1px solid #d9e6f4;
}
.post__files-title {
    font-weight: 700;
    margin: 0 0 10px;
    font-size: 13px;
    color: #0068b7;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post__files-title::before { content: "\f0c6"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.post__files ul { display: flex; flex-direction: column; gap: 6px; list-style: none; padding: 0; margin: 0; }
.post__files li {
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.2s;
}
.post__files li:hover { background: #f7f9fc; }
.post__files li a {
    color: #17243a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.post__files li a:hover { color: #0068b7; }
.post__files-size { color: #8a95a7; font-size: 12px; margin-left: auto; }

.post__body {
    padding: 28px 0 36px;
    min-height: 200px;
    font-size: 18px;
    line-height: 1.85;
    color: #2c3a52;
}
.post__body img { margin: 14px 0; border-radius: 8px; max-width: 100%; height: auto; }
.post__body p { margin: 0 0 16px; }
.post__body a { color: #0068b7; text-decoration: underline; }
.post__body h1, .post__body h2, .post__body h3 { margin: 24px 0 12px; font-weight: 700; color: #17243a; }
.post__body blockquote { border-left: 4px solid #0068b7; margin: 16px 0; padding: 8px 18px; background: #f7f9fc; color: #4a5567; font-style: italic; }
.post__body pre { background: #1e2837; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; }
.post__body ul, .post__body ol { padding-left: 22px; margin: 0 0 16px; }

.post__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
    gap: 12px;
    flex-wrap: wrap;
}
.post__actions { display: flex; gap: 8px; }

/* Make sure foot buttons look like proper buttons */
.post__foot .btn,
.post__foot a.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d5dee7;
    background: #fff;
    color: #4a5567;
    transition: all 0.2s;
    cursor: pointer;
}
.post__foot a.btn:hover,
.post__foot .btn:hover { border-color: #0068b7; color: #0068b7; background: #f3f9ff; }
.post__foot .btn--danger {
    border-color: #f3bcc1;
    color: #b03238;
}
.post__foot .btn--danger:hover {
    background: #b03238;
    color: #fff;
    border-color: #b03238;
}

/* Prev/Next navigation as cards */
.post-nav {
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    color: #17243a;
    transition: all 0.25s ease;
}
.post-nav__item:hover {
    border-color: #0068b7;
    background: #f3f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,104,183,0.08);
}
.post-nav__label {
    font-size: 11px;
    color: #8a95a7;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post-nav__item:nth-child(1) .post-nav__label::before {
    content: "\f060";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.post-nav__item:nth-child(2) {
    text-align: right;
    align-items: flex-end;
}
.post-nav__item:nth-child(2) .post-nav__label::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 4px;
}
.post-nav__title {
    color: #17243a;
    font-weight: 500;
    line-height: 1.5;
}
.post-nav__item:hover .post-nav__title { color: #0068b7; }

@media screen and (max-width: 768px) {
    .post { padding: 26px 22px; border-radius: 12px; }
    .post__title { font-size: 22px; }
    .post__body { padding: 20px 0 28px; font-size: 16px; }
    .post__foot .btn { height: 38px; padding: 0 16px; font-size: 13px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__item:nth-child(2) { text-align: left; align-items: flex-start; }
}

/* Comments — modernized card */
.comments {
    margin-top: 0;
    padding: 32px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(11,42,74,0.05);
    border: 1px solid #eef2f7;
}
.comments__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 22px;
    color: #17243a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments__title::before {
    content: "\f075";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0068b7;
    font-size: 16px;
}
.comments__title span {
    margin-left: auto;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ed6c00, #ff9a3c);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.comments__list { list-style: none; padding: 0; margin: 0 0 18px; }
.comment {
    padding: 16px 18px;
    margin-bottom: 8px;
    background: #f7f9fc;
    border-radius: 10px;
    border-left: 3px solid #0068b7;
    border-bottom: none;
}
.comment__head {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}
.comment__head strong { font-size: 14px; color: #0068b7; font-weight: 700; }
.comment__date { font-size: 12px; color: #8a95a7; }
.comment__body { font-size: 14px; color: #2c3a52; line-height: 1.7; }
.comments__empty {
    list-style: none;
    padding: 50px 20px;
    text-align: center;
    color: #98a4b5;
    font-size: 14px;
    background: #f7f9fc;
    border-radius: 12px;
    border: 1px dashed #d9e1eb;
}
.comments__empty::before {
    content: "\f4ad";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    font-size: 32px;
    color: #c5d4e3;
    margin-bottom: 10px;
}
.comments__login {
    margin-top: 14px;
    padding: 28px 22px;
    text-align: center;
    background: linear-gradient(135deg, #f4f9ff, #eef5fc);
    border-radius: 12px;
    color: #4a5567;
    font-size: 14px;
    border: 1px solid #d9e6f4;
}
.comments__login a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 6px;
    padding: 6px 16px;
    background: #0068b7;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.comments__login a:hover {
    background: #005390;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,104,183,0.25);
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    background: #f7f9fc;
    border-radius: 12px;
}
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #d5dee7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 90px;
    background: #fff;
    transition: all 0.2s;
}
.comment-form textarea:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 0 0 0 3px rgba(0,104,183,0.10);
}
.comment-form button { align-self: flex-end; }

/* Single nav item — expand to full width */
.post-nav:has(> .post-nav__item:only-child) { grid-template-columns: 1fr; }

@media screen and (max-width: 768px) {
    .comments { padding: 24px 20px; border-radius: 12px; }
}

/* ============================================================
   Board Write — Modern card design
   ============================================================ */
.write-card {
    max-width: 1020px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(11,42,74,0.06);
    padding: 36px 40px;
    border: 1px solid #eef2f7;
}
.write-card__head {
    margin: 0 0 28px;
    padding-bottom: 22px;
    border-bottom: 2px solid #0068b7;
}
.write-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #17243a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.write-card__title i { color: #0068b7; font-size: 20px; }
.write-card__sub {
    font-size: 13px;
    color: #8a95a7;
    margin: 0;
    letter-spacing: 0.3px;
}
.write-form { display: flex; flex-direction: column; gap: 18px; }
.write-form .write-field { display: flex; flex-direction: column; gap: 8px; }
.write-form .write-field label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5567;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.write-form .write-field label .req { color: #ed6c00; }
.write-form .write-field input[type="text"],
.write-form .write-field select,
.write-form .write-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d5dee7;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #17243a;
    transition: all 0.2s;
}
.write-form .write-field input:focus,
.write-form .write-field select:focus,
.write-form .write-field textarea:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 0 0 0 4px rgba(0,104,183,0.10);
}
.write-form .write-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Quill Editor overrides */
.quill-editor {
    min-height: 320px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}
.ql-toolbar.ql-snow {
    border: 1.5px solid #d5dee7;
    border-radius: 10px 10px 0 0;
    background: #f7f9fc;
    border-bottom: none;
}
.ql-container.ql-snow {
    border: 1.5px solid #d5dee7;
    border-radius: 0 0 10px 10px;
    font-family: inherit;
    font-size: 15px;
}
.ql-editor {
    min-height: 320px;
    line-height: 1.7;
}
.ql-editor.ql-blank::before {
    color: #a7b1c2;
    font-style: normal;
}
.write-form .write-row .write-field { flex: 1; min-width: 200px; }

/* Check chips */
.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid #d5dee7;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #4a5567;
    transition: all 0.2s;
    user-select: none;
}
.check-chip input { display: none; }
.check-chip span { display: inline-flex; align-items: center; gap: 6px; }
.check-chip i { color: #8a95a7; font-size: 12px; }
.check-chip:hover { border-color: #0068b7; color: #0068b7; }
.check-chip:has(input:checked) {
    background: #0068b7;
    border-color: #0068b7;
    color: #fff;
}
.check-chip:has(input:checked) i { color: #fff; }
.write-row--checks { gap: 8px; }

/* Dropzone file counter / actions / link manager */
.dz-counter {
    margin-left: 8px;
    padding: 2px 9px;
    background: #eef3f8;
    color: #0068b7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.dz-counter.is-over { background: #fdebec; color: #b03238; }
.dz-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.field-hint {
    font-size: 12px;
    color: #8a95a7;
    font-weight: 500;
    margin-left: 6px;
}

/* Link manager */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.link-row .link-label {
    flex: 0 0 180px;
    padding: 10px 12px;
    border: 1.5px solid #d5dee7;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}
.link-row .link-url {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid #d5dee7;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #0068b7;
}
.link-row input:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 0 0 0 3px rgba(0,104,183,0.10);
}
.link-row .link-remove {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1.5px solid #f3bcc1;
    background: #fff;
    color: #b03238;
    cursor: pointer;
    transition: all 0.2s;
}
.link-row .link-remove:hover { background: #b03238; color: #fff; }

@media screen and (max-width: 768px) {
    .link-row { flex-wrap: wrap; }
    .link-row .link-label { flex: 1 1 100%; }
    .link-row .link-url { flex: 1 1 calc(100% - 44px); }
}

/* Dropzone (multi-file) */
.dropzone {
    position: relative;
    border: 2px dashed #c5d4e3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #f3f7fc);
    padding: 30px 24px;
    transition: all 0.2s;
    cursor: pointer;
}
.dropzone:hover { border-color: #0068b7; background: #f3f9ff; }
.dropzone.is-drag {
    border-color: #ed6c00;
    background: #fff5ec;
    box-shadow: 0 0 0 4px rgba(237,108,0,0.10);
}
.dropzone__input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.dropzone__inner {
    text-align: center;
    pointer-events: none;
}
.dropzone__icon {
    font-size: 38px;
    color: #0068b7;
    margin-bottom: 10px;
    display: block;
}
.dropzone__text { font-size: 14px; color: #4a5567; margin: 0 0 4px; }
.dropzone__text strong { color: #0068b7; font-weight: 700; }
.dropzone__hint { font-size: 12px; color: #8a95a7; margin: 0; }

.dropzone__list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: none;
    gap: 6px;
    flex-direction: column;
}
.dropzone.has-files .dropzone__list { display: flex; }
.dropzone__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}
.dropzone__item i { color: #0068b7; font-size: 14px; }
.dropzone__item .dz-name { flex: 1; color: #17243a; font-weight: 500; word-break: break-all; }
.dropzone__item .dz-size { color: #8a95a7; font-size: 12px; flex-shrink: 0; }
.dropzone__remove {
    background: transparent;
    border: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    color: #8a95a7;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.dropzone__remove:hover { background: #fdebec; color: #b03238; }

/* Existing files (edit mode) */
.file-existing {
    list-style: none;
    margin: 14px 0 0;
    padding: 12px 16px;
    background: #f7f9fc;
    border-radius: 10px;
    font-size: 13px;
}
.file-existing__title { font-weight: 600; color: #4a5567; margin: 0 0 6px; font-size: 12px; }
.file-existing li { padding: 4px 0; color: #4a5567; }
.file-existing li i { color: #0068b7; margin-right: 4px; }
.file-existing li span { color: #8a95a7; font-size: 12px; margin-left: 4px; }

.write-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .write-card { padding: 24px 18px; border-radius: 12px; }
    .write-card__title { font-size: 18px; }
    .dropzone { padding: 22px 16px; }
    .dropzone__icon { font-size: 30px; }
    .write-actions .btn { flex: 1; }
}

/* Form fields shared */
.form { max-width: 1020px; margin: 0 auto; }
.form .field { margin-bottom: 18px; }
.form .field label { display: block; font-size: 14px; font-weight: 600; color: #4a5567; margin-bottom: 6px; }
.form .field input[type="text"],
.form .field input[type="email"],
.form .field input[type="url"],
.form .field input[type="tel"],
.form .field textarea,
.form .field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d5dee7;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #17243a;
}
.form .field textarea { min-height: 240px; resize: vertical; }
.form .field input:focus,
.form .field textarea:focus,
.form .field select:focus {
    outline: none;
    border-color: #0068b7;
    box-shadow: 0 0 0 3px rgba(0,104,183,0.12);
}
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert--ok { background: #e7f7ed; border: 1px solid #b9e3c6; color: #1d6b3a; }
.alert--err { background: #fdebec; border: 1px solid #f3bcc1; color: #b03238; }

/* ============================================================
   Lightbox (product image popup)
   ============================================================ */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 38, 0.92);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 40px 80px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lb-overlay.is-open {
    display: flex;
    opacity: 1;
    animation: lbFade 0.25s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-close {
    position: absolute;
    top: 24px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.30);
    font-size: 22px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.lb-close:hover {
    background: #fff;
    color: #0a1929;
    transform: rotate(90deg);
}
.lb-stage {
    width: 100%;
    height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prev/Next navigation */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.30);
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.lb-nav:hover { background: #fff; color: #0a1929; }
.lb-nav--prev { left: 30px; }
.lb-nav--next { right: 30px; }
.lb-overlay.lb-single .lb-nav { display: none; }

/* Thumbnail strip at bottom */
.lb-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.30) transparent;
    margin-top: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}
.lb-thumbs::-webkit-scrollbar { height: 6px; }
.lb-thumbs::-webkit-scrollbar-track { background: transparent; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.20); border-radius: 3px; }
.lb-thumb {
    flex-shrink: 0;
    width: 100px; height: 100px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    opacity: 0.55;
}
.lb-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.4);
    transform-origin: center;
    display: block;
}
.lb-thumb:hover {
    opacity: 0.85;
    border-color: rgba(255,255,255,0.50);
}
.lb-thumb.is-active {
    opacity: 1;
    border-color: #0068b7;
    box-shadow: 0 0 0 3px rgba(0,104,183,0.30);
}
.lb-overlay.lb-single .lb-thumbs { display: none; }
.lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    background: #fff;
    animation: lbZoom 0.3s ease;
}
@keyframes lbZoom { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-caption {
    margin-top: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Cursor hint on bento images */
.bento-item .bento-img { cursor: zoom-in; }

@media screen and (max-width: 768px) {
    .lb-overlay { padding: 50px 12px 60px; }
    .lb-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 18px; }
    .lb-caption { font-size: 13px; }
    .lb-stage { height: calc(100vh - 250px); }
    .lb-nav { width: 40px; height: 40px; font-size: 16px; }
    .lb-nav--prev { left: 10px; }
    .lb-nav--next { right: 10px; }
    .lb-thumb { width: 56px; height: 56px; }
    .lb-thumbs { padding: 6px 8px; gap: 6px; }
}

/* ============================================================
   Support Board — Teaser list (notice / qna / download)
   ============================================================ */
.board-area { margin-top: 10px; }
.board-list {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #0068b7;
}
.board-list thead th {
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5567;
    background: #f7f9fc;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.board-list thead th.bl-title { width: auto; }
.board-list thead th.bl-author { width: 140px; text-align: center; }
.board-list thead th.bl-date { width: 130px; text-align: center; }
.board-list tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    font-size: 15px;
    color: #17243a;
    vertical-align: middle;
}
.board-list tbody tr:hover { background: #fafbfd; }
.board-list .bl-title a {
    color: #17243a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.board-list .bl-title a:hover { color: #0068b7; }
.board-list .bl-author,
.board-list .bl-date {
    text-align: center;
    color: #6f7a8c;
    font-size: 14px;
}
.board-list .bl-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}
/* mobile inline meta — hidden on desktop */
.board-list .bl-meta { display: none; }
.board-more {
    text-align: center;
    margin-top: 30px;
}
.board-more .btn-outline i { margin-left: 8px; }

/* Mobile: stack rows, hide author/date columns, show meta inline */
@media screen and (max-width: 768px) {
    .board-list { border-top: 2px solid #0068b7; }
    .board-list thead { display: none; }
    .board-list tbody td.bl-author,
    .board-list tbody td.bl-date { display: none; }
    .board-list tbody td.bl-title {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid #eef2f7;
    }
    .board-list tbody tr { display: block; }
    .board-list tbody tr:hover { background: transparent; }
    .board-list .bl-title a {
        display: block;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.5;
        margin-bottom: 6px;
    }
    .board-list .bl-meta {
        display: flex;
        gap: 6px;
        font-size: 12px;
        color: #8a95a7;
    }
    .board-list .bl-meta-sep { color: #d4dae3; }
    .board-list .bl-empty {
        display: block;
        padding: 40px 16px;
    }
    .board-more { margin-top: 22px; }
}

/* ============================================================
   Full Board view (/board/...) — mobile responsiveness
   ============================================================ */
@media screen and (max-width: 768px) {
    .board-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .board-search {
        display: flex;
        gap: 6px;
        width: 100%;
    }
    .board-search__type {
        flex-shrink: 0;
        width: 80px;
    }
    .board-search input[type="search"] {
        flex: 1;
        min-width: 0;
    }
    .board-table thead th.col-num,
    .board-table thead th.col-author,
    .board-table thead th.col-views { display: none; }
    .board-table tbody td.col-num,
    .board-table tbody td.col-author,
    .board-table tbody td.col-views { display: none; }
    .board-table tbody td.col-title { padding: 14px 10px; font-size: 14px; }
    .board-table tbody td.col-date { width: 80px; padding: 14px 6px; font-size: 12px; color: #8a95a7; }
}

/* ============================================================
   Admin Login — Modern card design
   ============================================================ */
.auth-page {
    background: linear-gradient(135deg, #f3f7fc 0%, #e7eef6 100%);
    padding: 70px 0 90px;
    min-height: calc(100vh - 320px);
    display: flex;
    align-items: center;
}
.auth-page .container { width: 100%; }
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 44px 36px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(11,42,74,0.10), 0 4px 12px rgba(11,42,74,0.04);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0068b7 0%, #00a3c1 50%, #ed6c00 100%);
}
.auth-card__head {
    text-align: center;
    margin-bottom: 34px;
}
.auth-card__icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #0068b7, #00a3c1);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 24px rgba(0,104,183,0.30);
}
.auth-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #17243a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.auth-card__subtitle {
    font-size: 13px;
    color: #6f7a8c;
    margin: 0;
    letter-spacing: 0.2px;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}
.auth-alert i { font-size: 14px; flex-shrink: 0; }
.auth-alert--ok {
    background: #e7f7ed;
    border: 1px solid #b9e3c6;
    color: #1d6b3a;
}
.auth-alert--err {
    background: #fdebec;
    border: 1px solid #f3bcc1;
    color: #b03238;
}

.auth-form .auth-field { margin-bottom: 16px; }
.auth-form .auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5567;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}
.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input__icon {
    position: absolute;
    left: 16px;
    color: #98a4b5;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}
.auth-input input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: #f7f9fc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #17243a;
    transition: all 0.2s;
}
.auth-input input::placeholder { color: #a7b1c2; }
.auth-input input:focus {
    outline: none;
    background: #fff;
    border-color: #0068b7;
    box-shadow: 0 0 0 4px rgba(0,104,183,0.12);
}
.auth-input input:focus + .auth-input__icon,
.auth-input:focus-within .auth-input__icon { color: #0068b7; }

.auth-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0068b7 0%, #005390 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,104,183,0.25);
    transition: all 0.25s ease;
}
.auth-btn:hover {
    background: linear-gradient(135deg, #005390 0%, #003e6e 100%);
    box-shadow: 0 12px 28px rgba(0,104,183,0.35);
    transform: translateY(-1px);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn i { font-size: 14px; }

.auth-foot {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
    text-align: center;
}
.auth-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f7a8c;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-foot a:hover { color: #0068b7; }
.auth-foot a i { font-size: 13px; opacity: 0.7; }

@media screen and (max-width: 640px) {
    .auth-page { padding: 50px 0 70px; }
    .auth-card { padding: 36px 24px 28px; border-radius: 14px; max-width: 100%; }
    .auth-card__icon { width: 56px; height: 56px; font-size: 22px; margin-bottom: 14px; }
    .auth-card__title { font-size: 20px; }
    .auth-input input { padding: 12px 14px 12px 40px; font-size: 14px; }
    .auth-input__icon { left: 14px; font-size: 13px; }
}
