/* =========================================
           [INTEGRATED DESIGN SYSTEM]
           ========================================= */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-dark: #0f1219;

    --navy-deep: #0A1128;
    --gold-primary: #d4af37;

    --ci-yellow: #F5C31A;
    --ci-green: #4FA53A;
    --ci-red: #D63A2F;
    --ci-blue: #1F5FA8;

    --sky-bg: #e0f2fe;
    --sky-hover: #bae6fd;
    --sky-text: #0284c7;

    --text-body: #333333;
    --text-sub: #555555;
    --text-white: #ffffff;

    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --fs-h1: 3.2rem;
    --fs-h2: 2.4rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.05rem;
}

@media (max-width: 1024px) {
    :root { --fs-h1: 2.5rem; --fs-h2: 2rem; --fs-h3: 1.35rem; }
}
@media (max-width: 768px) {
    :root { --fs-h1: 2rem; --fs-h2: 1.75rem; --fs-h3: 1.25rem; --fs-body: 1rem; }
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background-color: var(--bg-white); color: var(--text-body); line-height: 1.7; word-break: keep-all; min-width: 768px; }
a { text-decoration: none; color: inherit; transition: var(--transition); cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
@media (max-width: 768px) { .container { padding: 0 20px; } .section-padding { padding: 70px 0; } }

.txt-point { color: var(--navy-deep); font-weight: 800; margin: 0 2px; }

.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Header */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0;
    transition: all 0.4s ease; opacity: 1; pointer-events: auto; min-width: 768px;
}
body.scrolled header { opacity: 0; pointer-events: none; transform: translateY(-20px); }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 10px; cursor: pointer;}
.logo-img { height: 50px; width: auto; }
.logo-text { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1;}
.logo-text span { color: var(--gold-primary); }

.gnb { display: flex; gap: 40px; }
.gnb li a { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.7); position: relative; padding-bottom: 5px; }
.gnb li a:hover, .gnb li a.current { color: var(--gold-primary); font-weight: 700; }
.gnb li a.current::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--gold-primary); }

/* Hamburger */
.hamburger-btn {
    position: fixed; top: 18px; right: 24px; z-index: 9999;
    width: 46px; height: 46px; background: var(--navy-deep); color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; transform: translateY(-20px) scale(0.9);
    pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media (min-width: 1360px) { .hamburger-btn { right: calc(50% - 640px + 24px); } }
body.scrolled .hamburger-btn { opacity: 1; top: 8px; transform: translateY(0) scale(1); pointer-events: auto; }
@media (max-width: 1024px) {
    .hamburger-btn { opacity: 1 !important; top: 8px !important; transform: translateY(0) scale(1) !important; pointer-events: auto !important; }
    header { display: none; }
}

/* Side Menu */
.side-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2500; opacity: 0; visibility: hidden; transition: 0.3s; }
.side-menu-overlay.open { opacity: 1; visibility: visible; }
.side-menu { position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; background: var(--bg-white); z-index: 3000; padding: 40px 30px; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); overflow-y: auto; }
.side-menu.open { right: 0; }
.side-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.side-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.side-logo .logo-text { color: var(--navy-deep); font-size: 20px; }
.side-close { font-size: 24px; color: var(--text-body); cursor: pointer; transition: 0.3s; }
.side-close:hover { color: var(--ci-red); transform: rotate(90deg); }

.side-gnb { display: flex; flex-direction: column; gap: 0; }
.side-gnb li { position: relative; }
.side-gnb-item { display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid #eee; padding: 18px 0; }
.side-gnb-item a, .side-gnb-item span { font-size: 18px; font-weight: 600; color: var(--navy-deep); flex-grow: 1; }
.side-gnb-item:hover a, .side-gnb-item:hover span { color: var(--gold-primary); }
.menu-arrow { font-size: 14px; color: #999; transition: 0.3s; }
.side-gnb li.active .menu-arrow { transform: rotate(180deg); color: var(--gold-primary); }

.side-sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #f9f9f9; border-radius: 8px; }
.side-sub-menu li a { font-size: 15px; color: #666; padding: 12px 15px; border-bottom: 1px solid rgba(0,0,0,0.03); display: block; transition: 0.2s; }
.side-sub-menu li a:last-child { border-bottom: none; }
.side-sub-menu li a:hover { color: var(--navy-deep); font-weight: 700; background: #f0f0f0; padding-left: 20px; }
.side-sub-menu li a::before { content: '•'; margin-right: 8px; color: var(--gold-primary); font-size: 12px; }

/* Sub Hero */
.sub-hero { height: 240px; display: flex; align-items: center; justify-content: center; position: relative; background-color: var(--navy-deep); background-size: cover; background-position: center; margin-top: 0; }
@media (max-width: 768px) { .sub-hero { height: 180px; margin-top: 0; } }
.sub-hero::after { content: ''; position: absolute; inset: 0; background: rgba(10, 17, 40, 0.4); }
.sub-content { position: relative; z-index: 2; text-align: center; color: #fff; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.sub-content h2 { font-size: 2.8rem; font-weight: 800; margin: 0; }

/* Tab System */
.tab-container { margin-top: 0; background: #fff; position: sticky; top: 80px; z-index: 900; border-bottom: 1px solid #eee; margin-bottom: 0px; transition: top 0.3s, box-shadow 0.3s; }
body.scrolled .tab-container { top: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
@media (max-width: 1024px) { .tab-container { top: 0; } }

.tab-nav { display: flex; justify-content: center; gap: 0; max-width: 900px; margin: 0 auto; flex-wrap: wrap;}
.tab-btn { flex: 1; min-width: 120px; padding: 20px 10px; text-align: center; background: transparent; border: none; border-bottom: 3px solid transparent; font-size: 1.1rem; font-weight: 500; color: #888; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.tab-btn:hover { color: var(--navy-deep); background: #fdfdfd; }
.tab-btn.active { color: var(--navy-deep); font-weight: 800; border-bottom-color: var(--gold-primary); }
@media (max-width: 768px) {
    .tab-btn { flex: 1; min-width: 30px; padding: 8px 5px; text-align: center; background: transparent; border: none; border-bottom: 3px solid transparent; font-size: 0.7rem; font-weight: 500; color: #888; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
}
.tab-pane { display: none; animation: fadeEffect 0.6s; }
.tab-pane.active { display: block; }
@keyframes fadeEffect { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

/* Common Elements */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: var(--fs-h2); font-weight: 800; color: var(--navy-deep); margin-bottom: 15px; line-height: 1.3; word-break: keep-all; }
.section-header p { font-size: var(--fs-body); color: var(--text-sub); max-width: 700px; margin: 0 auto; }
.value-highlight { display: inline-block; position: relative; z-index: 1; }
.value-highlight::after { content: ''; position: absolute; bottom: 3px; left: 0; width: 100%; height: 12px; background: rgba(212, 175, 55, 0.35); z-index: -1; border-radius: 2px; transform: skewX(0); }
@media (max-width: 768px) {
    .section-header h3 { font-size: 1rem; color: var(--navy-deep);}
    .section-header { text-align: center; margin-bottom: 20px; }
    .section-header h2 { font-size: 1rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 15px; line-height: 1.3; word-break: keep-all; }
    .section-header p { font-size: 1rem; color: var(--text-sub); max-width: 700px; margin: 0 auto; }
    .value-highlight { display: inline-block; position: relative; z-index: 1; }
    .value-highlight::after { content: ''; position: absolute; bottom: 3px; left: 0; width: 100%; height: 12px; background: rgba(212, 175, 55, 0.35); z-index: -1; border-radius: 2px; transform: skewX(0); }
}
/* [수정됨] Checkpoint Accordion -> Static List */
.checkpoint-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cp-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    /* 클릭 효과 제거하고 기본적으로 '활성화'된 느낌의 스타일 적용 */
}
.cp-header {
    padding: 25px 30px;
    display: flex; align-items: center; justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #f5f5f5; /* 구분선 추가 */
}
.cp-title-wrap { display: flex; align-items: center; gap: 20px; }
.cp-num {
    width: 40px; height: 40px;
    background: var(--gold-primary); /* 항상 활성화 색상 */
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px;
}
.cp-title { font-size: 1.25rem; font-weight: 700; color: var(--navy-deep); }
/* .cp-arrow { display: none; } 화살표 제거 */

.cp-body {
    /* [수정] 항상 보이도록 설정 */
    display: block;
    background: #fafafa;
}
.cp-content { padding: 30px; color: #555; line-height: 1.7; font-size: 1rem; }
@media (max-width: 768px) {
    .cp-header { padding: 20px; }
    .cp-title { font-size: 1.1rem; }
    .cp-num { width: 32px; height: 32px; font-size: 14px; gap: 15px; }
    .cp-content { padding: 20px; font-size: 0.7rem; }
    .risk-desc{ font-size: 0.7rem; }
}

/* [수정됨] Risk & Checklist Styles */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 768px) { .guide-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* Risk - Static List (Open) */
.risk-toggle-item {
    background: #fff;
    border: 1px solid #ffecec;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(255, 200, 200, 0.1);
}
.risk-header {
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    background: #fff9f9;
    border-bottom: 1px solid #ffecec; /* 구분선 추가 */
}
.risk-title-group { display: flex; align-items: center; gap: 15px; }
.risk-icon { color: var(--ci-red); font-size: 22px; }
.risk-title { font-weight: 700; color: var(--navy-deep); font-size: 1.1rem; }

.risk-body {
    /* [수정] 항상 보이도록 설정 */
    display: block;
    background: #fff;
}

.risk-content-box { padding: 25px; background: #fdfdfd; border-left: 4px solid var(--ci-red); }
.risk-desc { font-size: 0.95rem; color: #444; line-height: 1.7; margin: 0; }

/* Checklist Toggle Item */
.check-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}
.check-toggle-item:hover { background: #f9f9f9; }
.check-toggle-item.checked {
    background: var(--sky-bg);
    border-color: var(--sky-text);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
    transform: translateY(-2px);
}
.check-icon { font-size: 20px; color: #e0e0e0; transition: 0.2s; flex-shrink: 0; }
.check-toggle-item.checked .check-icon { color: var(--sky-text); }
.check-txt {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-deep);
    transition: 0.2s;
    line-height: 1.4;
}
.check-toggle-item.checked .check-txt { color: var(--sky-text); }

/* --- Page Styles --- */
/* Home */
.hero { height: 100vh; min-height: 700px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; background-color: var(--navy-deep); overflow: hidden; }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center/cover; background-attachment: fixed; z-index: 0; animation: heroReveal 3s ease-out forwards; }
@media (max-width: 768px) { .hero-bg-img { background-attachment: scroll; } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(31, 37, 51, 0.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 1000px; padding: 60px 20px 0; }
.hero-slogan { font-size: var(--fs-h1); font-weight: 800; line-height: 1.3; margin-bottom: 50px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-dynamic-desc { height: 80px; display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }
.desc-text { font-size: 20px; font-weight: 400; color: #fff; opacity: 0; transition: opacity 0.5s ease; position: absolute; width:100%; text-align: center; max-width: 800px; }
.desc-text.active { opacity: 1; }

.core-values { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;}
.val-item { text-align: center; color: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s; position: relative; font-size: 1.1rem; }
.val-item.active { color: var(--gold-primary); transform: scale(1.1); font-weight: 700; opacity: 1; }
.val-item::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gold-primary); transition: 0.3s; }
.val-item.active::after { width: 100%; }

/* [Home] Service & Philosophy & History */
.home-service { background: #fff; }
.home-philosophy { background: var(--bg-light); text-align: center; }
.philosophy-text { font-size: 28px; font-weight: 700; color: var(--navy-deep); line-height: 1.6; max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) { .philosophy-text { font-size: 20px; } }

.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 1024px) { .history-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .history-grid { grid-template-columns: repeat(3, 1fr); } }
.history-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-card); }
.history-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.history-item:hover img { transform: scale(1.1); }
.history-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; opacity: 0; transition: 0.3s; }
.history-item:hover .history-overlay { opacity: 1; }
.history-overlay h4 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.history-overlay p { font-size: 14px; opacity: 0.8; }

/* Company */
.value-slogan { font-size: 42px; font-weight: 800; color: var(--navy-deep); line-height: 1.4; margin-bottom: 40px; text-align: center; }
@media (max-width:768px) { .value-slogan { font-size: 28px; } }
.value-desc { font-size: 19px; max-width: 900px; margin: 0 auto; color: #555; text-align: center; line-height: 1.8; }
.ci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 768px) { .ci-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.ci-text h3 { font-size: 32px; font-weight: 800; color: var(--navy-deep); margin-bottom: 20px; }
.color-palette { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.color-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.color-circle { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.logo-display { background: var(--bg-light); padding: 60px; border-radius: 20px; display: flex; flex-direction: column; gap: 40px; align-items: center; justify-content: center; min-height: 300px;}
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1024px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { background: var(--bg-white); padding: 50px 40px; border-radius: 24px; transition: var(--transition); border: 1px solid #f0f0f0; text-align: center; display: flex; flex-direction: column; align-items: center; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid transparent; }
.app-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-top-color: var(--gold-primary); background: #fff; }
.app-icon { background: var(--bg-light); color: var(--navy-deep); width: 80px; height: 80px; font-size: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; transition: 0.3s; }
.app-card:hover .app-icon { background: var(--navy-deep); color: var(--gold-primary); }
.app-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: var(--navy-deep); }

.data-section { background: #f5f7fa; color: var(--navy-deep); position: relative; overflow: hidden; }
.data-bg-map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/South_Korea_stub.svg/1024px-South_Korea_stub.svg.png') no-repeat center; background-size: contain; opacity: 0.1; pointer-events: none; }
.dashboard-container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
@media (max-width: 768px) { .dashboard-container { grid-template-columns: 1fr 1.5fr; } }
.data-text h2 { font-size: 40px; font-weight: 800; margin-bottom: 20px; }
.data-btn { display: inline-block; padding: 15px 30px; border: 1px solid var(--gold-primary); color: var(--gold-primary); font-weight: 700; border-radius: 5px; margin-top: 30px; transition: 0.3s;}
.data-btn:hover { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.dashboard-ui { background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; color: #fff; }
.stat-card { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 12px; border-left: 3px solid var(--gold-primary); }
.stat-value { font-size: 24px; font-weight: 700; color: #fff; }
.stat-value span { font-size: 16px; font-weight: 400; opacity: 0.8; }
.chart-mock { height: 150px; background: rgba(0,0,0,0.3); border-radius: 12px; display: flex; align-items: flex-end; justify-content: space-around; padding: 20px; }
.bar { width: 30px; background: var(--gold-primary); opacity: 0.8; border-radius: 3px 3px 0 0; }

/* Service Cards */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.q-card { background: var(--bg-white); padding: 50px 40px; border-radius: 24px; transition: var(--transition); border: 1px solid #f0f0f0; text-align: center; display: flex; flex-direction: column; align-items: center; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid transparent; }
.q-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-top-color: var(--gold-primary); background: #fff; }
.q-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 25px; transition: 0.3s; background: #fff; color: var(--gold-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.q-card:hover .q-icon { background: var(--gold-primary); color: #fff; }
.q-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: var(--navy-deep); }
.q-link { font-weight: 700; color: var(--navy-deep); border-bottom: 2px solid #eee; padding-bottom: 5px; margin-top: auto; transition: 0.3s; }
.q-card:hover .q-link { border-color: var(--gold-primary); color: var(--gold-primary); }
@media (max-width: 768px) { .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 5px;}

    /* 2. 카드 본체: 상하 패딩을 줄여 너무 길어지지 않게 조정 */
    .q-card {
        padding: 15px 10px !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.04) !important; /* 그림자를 더 부드럽게 */
    }

    /* 3. 아이콘: PC(76px)보다 작은 사이즈로 모바일 비례 최적화 */
    .q-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    /* 4. 서비스 타이틀: 폰트 크기를 줄이고 단단한 느낌 부여 */
    .q-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 12px !important;
        letter-spacing: -0.5px;
    }

    /* 5. 설명 문구: 행간을 조절하여 텍스트 덩어리가 예쁘게 보이도록 함 */
    .q-card p {
        font-size: 0.55rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        color: #777;
        word-break: keep-all;
    }

    /* 6. 바로가기 링크: 화살표와 텍스트의 정렬 강조 */
    .q-link {
        font-size: 0.5rem !important;
        padding-bottom: 3px;
    }}
.warning-box { background: #fff; padding: 60px; border-radius: 20px; text-align: center; border-left: 5px solid var(--gold-primary); box-shadow: var(--shadow-card); }
.process-steps { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.p-step { flex: 1; min-width: 150px; text-align: center; position: relative; }
.p-step:not(:last-child)::after { content: ''; position: absolute; top: 30px; right: -50%; width: 100%; height: 2px; background: #eee; z-index: 0; }
.p-circle { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 20px; color: #999; font-weight: 800; position: relative; z-index: 1; transition: 0.3s; }
.p-step:hover .p-circle { border-color: var(--gold-primary); background: var(--gold-primary); color: #fff; }
@media (max-width: 768px) {
    .process-steps { flex-direction: column; gap: 30px; align-items: flex-start; padding-left: 20px; border-left: 2px solid #eee; margin-left: 10px; }
    .p-step { display: flex; align-items: center; gap: 20px; width: 100%; text-align: left; }
    .p-step:not(:last-child)::after { display: none; }
    .p-circle { margin: 0; transform: translateX(-32px); }
}

.filter-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 60px; flex-wrap: wrap; }
.filter-btn { padding: 10px 30px; border-radius: 50px; border: 1px solid #ddd; background: #fff; color: var(--text-body); font-weight: 600; font-size: 16px; cursor: pointer; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.highlight-card { display: grid; grid-template-columns: 1.5fr 1fr; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 100px;}
@media (max-width: 1024px) { .highlight-card { grid-template-columns: 1.5fr 1fr; } }
.hl-img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; }
.hl-content { padding: 60px; display: flex; flex-direction: column; justify-content: center; background: var(--navy-deep); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1024px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
.pf-card { border: 1px solid #eee; overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 20px; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.pf-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--gold-primary); cursor: pointer; }
.pf-thumb { height: 250px; overflow: hidden; position: relative; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.pf-card:hover .pf-thumb img { transform: scale(1.1); }
.pf-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }

/* Talent - [COMPACT SIZES] */
.culture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; width: 100%; }
@media (max-width: 768px) { .culture-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.culture-card {
    background: var(--bg-light);
    padding: 30px 25px; /* Compact padding */
    border-radius: 24px; border-left: 5px solid var(--gold-primary); text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
    min-height: 240px;
    transition: 0.3s;
}
.culture-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); background: #fff; }

.culture-icon { font-size: 28px; color: var(--navy-deep); margin-bottom: 15px; }
.culture-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 10px; }
.culture-card p { font-size: 0.95rem; color: #555; line-height: 1.5; margin-bottom: 15px; }
.culture-tags { margin-top: auto; }
.culture-tags span { display: inline-block; padding: 4px 10px; background: rgba(10, 17, 40, 0.05); color: var(--navy-deep); font-weight: 600; font-size: 13px; border-radius: 4px; margin-right: 5px; margin-bottom: 5px; }

.talent-section { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden;}
.talent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; z-index: 1; }
@media (max-width: 768px) { .talent-grid { repeat(3, 1fr); } }

.talent-item { text-align: center; padding: 20px; transition: 0.3s; }

/* Compact Circle Icon */
.icon-circle {
    width: 100px; height: 100px; /* Reduced */
    margin: 0 auto 20px;
    border: 2px solid rgba(212, 175, 55, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); transition: 0.4s;
}
.talent-icon { font-size: 40px; color: var(--gold-primary); transition: 0.4s; }
.talent-item h3 { font-size: 1.3rem; margin-bottom: 8px; color: #fff; }
.talent-item p { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

.talent-item:hover .icon-circle { background: var(--gold-primary); border-color: var(--gold-primary); transform: translateY(-10px) scale(1.05); box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); }
.talent-item:hover .talent-icon { color: #fff; transform: scale(1.1); }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .job-grid { repeat(3, 1fr); } }

/* Compact Job Card */
.job-card {
    align-items: flex-start; text-align: left;
    padding: 25px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; transition: 0.3s; position: relative; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.job-card:hover .job-icon { background: var(--navy-deep); color: var(--gold-primary); }
.job-head { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.job-head h3 { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--navy-deep); }
.job-icon { width: 40px; height: 40px; background: var(--bg-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--navy-deep); transition: 0.3s; }

.job-list li { position: relative; padding-left: 15px; margin-bottom: 8px; font-size: 0.9rem; color: #4b5563; font-weight: 500; }
.job-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--gold-primary); border-radius: 50%; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-item { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; transition: all 0.3s ease; }
.faq-item.active { border-color: var(--navy-deep); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-q { padding: 25px 30px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: 0.3s; }
.faq-q:hover { background: #fcfcfc; }
.q-text { font-size: 18px; font-weight: 700; color: var(--navy-deep); display: flex; align-items: flex-start; gap: 15px; line-height: 1.5; text-align: left;}
.q-mark { color: var(--gold-primary); font-weight: 900; flex-shrink: 0; font-size: 20px; }
.faq-icon { font-size: 16px; color: #ccc; transition: 0.3s; margin-left: 15px; flex-shrink: 0;}
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--gold-primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #f8f9fc; }
.faq-item.active .faq-a { border-top: 1px solid #eee; }
.a-content { padding: 30px; color: var(--text-body); font-size: 16px; line-height: 1.7; }

/* Footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo { font-size: 26px; font-weight: 800; color: #fff; display: block; margin-bottom: 20px; text-decoration: none; }
.footer-logo span { color: var(--gold-primary); }

/* MODAL STYLES */
.modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.9);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: #fff; width: 100%; max-width: 900px; max-height: 90vh;
    border-radius: 20px; overflow-y: auto; position: relative;
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes slideUp { from {transform: translateY(30px); opacity:0;} to {transform: translateY(0); opacity:1;} }

.modal-close {
    position: absolute; top: 20px; right: 20px;
    font-size: 32px; color: #333; cursor: pointer; z-index: 10;
    transition: 0.3s; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f0f0f0;
}
.modal-close:hover { background: var(--navy-deep); color: #fff; }

.modal-body { padding: 50px 40px; }
.modal-title { font-size: 28px; font-weight: 800; color: var(--navy-deep); margin-bottom: 40px; border-bottom: 3px solid var(--gold-primary); padding-bottom: 20px; }

.process-step { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; margin-bottom: 40px; align-items: center; }
.process-step:last-child { margin-bottom: 0; }
.process-img { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.process-info h4 { font-size: 20px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.process-info p { font-size: 16px; color: #666; line-height: 1.6; }

@media (max-width: 768px) {
    .process-step { grid-template-columns: 1fr 1.2fr; gap: 15px; }
    .process-img { height: 200px; }
    .modal-body { padding: 30px 20px; }
}


body {
    min-width: auto !important;
    overflow-x: hidden;
}



/* =========================================
   [INLINE STYLE MIGRATION HELPERS]
   아래 클래스들을 HTML의 style="" 대신 적용하세요.
   ========================================= */

/* Section background helper */
.bg-light-section { background: var(--bg-light); }

/* Section header: title highlight span */
.no-margin { margin: 0 !important; }

/* Checkpoint #05 - paragraph spacing */
.mb-15 { margin-bottom: 15px !important; }

/* Revenue table wrapper */
.revenue-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

/* Revenue compare table */
.revenue-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e1e1e1;
    font-size: 14px;
    text-align: center;
}
.revenue-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid var(--gold-primary);
}
.revenue-table th,
.revenue-table td {
    padding: 12px;
    border: 1px solid #e1e1e1;
}
.revenue-table th.th-dark { color: #333; }
.revenue-table th.th-navy { color: #1a2a40; }
.revenue-table td.td-muted { color: #666; }
.revenue-table td.td-label {
    background: #fafafa;
    font-weight: 600;
}

/* Revenue note box (RPS/RE100 설명 박스) */
.revenue-note {
    background: #fdfaf2;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f1e4c0;
}
.revenue-note-list { list-style: none; padding: 0; margin: 0; }
.revenue-note-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}
.revenue-note-item:last-child { margin-bottom: 0; }
.revenue-note-num {
    color: var(--gold-primary);
    margin-right: 10px;
    font-weight: 800;
}



/* Risk section header (좌/우 공통) */
.subhead-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-deep);
}
.subhead-desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* [PC 기본 스타일] */
footer {
    background: #0a1128; /* 금산이앤지 시그니처 네이비 */
    color: rgba(255, 255, 255, 0.6);
    padding: 70px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.company-details {
    font-size: 14px;
    line-height: 1.8;
}

.detail-line span {
    margin: 0 10px;
    opacity: 0.3;
}

.branch-container {
    display: -webkit-box;
    gap: 50px; /* 지사 열 사이 간격 */
    margin: 5px 0;
}

.branch-group p {
    white-space: nowrap; /* PC에서는 줄바꿈 없이 깔끔하게 */
}

.tel-line {
    margin-top: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-copy-area {
    font-size: 13px;
    opacity: 0.5;
}

/* 2. 푸터 지사 주소 줄바꿈 허용 */
footer .branch-container div,
footer div[style*="white-space: nowrap"] {
    white-space: normal !important;
}