/* ═══════════ company 전용 페이지 (index·content·new·connect·search) ═══════════ */

.co-hero { padding: 2rem 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--brand); }
.co-hero h1 { margin: 0 0 .375rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -.4px; }
.co-hero p { margin: 0; color: var(--muted-foreground); font-size: var(--text-sm); }

.co-doc-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  padding-bottom: .875rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--brand); }
.co-doc-head h1 { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.3px; }
.co-doc-head .count { color: var(--muted-foreground); font-size: var(--text-sm); }

.co-board-list { display: grid; gap: 1.5rem; }
.co-board-block { background: var(--card); border: 1px solid var(--border); }
.co-board-head {
  display: flex; align-items: center; gap: .625rem; padding: .875rem 1.25rem;
  background: var(--muted); border-bottom: 1px solid var(--border);
}
.co-board-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.co-board-head .more { margin-left: auto; font-size: var(--text-sm); color: var(--muted-foreground); }
.co-latest-list { padding: .5rem 1.25rem; }
.co-latest-list li {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .6rem 0; border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}
.co-latest-list li:last-child { border-bottom: none; }
.co-latest-list .d { margin-left: auto; font-size: var(--text-xs); color: var(--muted-foreground); }

/* ═══════════ 회사소개(인사말) — daon.eworks.kr/sub/company/01.php scontents 영역과 같은 구성 ═══════════ */

.co-about { padding-bottom: 1rem; }
.co-about-vline { display: block; width: 1px; height: 20px; margin: 0 auto; background: var(--border); }
.co-about-eng { display: block; margin: .625rem 0; text-align: center; font-size: 1.4rem; font-weight: 600; }
.co-about-eng em { color: var(--brand); font-style: normal; }
.co-about-stitle { margin-bottom: 1.5rem; text-align: center; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }

.co-about-greet { margin-bottom: 3rem; }
.co-about-greet::after { content: ""; display: block; clear: both; }
.co-about-greet-img {
  position: relative; width: 100%; height: 280px; margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-active) 100%);
}
.co-about-greet-badge {
  position: absolute; right: 4%; bottom: -25px; min-width: 40%; max-width: 90%;
  padding: 1.5rem; text-align: left; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.co-about-greet-badge em { display: block; font-size: var(--text-xs); font-style: normal; letter-spacing: .2em; color: var(--brand); }
.co-about-greet-badge p { display: block; margin-top: .625rem; font-size: 1.05rem; line-height: 1.3; font-weight: 600; }

.co-about-greet-body { padding: 0 2%; }
.co-about-greet-texts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 4%; }
.co-about-greet-texts dl { width: 48%; }
.co-about-greet-texts dt { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.co-about-greet-texts dd p { margin-top: 1rem; font-size: var(--text-sm); line-height: 1.7; color: var(--foreground); }
.co-about-greet-sign { margin-top: 1.5rem; text-align: right; font-size: var(--text-sm); }
.co-about-greet-sign span { display: block; margin-top: .25rem; font-size: 1.2rem; font-weight: 700; letter-spacing: .15em; }

.co-about-section-title { position: relative; margin: 3rem 0 1.5rem; text-align: center; }
.co-about-section-title::before {
  content: ""; display: block; width: 40px; height: 2px; margin: 0 auto .875rem; background: var(--foreground);
}
.co-about-section-title h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.co-about-section-title p { margin-top: .625rem; font-size: var(--text-sm); color: var(--muted-foreground); }

.co-about-overview ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5%; }
.co-about-overview li { border: 1px solid var(--border); }
.co-about-overview .box { display: flex; align-items: center; gap: .875rem; padding: 1.5rem; }
.co-about-overview .box .icon { flex: none; color: var(--brand); }
.co-about-overview .box dt { font-size: var(--text-xs); color: var(--muted-foreground); }
.co-about-overview .box dd { margin-top: .375rem; font-size: 1.05rem; font-weight: 700; }

@media (max-width: 768px) {
  .co-about-greet-img { height: auto; padding-bottom: 55%; }
  .co-about-greet-badge { position: static; margin-top: -2rem; margin-left: 4%; margin-right: 4%; }
  .co-about-greet-texts dl { width: 100%; }
  .co-about-overview ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .co-about-overview ul { grid-template-columns: 1fr; }
}

/* ═══════════ 회사소개(연혁) — daon.eworks.kr/sub/company/02.php scontents 영역과 같은 구성 ═══════════ */

.co-history-list { padding-top: 2rem; }
.co-history-item { display: flex; align-items: flex-start; }
.co-history-year { flex: 0 0 20%; padding-top: .2rem; text-align: center; font-size: 1.2rem; font-weight: 600; }
.co-history-body { flex: 1; padding-left: 2rem; }
.co-history-body dl { position: relative; padding-bottom: 2rem; }
.co-history-body dl::before {
  content: ""; position: absolute; top: .6rem; left: -2rem; z-index: 0;
  width: 1px; height: 100%; background: var(--border);
}
.co-history-item:last-child .co-history-body dl { padding-bottom: 0; }
.co-history-body dt {
  position: relative; margin-top: 1rem; font-size: var(--text-base); font-weight: 600;
}
.co-history-body dt:first-child { margin-top: 0; }
.co-history-body dt::after {
  content: ""; position: absolute; top: .5rem; left: -2.25rem; z-index: 1;
  width: 8px; height: 8px; background: var(--brand); border-radius: 50%;
}
.co-history-body dd { margin-top: .5rem; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }

@media (max-width: 768px) {
  .co-history-list { padding-top: 1rem; }
  .co-history-item { display: block; }
  .co-history-year { display: inline-block; width: auto; padding: .375rem 1rem; margin-bottom: 1rem; background: var(--muted); border-radius: var(--radius-lg); text-align: left; }
  .co-history-body { padding-left: 1.25rem; }
  .co-history-body dl::before { left: -1.25rem; }
  .co-history-body dt::after { left: -1.5rem; }
}

/* ═══════════ 회사소개(조직도) ═══════════ */

.co-org { padding-top: 2.5rem; text-align: center; }

.co-org-ceo-wrap { position: relative; display: inline-block; padding-bottom: 2.5rem; }
.co-org-ceo {
  display: inline-block; padding: .875rem 2.5rem; background: var(--brand);
  color: var(--brand-foreground); font-size: 1.1rem; font-weight: 700;
}
.co-org-ceo-wrap::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 2.5rem; background: var(--border);
}

.co-org-branches { display: flex; justify-content: center; gap: 1.5rem; padding-top: 2.5rem; }
.co-org-branch { position: relative; flex: 1 1 0; max-width: 280px; }
.co-org-branch::before, .co-org-branch::after {
  content: ""; position: absolute; top: -2.5rem; width: 50%; height: 1px; background: var(--border);
}
.co-org-branch::before { left: 0; }
.co-org-branch::after  { right: 0; }
.co-org-branch:first-child::before { display: none; }
.co-org-branch:last-child::after   { display: none; }
.co-org-box { position: relative; height: 100%; border: 1px solid var(--border); background: var(--card); text-align: left; }
.co-org-box::before {
  content: ""; position: absolute; top: -2.5rem; left: 50%; width: 1px; height: 2.5rem; background: var(--border);
}
.co-org-box-head {
  padding: .875rem 1.25rem; background: var(--muted); border-bottom: 1px solid var(--border);
  font-size: var(--text-base); font-weight: 700; text-align: center;
}
.co-org-teams { padding: .75rem 1.25rem 1rem; }
.co-org-teams li {
  position: relative; padding: .45rem 0 .45rem .9rem; font-size: var(--text-sm); color: var(--muted-foreground);
  border-bottom: 1px solid var(--border-subtle);
}
.co-org-teams li:last-child { border-bottom: none; }
.co-org-teams li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 5px; height: 1px; background: var(--muted-foreground);
}

@media (max-width: 768px) {
  .co-org-branches { flex-direction: column; align-items: stretch; gap: 1.5rem; padding-top: 1.5rem; }
  .co-org-branch { max-width: none; }
  .co-org-branch::before, .co-org-branch::after { display: none; }
  .co-org-box::before { display: none; }
  .co-org-box-head::before {
    content: ""; display: block; width: 24px; height: 2px; margin: 0 auto .625rem; background: var(--brand);
  }
}

/* ═══════════ 회사소개(오시는 길) — daon.eworks.kr/sub/company/05.php scontents 영역과 같은 구성 ═══════════ */

.co-contact-map {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .625rem;
  height: 380px; background: var(--muted); border: 1px solid var(--border); color: var(--muted-foreground);
  text-align: center;
}
.co-contact-map .icon { color: var(--brand); }
.co-contact-map p { margin: 0; font-size: var(--text-sm); }

.co-contact-info {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.5rem 0; margin-top: 1.5rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.co-contact-info span { font-size: var(--text-sm); }
.co-contact-info strong { margin-right: .5rem; color: var(--foreground); }

.co-contact-transit { margin-top: 2rem; }
.co-contact-transit table { width: 100%; border-collapse: collapse; }
.co-contact-transit th {
  width: 15%; padding: .875rem; background: var(--muted); border-bottom: 1px solid var(--border);
  font-weight: 600; text-align: center;
}
.co-contact-transit td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); font-size: var(--text-sm); line-height: 1.6; }
.co-contact-transit .line {
  display: inline-block; margin-right: .5rem; padding: 0 .5rem; border-radius: var(--radius-sm);
  font-size: var(--text-xs); color: #fff;
}

@media (max-width: 768px) {
  .co-contact-info { flex-direction: column; gap: .5rem; }
  .co-contact-transit th { width: 20%; }
}
@media (max-width: 480px) {
  .co-contact-transit table, .co-contact-transit tbody, .co-contact-transit tr { display: block; width: 100%; }
  .co-contact-transit th { width: 100%; text-align: left; border-bottom: none; padding-bottom: .25rem; }
  .co-contact-transit td { width: 100%; padding-top: 0; padding-bottom: 1.25rem; }
}

/* ═══════════ 회사소개(기업이념) — daon.eworks.kr/sub/company/04.php scontents 영역과 같은 구성 ═══════════ */

.co-phil-quote {
  position: relative; max-width: 640px; margin: 0 auto 3.5rem; padding: 2rem 1.5rem;
  background: var(--muted); border-radius: var(--radius-lg); text-align: center;
}
.co-phil-quote::after {
  content: ""; position: absolute; left: 50%; bottom: -2.5rem; width: 1px; height: 2.5rem; background: var(--border);
}
.co-phil-quote p { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.co-phil-quote p span { color: var(--brand); }

.co-phil-values { position: relative; display: flex; flex-wrap: wrap; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.co-phil-values::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -2.5rem; height: 1px; background: var(--border);
}
.co-phil-value { position: relative; flex: 1 1 0; min-width: 160px; padding: 2rem 1.25rem; text-align: center; color: #fff; }
.co-phil-value::before {
  content: ""; position: absolute; left: 50%; top: -2.5rem; width: 1px; height: 2.5rem; background: var(--border);
}
.co-phil-value::after {
  content: ""; position: absolute; left: 50%; top: -2.5rem; transform: translate(-50%, -50%); width: 10px; height: 10px;
  background: var(--card); border: 2px solid var(--border); border-radius: 50%;
}
.co-phil-value.bg1 { background: var(--brand); }
.co-phil-value.bg2 { background: var(--brand-hover); }
.co-phil-value.bg3 { background: #001e5d; }
.co-phil-value.bg4 { background: #333; }
.co-phil-value .icon { color: #fff; }
.co-phil-value strong { display: block; margin: 1rem 0 .625rem; font-size: 1.1rem; }
.co-phil-value p { margin: 0; font-size: var(--text-sm); line-height: 1.6; opacity: .92; }
.co-phil-gap { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 2.5rem; font-size: 1.4rem; color: var(--muted-foreground); }

.co-phil-title { position: relative; margin: 3.5rem 0 1.5rem; text-align: center; }
.co-phil-title h2 {
  position: relative; z-index: 1; display: inline-block; margin: 0; padding: 0 .75rem;
  font-size: 1.4rem; font-weight: 700; background: var(--card);
}
.co-phil-title h2::after {
  content: ""; position: absolute; right: -6px; top: -2px; z-index: -1; width: 8px; height: 8px;
  background: var(--brand); border-radius: 50%;
}
.co-phil-title p { margin-top: .625rem; font-size: var(--text-sm); color: var(--muted-foreground); }

.co-phil-card { position: relative; max-width: 80%; margin: 1.5rem auto 0; padding: 2rem 1.5rem; background: var(--card); border: 1px solid var(--border); }
.co-phil-card::before, .co-phil-card::after { content: ""; position: absolute; width: 20px; height: 20px; }
.co-phil-card::before { left: 0; top: 0; border-left: 3px solid var(--foreground); border-top: 3px solid var(--foreground); }
.co-phil-card::after  { right: 0; bottom: 0; border-right: 3px solid var(--foreground); border-bottom: 3px solid var(--foreground); }
.co-phil-card-tit { display: inline-block; width: 22%; vertical-align: middle; text-align: center; }
.co-phil-card-tit span { font-size: 1.3rem; font-weight: 700; }
.co-phil-card-body { display: inline-block; width: 75%; vertical-align: middle; }
.co-phil-card-body dd {
  position: relative; margin-bottom: .5rem; padding-left: 1rem; font-size: var(--text-sm); line-height: 1.6; color: var(--foreground);
}
.co-phil-card-body dd::before { content: ""; position: absolute; left: 0; top: .65rem; width: 4px; height: 4px; background: var(--muted-foreground); border-radius: 50%; }
.co-phil-card-body dd:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .co-phil-quote { padding: 1.5rem 1.25rem; }
  .co-phil-quote p { font-size: 1.1rem; }
  .co-phil-values { flex-direction: column; margin-top: 1.5rem; }
  .co-phil-values::before { display: none; }
  .co-phil-value { width: 100%; margin-bottom: .75rem; padding: 1.5rem 1.25rem; }
  .co-phil-value::before, .co-phil-value::after { display: none; }
  .co-phil-gap { display: none; }

  .co-phil-card { max-width: 100%; padding: 1.5rem 1.25rem; text-align: center; }
  .co-phil-card-tit, .co-phil-card-body { display: block; width: 100%; }
  .co-phil-card-body { margin-top: 1rem; text-align: left; }
}

/* 이미지 자리를 대신하는 그라데이션 플레이스홀더 — 사업영역 페이지들에서 공통으로 쓴다 */
.co-busi-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-active) 100%); color: #fff;
}

/* ═══════════ 사업영역 Type01 — daon.eworks.kr/sub/business/01.php scontents 영역과 같은 구성 ═══════════ */

.co-busi1 { display: flex; flex-wrap: wrap; gap: 2%; margin-top: 2.5rem; }
.co-busi1-item {
  display: flex; width: 49%; margin-bottom: 2%; background: var(--card); border: 1px solid var(--border);
  overflow: hidden;
}
.co-busi1-thumb { flex: 0 0 40%; }
.co-busi1-body { position: relative; flex: 1; padding: 2.25rem 1.25rem 1.25rem; }
.co-busi1-num {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  background: var(--muted); color: var(--muted-foreground); font-weight: 600; transition: .3s ease;
}
.co-busi1-item:hover .co-busi1-num { background: var(--brand); color: var(--brand-foreground); }
.co-busi1-body h4 { margin: 1rem 0; font-size: 1.3rem; font-weight: 700; }
.co-busi1-body p {
  margin: 0; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 768px) {
  .co-busi1-item { width: 100%; flex-direction: row; }
}
@media (max-width: 480px) {
  .co-busi1-item { flex-direction: column; }
  .co-busi1-body { text-align: center; }
  .co-busi1-body p { -webkit-line-clamp: unset; }
}

/* ═══════════ 사업영역 Type02 — daon.eworks.kr/sub/business/02.php scontents 영역과 같은 구성 ═══════════ */

.co-busi2 { margin-top: 2.5rem; }
.co-busi2-item { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; margin-bottom: 3.5rem; }
.co-busi2-item:last-child { margin-bottom: 0; }
.co-busi2-item:nth-child(even) { flex-direction: row-reverse; }
.co-busi2-thumb { flex: 1 1 320px; }
.co-busi2-body { flex: 1 1 320px; }
.co-busi2-num {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  color: #fff; font-weight: 600;
}
.co-busi2-item:nth-child(1) .co-busi2-num { background: var(--brand); }
.co-busi2-item:nth-child(2) .co-busi2-num { background: var(--brand-hover); }
.co-busi2-item:nth-child(3) .co-busi2-num { background: #001364; }
.co-busi2-body h3 { margin: 1rem 0 1.25rem; font-size: 1.5rem; font-weight: 700; }
.co-busi2-item:nth-child(1) h3 span { color: var(--brand); }
.co-busi2-item:nth-child(2) h3 span { color: var(--brand-hover); }
.co-busi2-item:nth-child(3) h3 span { color: #001364; }
.co-busi2-body p { margin-top: .625rem; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }

.co-busi2-table { width: 100%; margin-top: 4rem; border-collapse: collapse; border-top: 1px solid var(--foreground); }
.co-busi2-table th, .co-busi2-table td { border-bottom: 1px solid var(--border); }
.co-busi2-table thead th { padding: .875rem; background: var(--muted); font-weight: 600; text-align: center; }
.co-busi2-table tbody th { width: 28%; padding: 1.25rem; text-align: center; font-weight: 600; }
.co-busi2-table tbody th p { margin-top: .625rem; font-size: var(--text-sm); }
.co-busi2-table tbody td { width: 72%; padding: 1rem 1.5rem; text-align: left; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.co-busi2-table tbody .co-busi-ph { min-height: 90px; margin: 0 auto; max-width: 140px; }

@media (max-width: 768px) {
  .co-busi2-item, .co-busi2-item:nth-child(even) { flex-direction: column; text-align: center; }
  .co-busi2-table { margin-top: 2rem; }
  .co-busi2-table tbody th { width: 35%; padding: 1rem; }
}
@media (max-width: 480px) {
  .co-busi2-table, .co-busi2-table tbody, .co-busi2-table tr { display: block; width: 100%; }
  .co-busi2-table thead { display: none; }
  .co-busi2-table tbody th, .co-busi2-table tbody td { display: block; width: 100%; }
  .co-busi2-table tbody td { padding-top: 0; }
}

/* ═══════════ 사업영역 Type03 — daon.eworks.kr/sub/business/03.php scontents 영역과 같은 구성 ═══════════ */

.co-busi3 { margin-top: 2.5rem; border-top: 1px solid var(--foreground); }
.co-busi3-item {
  display: flex; align-items: center; gap: 2.5rem; padding: 2.25rem 2%; border-bottom: 1px solid var(--border);
}
.co-busi3-item:nth-child(even) { background: var(--muted); }
.co-busi3-thumb { flex: 0 0 40%; }
.co-busi3-body { position: relative; flex: 1; }
.co-busi3-num { display: inline-block; padding: .25rem .5rem; font-size: var(--text-sm); border-bottom: 1px solid var(--foreground); }
.co-busi3-body h4 { margin: 1rem 0; font-size: 1.3rem; font-weight: 700; }
.co-busi3-body p { margin: 0; font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); }
.co-busi3-more {
  position: absolute; right: 0; top: 0; display: inline-block; min-width: 120px; padding: .5rem 1rem;
  text-align: center; font-size: var(--text-sm); background: var(--card); border: 1px solid var(--border);
  transition: .2s ease;
}
.co-busi3-item:hover .co-busi3-more { color: #fff; background: var(--brand); border-color: var(--brand); }

@media (max-width: 768px) {
  .co-busi3-item { flex-direction: column; text-align: center; }
  .co-busi3-thumb { flex-basis: 100%; }
  .co-busi3-more { position: static; display: block; margin-top: 1.5rem; }
}
