/* ==========================================================================
   CORPORATE PROFILE THEME v3 — 오렌지 · 네이비슬레이트 · 화이트
   실제 회사소개서(피치덱) 톤에 맞춘 오버라이드. 로고는 원본 색상 유지.
   common.css / basic.css / style.css 뒤에 로드됨.
   ========================================================================== */

:root {
  /* ---- 팔레트 토큰 (회사소개서 기준) ---- */
  --orange: #ff3b00;
  --orange-deep: #d92f00;
  --orange-wash: #fff1ec;
  --navy: #2f3b48;
  --navy-2: #3f4e5e;
  --slate: #55697d;
  --slate-light: #8b98a5;
  --font-display: 'Pretendard Variable', Pretendard, var(--bs-body-font-family);

  /* ---- 부트스트랩 변수 재정의 (사이트 전체 자동 반영) ----
     본문 폰트(--bs-body-font-family)는 건드리지 않음: 기존 CSS 곳곳(.info p 등)이
     white-space:nowrap으로 "원래 폰트 기준 한 줄" 폭에 맞춰 짜여 있어서,
     폰트를 바꾸면 텍스트가 옆 컬럼과 겹치는 문제가 발생함. 제목류만 Pretendard로. */

  --bs-primary: var(--navy);
  --bs-secondary: var(--slate);
  --bs-danger: var(--orange);
  --bs-orange: var(--orange);
  --bs-dark: var(--navy);
  --bs-gray: var(--slate-light);
  --bs-gray-600: var(--slate-light);
  --bs-light: #f6f7f8;
  --bs-gray-200: #f6f7f8;
}

/* ---- 타이포그래피: 헤드라인은 Pretendard Bold/ExtraBold로 통일 ---- */
.section-header h1,
.section-header h2,
.section-header h3,
.subVisual .sub-title,
.about-list h4,
.tit,
h3.deco,
h4.deco {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-danger { color: var(--orange) !important; }
.bg-danger { background-color: var(--orange) !important; }

/* ---- 섹션 타이틀 장식: 좌측 오렌지 바 + 가로 룰 (회사소개서 스타일) ---- */
.section-header .eyebrow,
.subVisual .category {
  position: relative;
  padding-left: 16px;
}
.section-header .eyebrow::before,
.subVisual .category::before {
  content: '';
  position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 4px;
  background: var(--orange);
}

/* ---- 헤더/네비게이션 ---- */
.header.theme-dark { background-color: #ffffff; }
.navbar .nav-link { color: var(--navy); font-weight: 600; }
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--orange); }
.header.theme-dark .navbar .navbar-nav .nav-link { color: var(--navy); }
.header.theme-dark .navbar .navbar-nav .nav-link.active,
.header.theme-dark .navbar .navbar-nav .nav-link:hover { color: var(--orange); }
.submenu-link:hover { color: var(--orange); }
/* 전체 메뉴: 글자색(--bs-dark=네이비)이 어두우므로 배경은 원래대로 흰색 유지(네이비 배경이면 글자가 보이지 않음) */
.all-menu { background-color: #ffffff; }
.all-menu-link h5 { font-family: var(--font-display); font-weight: 800; }
.all-menu-link.active,
.all-menu-link:hover { color: var(--orange); }
.submenu-link.on { color: var(--orange); }

/* ---- 히어로(메인): 오렌지 포인트바, 과한 색보정은 걷어냄 ---- */
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,59,72,0.10) 0%, rgba(47,59,72,0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-section .section-header { z-index: 1; }
.bar.bar-orange::before { background-color: var(--orange); }
.hero-section .section-header h1 { font-family: var(--font-display); font-weight: 800; }
.goodusdata-videos video { filter: none; }
.goodusdata-videos::after { content: none; }

/* ---- 서브페이지 상단 비주얼(subVisual): 네이비 듀오톤, 기존 사진 유지 ---- */
.subVisual { position: relative; }
.subVisual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(47,59,72,0.82) 0%, rgba(47,59,72,0.55) 100%);
  z-index: 0;
}
.subVisual .subVisual-container,
.subVisual .location-wrap { position: relative; z-index: 1; }
.subVisual .category::after { background-color: var(--orange); }
.location-wrap { border-color: rgba(255,255,255,0.25) !important; background-color: rgba(47,59,72,0.4); }

/* ---- 버튼 ---- */
.btn-primary { background-color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-primary:hover { background-color: var(--navy-2); border-color: var(--navy-2); }
.btn-secondary { background-color: var(--orange); border-color: var(--orange); }
.btn-secondary:hover { background-color: var(--orange-deep); border-color: var(--orange-deep); }

/* ---- 밝은 섹션 배경 ---- */
.bg-light { background-color: var(--bs-light); }

/* ---- 한글 줄바꿈/컬럼 겹침 수정 ----
   .info p 등이 white-space:nowrap으로 "원래 폰트 기준 한 줄"에 맞춰져 있어,
   4단 컬럼(.cloud-info 등)처럼 폭이 좁은 곳은 폰트를 원복해도 여전히 흘러넘침.
   nowrap을 걷어내 자연스럽게 줄바꿈되게 하고, 한글 단어 중간에서 끊기지 않도록
   word-break:keep-all을 전역 기본값으로 적용. */
body { word-break: keep-all; overflow-wrap: break-word; }
.info p { white-space: normal !important; }

/* ---- AI 서비스 제공 과정 (service_05.php) : 3개 이미지+설명 분리 ---- */
.ai-process-flow { margin-top: 50px; gap: 0; }
.ai-process-item { flex: 0 1 320px; padding: 0 14px; text-align: center; }
.ai-process-item .img-wrap { border-radius: 10px; overflow: hidden; line-height: 0; }
.ai-process-item h6 { margin-top: 22px; font-size: 1.15rem; font-weight: 700; }
.ai-process-item p { margin-top: 8px; color: var(--slate); font-size: 0.92rem; }
.ai-process-arrow { flex: 0 0 auto; align-self: center; margin-top: 140px; padding: 0 6px; color: var(--orange); font-size: 1.25rem; }
@media (max-width: 900px) {
  .ai-process-flow { flex-direction: column; align-items: center !important; }
  .ai-process-item { flex: 1 1 auto; width: 100%; max-width: 420px; }
  .ai-process-arrow { margin-top: 14px; margin-bottom: 14px; transform: rotate(90deg); }
}

/* ---- 게시글 본문(#DivContents) 스타일 통일 ----
   작성자마다 워드/한글 등에서 붙여넣은 글이라 폰트·크기·줄간격이 제각각.
   실제 저장된 내용(HTML)은 건드리지 않고, 화면에 보이는 스타일만 강제 통일.
   인라인 style보다 우선해야 하므로 !important 사용. */
#DivContents,
#DivContents * {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
        'Malgun Gothic', '맑은 고딕', sans-serif !important;
    line-height: 1.85 !important;
    color: #333333 !important;
    background-color: transparent !important;
}
#DivContents { font-size: 1.05rem !important; }
#DivContents p,
#DivContents div,
#DivContents span,
#DivContents li,
#DivContents td { font-size: 1.05rem !important; }
#DivContents h1, #DivContents h2, #DivContents h3 {
    font-size: 1.5rem !important; font-weight: 700 !important; margin: 1.3em 0 0.6em !important;
}
#DivContents h4, #DivContents h5, #DivContents h6 {
    font-size: 1.2rem !important; font-weight: 700 !important; margin: 1.1em 0 0.5em !important;
}
#DivContents p { margin: 0 0 1em !important; }
#DivContents a { color: var(--orange) !important; text-decoration: underline !important; }
#DivContents img { max-width: 100% !important; height: auto !important; }
#DivContents table { width: 100% !important; border-collapse: collapse !important; }

/* ---- 푸터 ---- */
.footer { background-color: var(--navy); }
.footer .dropdown-menu { background-color: var(--navy-2); border-color: var(--navy-2); }
.footer-nav-link:hover,
.footer-link:hover { color: var(--orange) !important; }
.footer .privacy:hover { color: var(--orange); }

/* ---- 셀렉션 컬러 ---- */
::selection { background: var(--orange); color: #ffffff; }


/* ==========================================================================
   서비스 페이지 텍스트 정렬·줄바꿈 통일 (2026-11)
   문제: 설명글이 white-space:nowrap 폭에 맞춰 짜여 있고 문장 중간에 손으로 넣은 <br>이 섞여 있어,
         화면 폭이 달라지면(배율 125% 등) 외톨이 단어·겹침·칸마다 다른 줄바꿈이 생김.
   방침: 한 문장 = 한 블록(.ln). 한글은 단어 단위(keep-all)로 줄바꿈하고 줄 길이는 균형(balance)으로 맞춤.
         소개 목록은 균등 폭 그리드로 정렬. (text-wrap 미지원 브라우저는 일반 줄바꿈으로 자연스럽게 대체)
   ========================================================================== */
.ln { display: block; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; text-wrap: balance; }
.ln + .ln { margin-top: .35em; }

/* --- 카드형(.info): Cloud / Oracle / AI / 오픈소스 / Kubernetes 공통 --- */
.info h6 { text-wrap: balance; word-break: keep-all; }
.info p { max-width: 22em; margin-left: auto; margin-right: auto; line-height: 1.7; }
.info p .ln { text-align: center; }
@media (max-width: 767px) {
  .info p { max-width: none; margin-left: 0; margin-right: 0; }
  .info p .ln { text-align: left; }
}

/* --- 소개 목록(.introduce-list): Oracle 5단, AI/오픈소스 4단을 균등 폭 그리드로 --- */
.oracle-introduce .introduce-list,
.open-source-introduce .introduce-list { display: grid; gap: 44px 36px; justify-content: stretch; }
.oracle-introduce .introduce-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.open-source-introduce .introduce-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oracle-introduce .introduce-list li,
.open-source-introduce .introduce-list li {
  position: relative; flex: none; margin: 0; padding: 54px 0 0;
  white-space: normal; text-align: left; font-size: 1rem; line-height: 1.7;
}
.introduce-list .ln b { font-weight: 600; }
.introduce-list .ln-tit { font-size: 1.0625em; }
.introduce-list .note { font-size: .875em; margin-top: .6em; }
.oracle-ar-02 { height: auto !important; min-height: 746px; }
@media (max-width: 1199px) {
  .oracle-introduce .introduce-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .open-source-introduce .introduce-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .oracle-introduce .introduce-list,
  .open-source-introduce .introduce-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .oracle-introduce .introduce-list li,
  .open-source-introduce .introduce-list li { padding: 0 0 0 62px; font-size: 1.0625rem; }
}
@media (max-width: 575px) {
  .oracle-introduce .introduce-list li,
  .open-source-introduce .introduce-list li { padding-left: 52px; font-size: 1rem; }
}

/* --- 소개 문단(.at-para): 가독성(굵기·줄간격·최대 폭) --- */
.at-para { word-break: keep-all; text-wrap: pretty; text-wrap: balance; }
.li-ion-ar-01 .at-para { max-width: 68em; margin-left: auto; margin-right: auto; line-height: 1.85; }
.li-ion-ar-01 .at-para.fw-300 { font-weight: 400 !important; }
.nw { white-space: nowrap; }
/* 점 아이콘 이미지에 좌우 여백이 있어, 글자 왼쪽 선과 시각적으로 맞춘다(데스크톱·태블릿 그리드에서만) */
@media (min-width: 768px) {
  .oracle-introduce .introduce-list li::before,
  .open-source-introduce .introduce-list li::before { left: -24px; }
}
