/* === 🌍 공통 테마 베이스 === */
body[class*="theme-"] {
  --primary: #0046ff; /* 기본 테크 블루 */
  --font-main: 'Pretendard', sans-serif;
  font-family: var(--font-base);
}

/* --- 테마별 시그니처 컬러 --- */
body.theme-1 { --primary: #ff6b00; } /* 한화시스템 오렌지 */
body.theme-2 { --primary: #0046ff; } /* 삼성/LG 테크 블루 */
body.theme-3 { --primary: #0067a3; } /* 안랩 블루 */
body.theme-5 { --primary: #003366; } /* 공공기관 네이비 */
body.theme-7 { --primary: #4b5563; } /* 문서 가이드 그레이 */
body.theme-10 { --primary: #00a1e0; } /* POSCO DX 시안 */
body.theme-11 { --primary: #ff3b30; } /* 리크루팅 레드 포인트 */
body.theme-13 { --primary: #00ffcc; } /* (예비) 네온 테크 */

/* --- 🏗️ 레이아웃 변형 (Business Types) --- */

/* 1. [Type: Docs] 가이드 문서형 (Theme 7) */
body.type-docs main.docs-layout-active { display: flex; gap: 40px; max-width: 1200px; margin: 40px auto; align-items: flex-start; }
.docs-sidebar { width: 260px; position: sticky; top: 100px; border-right: 1px solid #eee; padding-right: 20px; }
.docs-nav-title { font-weight: 800; font-size: 0.8rem; color: #999; margin-bottom: 20px; }
.docs-sidebar ul { list-style: none; padding: 0; }
.docs-sidebar li a { display: block; padding: 10px 0; color: #555; text-decoration: none; font-size: 0.95rem; }
.docs-sidebar li a:hover { color: var(--primary); font-weight: bold; }
.docs-content { flex: 1; padding: 0 20px; }

/* 2. [Type: Funnel] 상담 최적화 (Theme 8) */
.quick-contact-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--primary); color: #fff; padding: 15px 0; z-index: 1000; }
.quick-contact-bar .container { display: flex; justify-content: space-between; align-items: center; }
.btn-quick { background: #fff; color: var(--primary); padding: 8px 25px; border-radius: 50px; font-weight: 800; text-decoration: none; }

/* 3. [Type: Culture] 인재/문화 (Theme 11) */
body.type-culture h2 { font-size: 3.5rem; letter-spacing: -2px; text-align: center; margin-bottom: 50px; }
body.type-culture .content-section { border: none !important; }

/* --- 🧬 디자인 요소 (Tech Vibe) --- */
body[class*="theme-"] header { border-bottom: 1px solid #eee; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); }
body[class*="theme-"] .brand-logo { color: var(--primary) !important; font-weight: 900; }
body[class*="theme-"] h1, body[class*="theme-"] h2 { color: #111; }
body[class*="theme-"] strong { color: var(--primary); }

/* --- 🛠️ 자동 생성된 서브 레이아웃 스타일 --- */
.hero-section, .landing-section:first-of-type {
    background-color: var(--bg-light);
    padding: 70px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
/* 1. 서브 페이지 헤더 */
.sub-hero-section {
  position: relative;
  height: 300px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  /* 전체 폭 사용 */
  width: 100vw; margin-left: calc(-50vw + 50%); margin-bottom: 60px;
}
.sub-hero-overlay {
  position: absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.4); /* 기본 어두움 */
}
.sub-hero-content { position: relative; z-index: 2; padding: 0 20px; }
.sub-hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.sub-hero-content p { font-size: 1.2rem; opacity: 0.9; color: #f0f0f0; }

/* 2. 사이드바 레이아웃 (Gov/Docs/Startup) */
.gov-layout-wrapper {
  display: flex; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px 60px 20px; align-items: flex-start;
}
.gov-sidebar {
  width: 250px; flex-shrink: 0; background: #fff; border: 1px solid #eee;
  position: sticky; top: 20px;
}
.gov-sidebar .sidebar-title {
  background: var(--primary); color: #fff; padding: 15px; font-weight: bold; text-align: center; font-size: 1.1rem;
}
.gov-sidebar ul { list-style: none; padding: 0; margin: 0; }
.gov-sidebar li { border-bottom: 1px solid #eee; }
.gov-sidebar a {
  display: block; padding: 15px 20px; text-decoration: none; color: #333; transition: 0.2s; font-size: 0.95rem;
}
.gov-sidebar a:hover { background: #f9f9f9; color: var(--primary); font-weight: bold; padding-left: 25px; }

.gov-content { flex: 1; width: 100%; }

/* --- 테마별 헤더 커스텀 --- */
.theme-6-sub .sub-hero-overlay { background: rgba(0,0,0,0.7); } /* 보안: 더 어둡게 */
.theme-7-sub { height: 180px; margin-bottom: 40px; } /* 문서: 얇게 */
.theme-10-sub .sub-hero-overlay { background: rgba(6, 78, 59, 0.4); } /* ESG: 초록빛 */
.theme-11-sub h1 { font-style: italic; } /* 채용: 역동적 */

/* 모바일 대응 */
@media (max-width: 768px) {
  .gov-layout-wrapper { flex-direction: column; }
  .gov-sidebar { width: 100%; position: static; margin-bottom: 30px; }
}

/* --- 쇼케이스 전용 헤더 스타일 --- */
:root {
    --primary: #FF7210; /* 스타트업PR허브 메인 컬러 */
    --text-dark: #111;
    --text-gray: #666;
    --border-color: rgba(0,0,0,0.1);
}

.showcase-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(255, 255, 255, 0.95); /* 쇼케이스는 밝은 배경 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 100%;
}

/* 로고 */
.logo {
    font-size: 1.4rem; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; text-decoration: none;
}
.text-primary { color: var(--primary); }

/* 네비게이션 (PC) */
.nav-menu { display: flex; gap: 30px; }
.nav-link {
    font-size: 1rem; font-weight: 500; color: var(--text-gray); text-decoration: none; transition: 0.2s;
    padding: 8px 12px; border-radius: 6px;
}
.nav-link:hover { color: var(--text-dark); background: rgba(0,0,0,0.03); }
.nav-link.active { color: var(--primary); font-weight: 700; background: rgba(255, 114, 16, 0.08); }

/* 버튼 */
.btn-cta {
    background: var(--primary); color: #fff; padding: 10px 24px; border-radius: 6px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: 0.2s; display: inline-block;
}
.btn-cta:hover { background: #e0650d; transform: translateY(-1px); }

/* 햄버거 버튼 */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.bar { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; }

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed; top: 70px; left: 0; width: 100%; height: 0;
    background: #fff; overflow: hidden; transition: 0.3s; z-index: 999;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-overlay.open { height: auto; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
.mobile-menu-inner { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-link {
    font-size: 1.1rem; font-weight: 600; color: var(--text-dark); text-decoration: none;
    padding: 15px; border-bottom: 1px solid #f0f0f0; display: block;
}
.mobile-link.active { color: var(--primary); border-left: 4px solid var(--primary); padding-left: 11px; }
.full-width { display: block; text-align: center; width: 50%; }

/* 반응형 (1024px 이하) */
@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
    .header-right .btn-cta { display: none; } /* 상단 버튼 숨김 */
}

/* =========================================
   7. 푸터 (Footer)
   ========================================= */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-gray); font-size: 0.9rem; }

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.3s;
}

footer {
    padding: 0px 0;
    margin-top: 0px;
}