/* =========================================================
   0) Variables
========================================================= */
:root{
  --nav-height: 98px;            /* 고정 네비 높이 */
  --main-orange: #ff6600;        /* 브랜드 컬러 */
  --hero-h: 180px;               /* 페이지 타이틀 높이 */
  --hero-bg: #fafafa;            /* 페이지 타이틀 배경 */
}

/* =========================================================
   1) Base / Reset
========================================================= */
*{ box-sizing: border-box; margin:0; padding:0; }

html, body{
  min-height:100%;
  font-family: Arial, Helvetica, sans-serif;
  line-height:1.6;
  color:#222;
  font-size:14px;
}

a{ color:inherit; text-decoration:none; }

h1{ font-size:3rem; }
h2{ font-size:2.25rem; }
h3{ font-size:1.75rem; }
p, li, a, span, div{ font-size:1.125rem; }

/* 0) 안전 장치: 폭 계산은 테두리/패딩 포함 */
*, *::before, *::after { box-sizing: border-box; }

/* 공통 컨테이너 */
.container{ max-width:1200px; margin:0 auto; padding:0 20px; }
html, body { overflow-x: hidden; }
.container-1200{ max-width:1200px; margin:0 auto; padding:0 20px 80px; }

/* 카드 */
.card{
  padding:40px;
  margin-top:50px;
  border:1px solid #eee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 15px rgba(0,0,0,.05);
}
.card h2{
  font-size:2rem; color:#333; margin-bottom:12px;
  padding-bottom:10px; border-bottom:3px solid var(--main-orange);
  display:inline-block;
}

/* 버튼 */
.btn{
  display:inline-block; padding:10px 20px; border-radius:6px;
  font-size:1.0rem; font-weight:700; text-align:center; transition:.2s ease;
  border:1px solid #ccc; color:#333; background:#fff;
}
.btn:hover{ background:#f5f5f5; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.btn-primary{ background:var(--main-orange); color:#fff; border-color:var(--main-orange); }
.btn-primary:hover{ background:#e65c00; border-color:#e65c00; box-shadow:0 4px 10px rgba(255,102,0,.3); }

/* 접근성: 포커스 */
.btn:focus, .nav-link:focus{
  outline:3px solid rgba(255,102,0,.25);
  outline-offset:2px; border-radius:10px;
}

/* =========================================================
   2) Navbar (고정)
========================================================= */
.navbar{
  position:fixed; top:0; left:0; right:0;
  height:var(--nav-height); background:#fff; border-bottom:1px solid #eee;
  z-index:1000; box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.navbar .container{
  display:flex; justify-content:space-between; align-items:center;
  max-width:1400px; height:100%; padding:0 30px;
}
.logo img{ height:48px; }

/* 상단 메뉴 */
.menu{ display:flex; gap:24px; font-weight:bold; }
.menu > a.nav-link{ display:block; padding:5px 0; transition:color .2s ease; color:#444; }
.menu > a.nav-link:hover,
.menu > a.nav-link.active{ color:var(--main-orange); }

/* 드롭다운 (COMPANY) */
.nav-item{ position:relative; }
.nav-item .nav-link{ display:block; padding:5px 0; color:#444; }
.nav-item:hover > .nav-link{ color:var(--main-orange); }

.submenu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  list-style:none; background:#fff; border:1px solid #eee; border-radius:6px;
  box-shadow:0 4px 15px rgba(0,0,0,.1); padding:10px 0; min-width:140px;
  z-index:1010; opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s;
}
.nav-item:hover .submenu{ opacity:1; visibility:visible; }
.submenu li a{ display:block; padding:8px 15px; font-size:1rem; color:#666; white-space:nowrap; }
.submenu li a:hover{ background:#f8f8f8; color:var(--main-orange); }

/* =========================================================
   3) Hero / Page Title
========================================================= */
.page-hero{
  margin-top:var(--nav-height);
  height:var(--hero-h);
  padding:30px 0;
  background:var(--hero-bg);
  display:flex; align-items:center;
}
.page-hero .wrap{
  max-width:1200px; margin:0 auto; width:100%; height:100%;
  display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center;
}
.page-hero h1{ font-size:2.8rem; color:var(--main-orange); margin-bottom:5px; }
.page-hero .desc{ color:#555; font-size:1.125rem; }

/* 
Why Trusion: 타이틀 ‘항상 고정’ (sticky → fixed) 
body.why .page-hero--sticky{
  position:fixed; top:var(--nav-height); left:0; right:0;
  z-index:990; background:rgba(250,250,250,.98);
  backdrop-filter:saturate(130%) blur(2px);
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
/* 고정된 타이틀 아래 여백(HTML에 <div class="hero-spacer"> 추가) *
body.why .hero-spacer{ height:var(--hero-h); }
*/
/* 메인 히어로(홈) */
.hero{
  position:relative;
  min-height:calc(100vh - var(--nav-height));
  padding-top:var(--nav-height);
  background:linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url("../images/background.jpg") center/cover no-repeat;
}
.hero-inner{ position:absolute; bottom:120px; left:120px; color:#fff; max-width:600px; }
.hero .ko{ margin:8px 0 4px; font-size:clamp(14px,2vw,20px); }
.hero .en{ margin:0; opacity:.9; font-size:clamp(12px,1.8vw,16px); }

/* =========================================================
   4) Local Tabs (Why Trusion 섹션 탭) — 고정 X
========================================================= */
.local-tabs{
  position:static; z-index:1; background:#fff; border-bottom:1px solid #eee;
  display:flex; gap:8px; justify-content:center; padding:10px 12px;
}
.local-tabs .lt-item{
  padding:8px 14px; border-radius:999px; font-weight:800; font-size:14px;
  border:1px solid #f1f1f1; background:#fff; transition:.15s ease; color:#444; white-space:nowrap;
}
.local-tabs .lt-item:hover{ box-shadow:0 4px 12px rgba(0,0,0,.06); }
.local-tabs .lt-item.active{ background:var(--main-orange); color:#fff; border-color:transparent; }

/* =========================================================
   5) Strengths (리스트형)
========================================================= */
.strengths-list{ list-style:none; display:flex; flex-direction:column; gap:25px; }
.strength-item{
  display:flex; align-items:flex-start; gap:20px; padding-bottom:15px; border-bottom:1px dashed #e9e9e9;
}
.strength-item:last-child{ border-bottom:none; padding-bottom:0; }

.strength-item .icon-wrap{
  flex-shrink:0; width:60px; height:60px; display:flex; align-items:center; justify-content:center;
  background:#fff5e6; border-radius:50%; padding:10px; box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.strength-item .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strength-item .text-wrap{ text-align:left; }
.strength-item .eyebrow{ display:block; font-size:.85rem; font-weight:700; color:var(--main-orange); letter-spacing:.05em; margin-bottom:2px; }
.strength-item .title{ display:block; font-size:1.4rem; font-weight:800; color:#111; margin-bottom:6px; }
.strength-item .desc{ font-size:1rem; color:#555; margin:0; }

/* =========================================================
   6) 3-Column Grid (핵심 강점)
========================================================= */
.three-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:8px; }
.tg-item{ border:1px solid #efefef; border-radius:12px; background:#fff; padding:18px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.tg-item h3{ margin:0 0 8px; font-size:15px; font-weight:900; color:#111; }
.tg-item p{ margin:0; color:#444; font-size:1rem; }
.cta-line{ margin-top:18px; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

/* =========================================================
   7) Business / Portfolio helper
========================================================= */
.section{ padding:60px 0; }
.section:nth-child(even){ background:#f8f8f8; }
.section-title{ text-align:center; margin-bottom:40px; }
.section-title h2{ margin-bottom:8px; color:var(--main-orange); font-size:1.5rem; }

/* Biz cards */
.biz-card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:30px; }
/*.biz-card{ padding:30px; border:1px solid #efefef; border-radius:12px; background:#fff; box-shadow:0 4px 15px rgba(0,0,0,.05); text-align:center; }*/
.biz-card h3, .biz-card p{
  word-break: keep-all;        /* 한글 단어 분리 방지 */
  overflow-wrap: anywhere;     /* BUT 영문/하이픈 토큰은 적절히 개행 */
  line-height: 1.65;
  text-align: left;
}
.biz-card{
  text-align: left;           /* 문단 가독성 ↑ */
  word-break: keep-all;       /* 한글 단어 분리 방지 */
  line-height: 1.65;
}

.biz-card, .biz-card *{ min-width: 0; } 

/* Portfolio grid */
.portfolio-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:30px; }
.portfolio-item{ border-radius:8px; overflow:hidden; box-shadow:0 4px 15px rgba(0,0,0,.08); background:#fff; }
.img-ratio{ position:relative; width:100%; padding-bottom:56.25%; overflow:hidden; background:#eee; }
.img-ratio img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.pf-content{ padding:20px; }
.pf-content h4{ font-size:1.25rem; color:var(--main-orange); margin-bottom:8px; }
.pf-tag{ display:inline-block; font-size:.9rem; color:#999; background:#f1f1f1; padding:4px 8px; border-radius:4px; margin-bottom:10px; }

/* 기술 스택 로고 */
.tech-stack-list{ display:flex; flex-wrap:wrap; justify-content:center; gap:20px; margin-top:40px; align-items:center; }
.tech-logo-wrapper{ height:60px; display:flex; align-items:center; justify-content:center; }
.tech-logo-wrapper img{ width:auto; max-width:120px; max-height:100%; }

/* =========================================================
   8) Org Chart (Trusion 스타일)
========================================================= */
.org-chart{
  --accent: var(--main-orange);
  --line:#cfcfcf; --card-bg:#fff; --title-bg:#fff4ec; --title-color:var(--main-orange);
  max-width:1100px; margin:12px auto 0;
}
.org-top{ position:relative; display:grid; place-items:center; padding-bottom:28px; }
.org-top::after{ content:""; position:absolute; bottom:0; left:50%; width:2px; height:28px; background:var(--line); transform:translateX(-50%); }
.org-children{ position:relative; display:grid; grid-template-columns:repeat(3,minmax(220px,1fr)); gap:20px; padding-top:28px; }
.org-children::before{ content:""; position:absolute; top:0; left:calc(100%/6); right:calc(100%/6); height:2px; background:var(--line); }
.org-children .org-node{ position:relative; display:flex; justify-content:center; }
.org-children .org-node::before{ content:""; position:absolute; top:-28px; left:50%; width:2px; height:28px; background:var(--line); transform:translateX(-50%); }
.org-card{ width:100%; max-width:240px; background:#fff; border:1px solid #eee; border-radius:14px; box-shadow:0 8px 20px rgba(0,0,0,.06); padding:14px 16px; }
.org-title{ display:inline-block; font-weight:900; color:var(--title-color); background:var(--title-bg); border:1px solid rgba(255,102,0,.25); padding:6px 10px; border-radius:999px; font-size:14px; letter-spacing:.3px; }
.org-desc{ margin:10px 0 0; padding-left:16px; color:#444; line-height:1.6; font-size:12px; }
.org-top .org-card{ text-align:center; border:1px solid rgba(255,102,0,.35); box-shadow:0 10px 24px rgba(255,102,0,.12); }

/* =========================================================
   9) Clients
========================================================= */
.client-section{ padding:60px 0; }
.client-logo-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; margin-top:40px; }
.client-item{ display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px 20px; border:1px solid #eee; border-radius:12px; text-align:center; min-height:180px; transition:box-shadow .3s; }
.client-item:hover {
    box-shadow: 0 8px 15px rgba(var(--main-orange-rgb), 0.1);
}

.client-item img {
    max-width: 80%;
    max-height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-item:hover img {
    transform: scale(1.05); /* 살짝 확대 */
}

.logo-placeholder{ font-size:1.5rem; font-weight:700; color:#999; height:60px; line-height:60px; margin-bottom:15px; }
.client-item p{ font-size:.95rem; color:#666; margin:0; }

/* =========================================================
   10) Footer
========================================================= */
.site-footer{
  background:#333; color:#ddd; padding:40px 20px; position:relative; font-size:1rem;
}
.site-footer .to-top{
  position:absolute; top:-20px; right:50px; width:40px; height:40px; border-radius:50%;
  background:var(--main-orange); border:0; color:#fff; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.2);
  display:flex; align-items:center; justify-content:center;
}
.site-footer .to-top:hover{ background:#e65c00; }
.site-footer .to-top svg{ transform:rotate(180deg); }

.footer-nav{
  max-width:1200px; margin:0 auto 20px; display:flex; gap:15px; padding-bottom:15px; border-bottom:1px solid #444; flex-wrap:wrap;
}
.footer-nav a{ font-weight:700; color:#bbb; font-size:1rem; }
.corp{ max-width:1200px; margin:0 auto 15px; font-size:1.1rem; font-weight:700; color:#fff; }
.policies{ max-width:1200px; margin:0 auto 15px; }
.policies a{ margin-right:15px; color:#bbb; }
.policies a.strong{ font-weight:700; color:#fff; }

.legal-block{ max-width:1200px; margin:0 auto 20px; display:flex; flex-wrap:wrap; gap:15px 30px; }
.legal-row{ display:flex; gap:8px; flex-wrap:wrap; font-size:.9rem; }
.lb-label{ font-weight:700; color:#bbb; flex-shrink:0; }
.lb-text{ color:#999; word-break:keep-all; white-space:normal; } /* ← 세로로 떨어지는 현상 방지 */

.legal{ max-width:1200px; margin:0 auto; font-size:.85rem; color:#666; padding-top:15px; border-top:1px solid #444; }

/* =========================================================
   11) Toast
========================================================= */
.toast{
  position:fixed; bottom:30px; left:50%; transform:translateX(-50%);
  background:#333; color:#fff; padding:12px 20px; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,.15);
  opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s, transform .3s; z-index:2000; font-size:1rem;
}
.toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(-10px); }

/* =========================================================
   12) Media Queries
========================================================= */
@media (max-width:1240px){
  .navbar .container, .footer-nav, .corp, .policies, .legal-block, .legal{ padding:0 20px; }
}

@media (max-width:960px){
  /* 상단바는 모바일에서 sticky로 처리(자동 높이) */
  .navbar{ position:sticky; top:0; height:auto; }
  .navbar .container{ height:auto; padding:10px 15px; flex-direction:column; align-items:flex-start; gap:8px; }

  /* 메뉴는 항상 보이게 + 줄바꿈 */
  .menu{ display:flex !important; position:static; width:100%; height:auto; background:transparent;
         border:0; box-shadow:none; padding:0; gap:10px 16px; flex-wrap:wrap; }
  .menu > a.nav-link, .nav-item .nav-link{ font-size:1rem; padding:6px 0; border:0; }

  /* 드롭다운은 펼친 형태 */
  .submenu{ position:static; transform:none; border:0; box-shadow:none; padding:0 0 0 12px; margin-top:4px; background:transparent; opacity:1; visibility:visible; }
  .submenu li a{ font-size:.95rem; padding:4px 0; color:#777; }

  /* 히어로 보정 */
  .page-hero{ height:140px; margin-top:0; }
  .page-hero h1{ font-size:2.2rem; }
  .page-hero .desc{ font-size:1rem; }
  body.why .page-hero--sticky{ top:0; }                 /* 네비 높이 = 0 보정 */
  body.why .hero-spacer{ height:140px; }                /* spacer도 동일 높이 */

  /* 그리드 */
  .three-grid{ grid-template-columns:1fr; }
  .local-tabs{ overflow-x:auto; justify-content:flex-start; padding:10px 15px; }

  .biz-card-grid{ grid-template-columns:1fr; gap:15px; }
  .portfolio-grid{ grid-template-columns:1fr; }

  .section, .container-1200{ padding-bottom:40px; }

  .site-footer{ padding:30px 15px 20px; }
  .site-footer .to-top{ right:15px; }
}

@media (max-width:600px){
  h1{ font-size:2.2rem; }
  h2{ font-size:1.8rem; }
  h3{ font-size:1.5rem; }
  p, li, a, span, div{ font-size:1rem; }
  .card{ padding:20px; margin-top:30px; }
}

/* 애니메이션 최소화 설정 */
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; }
}


 /* =========================================================
  13. Home (index.html) - 핵심 강점 이미지 그리드 스타일
========================================================= */

/* 섹션 기본 스타일 (재사용) */
.section { padding: 60px 0; }
.section:nth-child(even) { background-color: #f8f8f8; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; color: var(--main-orange); font-size: 1.5rem; }

/* 이미지 컨테이너 (그리드) 스타일: 수평 중앙 정렬 */
.feature-grid {
  display: flex;
  justify-content: center; /* 수평 가운데 정렬 */
  flex-wrap: wrap;
  gap: 30px; /* 항목 간 간격 */
  max-width: 1000px; /* 전체 너비 제한 */
  margin: 40px auto 0;
}

/* 개별 이미지 항목 스타일: 수직 배열 및 내부 중앙 정렬 */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* 내부 요소(이미지, 텍스트) 수평 가운데 정렬 */
  width: 200px; /* 각 항목의 너비 */
  text-align: center;
}

/* 이미지 비율을 1:1로 고정하는 래퍼 (원형 컨테이너) */
.img-square {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 50%; /* 원형 모양 */
  border: 3px solid var(--main-orange); /* 강조 테두리 */
  margin-bottom: 15px;
}

/* 이미지 스타일: 컨테이너에 맞춰 크기 조정 및 잘림 처리 */
.img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지가 원형 공간을 꽉 채우도록 */
}

.feature-item h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 5px;
}


  /* 통합 페이지를 위한 임시/보강 스타일 (style.css에 추가 필요) */
  .section { padding: 60px 0; }
  .section:nth-child(even) { background-color: #f8f8f8; }
  .section-title { text-align: center; margin-bottom: 40px; }
  .section-title h2 { margin-bottom: 8px; color: var(--main-orange); font-size: 1.5rem; }
  .biz-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
  }
  .biz-card {
    padding: 30px;
    border: 1px solid #efefef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    text-align: center;
  }
  .biz-card h3 { color: #111; margin-bottom: 10px; font-size: 1.5rem; }
  .biz-card p { color: #555; font-size: 1rem; }
  
  /* 포트폴리오 섹션 스타일 */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  .portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    background: #fff;
  }

  .portfolio-item img {
    /* height: 200px;  <-- 이 줄을 삭제 */
    /* object-fit: cover; <-- 이 줄을 아래 .img-ratio img로 이동 */
    width: 100%;
    display: block;
    background: #eee;
  }

  /* 2. 비율 유지 컨테이너 추가 (16:9 비율 유지) */
  .img-ratio {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%; /* 9 / 16 = 0.5625 (즉, 56.25%) */
      overflow: hidden;
      background: #eee;
  }
  .img-ratio img {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%; /* 부모 컨테이너 크기 사용 */
      object-fit: cover; /* 이미지가 컨테이너를 꽉 채우도록 */
      display: block;
  }

  .pf-content {
    padding: 20px;
  }
  .pf-content h4 { 
    font-size: 1.25rem; 
    color: var(--main-orange);
    margin-bottom: 8px;
  }
  .pf-tag {
    display: inline-block;
    font-size: 0.9rem;
    color: #999;
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  .tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }
  .tech-logo {
    width: 120px; 
    height: auto;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
  }

/* 480px 이상: 2열 */
@media (min-width:480px){
  .biz-card-grid{ grid-template-columns: repeat(2,1fr); }
}

/* 768px 이상: 3열 */
@media (min-width:768px){
  .biz-card-grid{ grid-template-columns: repeat(3,1fr); }
}

/* 터치 간격 조금 넓게(모바일 체감 향상) */
@media (max-width:480px){
  .section{ padding: 28px 0; }
  .biz-card{ padding: 16px; }
}

/* 다크 배경 섹션일 때 대비(선택) */
/*
.section.bg{
  background:#fafafa;
}
*/
/* hover 효과 (PC에서만 크게 보이게) */
@media (hover:hover){
  .client-item img:hover{ transform: scale(1.05); }
}

/* ===== 반응형 ===== */
/* 900px 이하: 2열 */
@media (max-width: 900px){
  .client-logo-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* 520px 이하(모바일): 1열 + 로고 확대 */
@media (max-width: 520px){
  .client-logo-grid{ grid-template-columns: 1fr; gap:18px; }
  .client-item{ padding:22px 16px; min-height:160px; }
  .client-item img{
    max-height: 88px;       /* 모바일에서 확 키움 */
  }
}

/* 매우 작은 화면(375~400폭): 한 단계 더 확대(선택) */
@media (max-width: 390px){
  .client-item img{ max-height: 96px; }
}


/* ===== 반응형 ===== */
/* 태블릿: 2열 */
@media (max-width: 900px){
  .org-children{ grid-template-columns: repeat(2, 1fr); }
  .org-children::before{ left:25%; right:25%; }
}

/* 모바일: 1열 */
@media (max-width: 520px){
  .org-children{ 
    grid-template-columns: 1fr; 
    gap:16px; 
    padding-top:20px;
  }
  .org-children::before{ display:none; } /* 가로 라인 제거 */
  .org-children .org-node::before{ height:20px; }
  
  .org-card{ 
    max-width:100%; 
    padding:12px 14px; 
  }
  .org-title{ font-size:13px; padding:5px 9px; }
  .org-desc{ font-size:12px; line-height:1.5; padding-left:12px; }
}

.legal-row {
  margin-bottom: 6px;
}

.legal-row.top span {
  margin-right: 15px; /* 상단 항목 간격 */
}

.legal-row.bottom span {
  margin-right: 15px; /* 하단 항목 간격 */
}

.lb-label {
  font-weight: bold;
  margin-right: 5px;
}


@media (max-width: 600px){
  .legal-block{
    flex-direction: column;      /* 한 줄 한 블록씩 쌓기 */
    gap:10px 0;
    padding:0 10px;
  }

  .legal-row{
    display:block;               /* 가로 → 세로 */
    font-size:.95rem;
    line-height:1.7;
  }

  .lb-label{
    display:block;               /* 라벨 줄바꿈 */
    margin-top:8px;
    color:#e9e9e9;
  }

  .lb-text{
    display:block;
    color:#d3d3d3;
    word-break:break-word;       /* 한글/이메일 자동 줄바꿈 */
    white-space:normal;
    margin-left:4px;
  }

  .lb-text a{ word-break:break-all; }
}
@media (max-width: 900px){
  .biz-card-grid{ grid-template-columns: repeat(2, 1fr); gap:20px; }
}
@media (max-width: 560px){
  .section{ padding: 36px 0; }
  .section-title{ margin-bottom: 20px; }
  .biz-card-grid{
    grid-template-columns: 1fr;   /* ← 핵심 */
    gap: 16px;
    width: 100%;
    margin-left: 0; margin-right: 0;
  }
  .biz-card{
    padding: 18px 16px;
    max-width: 100%;              /* 카드 자체가 부모를 넘지 않게 */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }
}

/* ===== Core Services 응급 패치 (모바일 강제 1열) ===== */
@media (max-width: 560px){
  /* 그리드 자체를 1열로 강제 */
  .biz-card-grid{
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* 카드가 부모 폭을 절대 넘지 않도록 */
  .biz-card{
    width: 100% !important;
    max-width: none !important;
    padding: 18px 16px !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    text-align: left;
    min-width: 0;   /* grid overflow 방지 */
  }

  /* 텍스트는 가로쓰기 + 자연 줄바꿈 */
  .biz-card h3,
  .biz-card p{
    writing-mode: horizontal-tb !important;
    word-break: keep-all;         /* 한글 단어 분리 방지 */
    overflow-wrap: anywhere;      /* 긴 영문/하이픈 안전 개행 */
    white-space: normal !important;
    line-height: 1.65;
  }

  /* 좌우 튀어나옴 방지용 안전 여백 */
  .container{ padding-left:14px; padding-right:14px; }
  html, body{ overflow-x:hidden; }
}
