/* 기본 리셋 및 변수 */
:root {
    --primary-color: #8B1A1A;
    --secondary-color: #A52A2A;
    --accent-color: #B22222;
    --logo-red: #8B1A1A;
    --logo-grey: #6B6B6B;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    width: 100%;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: -60px;
    padding-left: 20px;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 5px;
    text-align: left;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s;
    margin: 0;
}

.logo-img:hover {
    opacity: 0.9;
}

.logo p {
    font-size: 13px;
    color: var(--logo-grey);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 5px;
    margin-left: 0;
    text-align: left;
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 네비게이션 */
.navbar {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.navbar-logo {
    position: absolute;
    left: -340px;
    top: -45px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    min-width: 200px;
    height: 100%;
    justify-content: flex-start;
    padding-top: 0;
}

.navbar > .container {
    display: flex;
    align-items: center;
    flex: 1;
}

.navbar-logo a {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 2px;
    text-align: center;
}

.navbar-logo-img {
    height: 63px;
    width: auto;
    max-width: 252px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s;
    margin: 0 auto;
}

.navbar-logo p {
    font-size: 16px;
    color: var(--logo-grey);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-left: 0;
    text-align: center;
    width: auto;
}

.nav-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    gap: 30px;
    padding: 0;
    align-items: center;
    position: relative;
    flex: 1;
}

.nav-menu > li {
    position: relative;
    flex: 1;
    text-align: left;
}

.nav-menu > li.dropdown {
    position: static;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 22px;
    padding: 20px 0 20px 15px;
    display: block;
    transition: all 0.3s;
    position: relative;
    text-align: left;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 메가메뉴 컨테이너 */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 40px 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: none;
    box-sizing: border-box;
}

.mega-menu-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.navbar:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 15px;
}

.mega-menu-column h4 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: var(--text-light);
    font-size: 17px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    padding: 5px 0;
}

.mega-sub-list {
    display: none;
    margin-top: 4px;
    margin-left: 12px;
}

.mega-sub-list li a {
    font-size: 15px;
    padding: 2px 0;
}

/* 배전반 하위 트리만 "- 항목명" 표시 (계측장비 등 다른 mega-sub-list에는 미적용) */
.mega-menu-column ul li:has(> a[href*="manufacturing"]) > .mega-sub-list li a::before {
    content: '- ';
}

/* 사업분야 페이지 사이드바: 배전반 하위(보호/수/소내배전반) */
.sidebar-sub li a::before {
    content: '- ';
}

/* 좌측 사이드바에서 배전반(부모의 단일 하위항목)은 하이픈 제거 */
.sidebar-sub li a[href="#manufacturing"]::before {
    content: '';
}

/* 클릭으로 열렸을 때도 하위 트리 노출 */
.mega-menu-column ul li.open > .mega-sub-list {
    display: block;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 0;
    display: block;
    color: var(--text-light);
    font-size: 17px;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.8;
}

.dropdown-menu a:hover {
    background: transparent;
    color: var(--primary-color);
    padding-left: 10px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 8px 15px;
    display: block;
    color: var(--text-light);
    font-size: 17px;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.6;
}

.dropdown-menu a:hover {
    background: transparent;
    color: var(--primary-color);
    padding-left: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* 히어로 섹션 (16:9, 뷰포트 높이 상한) */
.hero {
    background: transparent;
    color: var(--white);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: min(85vh, calc(100vw * 9 / 16));
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-bg-image.image03-fit {
    object-fit: fill;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

/* KoCoS 등 가로·세로 비율이 다른 이미지: 잘림 방지(레터박스) */
.hero-bg-slide--contain {
    background: linear-gradient(180deg, #eceef2 0%, #e0e3e8 100%);
}

.hero-bg-slide--contain .hero-bg-image--contain {
    object-fit: contain;
    object-position: center center;
}

.hero-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 20px;
    box-sizing: border-box;
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-slider-dots .dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.hero-slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-logo {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-logo-img {
    height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 0, 0, 0.5);
    color: var(--white);
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 0;
    opacity: 1;
    line-height: 1.4;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-weight: 600;
}

/* 페이지 헤더 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 버튼 스타일 */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 26, 26, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* 섹션 스타일 */
section {
    padding: 80px 0;
}

.content-section {
    padding: 40px 0;
    scroll-margin-top: 150px;
}


.bg-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto;
}

/* 서비스 그리드 */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    position: relative;
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.service-icon img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.service-icon img.evaluation-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.evaluation-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.evaluation-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.evaluation-slide.active {
    opacity: 1;
    z-index: 1;
}

.evaluation-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: rgba(255, 255, 255, 1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card h3.service-card-title--relay-95 {
    font-size: calc(20px * 0.95);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 제품 그리드 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.placeholder-img {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    padding: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 20px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 콘텐츠 박스 */
.content-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 전력컨설팅: 그림+내용 함께 배경 박스 안에, 회사 개요 content-box와 동일한 왼쪽 위치 */
.evaluation-box.content-box {
    padding: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.evaluation-box .business-content {
    padding: 40px;
}

.evaluation-images {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.evaluation-images img {
    flex: 1;
    min-width: 0;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.evaluation-images img:hover {
    opacity: 0.9;
}

/* 전력컨설팅 하위 탭 (발전기 계통접속 영향분석 / 신재생에너지 기술지원 / 전력계통영향평가) */
.evaluation-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 28px 0 20px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    justify-content: space-between;
}

.evaluation-sub-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-muted, #666);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    text-align: center;
}

.evaluation-sub-tab-btn:hover {
    color: var(--primary-color, #1a365d);
}

.evaluation-sub-tab-btn.active {
    color: var(--primary-color, #1a365d);
    border-bottom-color: var(--primary-color, #1a365d);
}

/* 보호계전기/계측장비(#relay): 6개 장비 탭 글자 80%, 한글·(영문) 줄바꿈 */
#relay .relay-equipment-tabs .evaluation-sub-tab-btn {
    font-size: calc(1.3rem * 0.75);
    line-height: 1.35;
    white-space: normal;
}

/* KOCOS 브로슈어 페이지 이미지(탭별 1장) */
#relay .relay-brochure-wrap {
    margin: 12px 0 8px;
    text-align: center;
}

#relay .relay-brochure-page {
    max-width: 100%;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: top;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.evaluation-sub-panels {
    margin-bottom: 24px;
}

.evaluation-sub-content {
    display: none;
}

.evaluation-sub-content.active {
    display: block;
}

.evaluation-sub-content h3 {
    margin: 0 0 12px;
    font-size: 1.17rem;
    font-weight: 600;
    color: var(--primary-color);
}

.evaluation-sub-content h4 {
    font-size: 1.17rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 28px;
    margin-bottom: 12px;
}

.evaluation-sub-content h4:first-of-type {
    margin-top: 20px;
}

.evaluation-sub-images {
    display: flex;
    gap: 11px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.evaluation-sub-images img {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 231px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

/* 입지선정: 1행 2장, 2행 1장 배치 */
.evaluation-sub-images-2-1 {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: stretch;
    margin-left: -7.5rem;
}

.evaluation-sub-images-2-1 .evaluation-sub-images-row {
    display: flex;
    gap: 0 !important;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    font-size: 0;
}

.evaluation-sub-images-2-1 .evaluation-sub-images-row-2 img {
    flex: 1;
    min-width: 0;
    height: 261px;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    vertical-align: top;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

.evaluation-sub-images-2-1 .evaluation-sub-images-row-2 img:first-child {
    border-radius: 8px 0 0 8px;
    margin-right: -60px !important;
    margin-left: -0.5rem !important;
}

.evaluation-sub-images-2-1 .evaluation-sub-images-row-2 img:last-child {
    border-radius: 0 8px 8px 0;
    margin-left: calc(-60px - 10.5rem) !important;
}

.evaluation-sub-images-2-1 .evaluation-sub-images-row:last-child img {
    width: 100%;
    height: 231px;
    margin: 0;
    margin-left: -7.5rem;
    padding: 0;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

/* 발전기 계통접속 영향분석: 맨 오른쪽 사진은 가로 유지, 세로만 옆 사진과 맞춤 (비율 무시) */
#eval1 .evaluation-sub-images img:nth-child(3) {
    object-fit: cover;
    object-position: center;
    border-left: 2px dashed red;
    border-right: 2px dashed red;
}

/* 이미지 확대 보기 라이트박스 */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.image-lightbox-content {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    overflow: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-lightbox-content img {
    max-width: 400vw;
    max-height: 400vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
}

.image-lightbox.size-70 .image-lightbox-content img {
    max-width: 70vw;
    max-height: 70vh;
}

/* 신재생1: 기본 크기 대비 50% 더 크게 (transform으로 확실히 확대) */
.image-lightbox.size-150 .image-lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
    transform: scale(1.5);
    transform-origin: center center;
}

.image-lightbox.size-150 .image-lightbox-content img {
    max-width: 100vw;
    max-height: 100vh;
}

.image-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.image-lightbox-close:hover {
    background: var(--white);
}

/* 전력컨설팅·설계: 회사 개요 흰색 박스와 동일한 위치 (상단 여백 제거) */
#evaluation .content-section,
#location .content-section,
#supervision .content-section {
    padding-top: 0;
    padding-bottom: 60px;
}

/* 전력컨설팅·설계: 회사 개요 흰색 박스와 동일한 왼쪽 정렬 */
#evaluation .content-section .container,
#location .content-section .container,
#supervision .content-section .container {
    padding-left: 0;
    margin-left: -260px;
    padding-right: 0;
}

/* 배전반: 전력컨설팅과 동일한 박스 여백/정렬 */
#manufacturing .content-section {
    padding-top: 0;
    padding-bottom: 60px;
}

#manufacturing .content-section .container {
    padding-left: 0;
    margin-left: -260px;
    padding-right: 0;
}

/* 보호계전기/계측장비: 전력컨설팅과 동일한 박스 여백/정렬 */
#relay .content-section {
    padding-top: 0;
    padding-bottom: 60px;
}

#relay .content-section .container {
    padding-left: 0;
    margin-left: -260px;
    padding-right: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.award-image {
    margin-top: 40px;
    text-align: center;
}

.award-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.info-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 5px;
}

.info-item-full {
    margin-top: 30px;
    width: 100%;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 파트너 상세 카드 (로고 + 텍스트를 가로로 배치) */
.partner-card {
    background: var(--white);
}

.partner-detail {
    display: flex;
    align-items: center;
    gap: 24px;
}

.partner-logo-box {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-text p {
    margin-bottom: 4px;
}

/* CEO 메시지: 회사소개 본문 폭과 동일하게 사용 */
.ceo-message {
    max-width: 100%;
    margin: 0;
}

.ceo-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.ceo-image {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
}

.ceo-image img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.ceo-text-content {
    overflow: hidden;
}

.ceo-text-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.ceo-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.ceo-content .signature {
    text-align: right;
    clear: both;
    margin-top: 30px;
    font-weight: 600;
}

/* 타임라인 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    bottom: 0;
}

.timeline-year {
    width: 100px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.timeline-date {
    width: 180px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
    padding-top: 15px;
    line-height: 1.5;
    text-align: right;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0;
    margin-left: 45px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 수상 및 인증 */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.award-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.award-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.award-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 조직도 트리 레이아웃 */
.org-chart {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
    min-height: 600px;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.org-level:last-child {
    margin-bottom: 0;
}

.org-level.level-1 {
    margin-bottom: 80px;
}

.org-level.level-2 {
    margin-bottom: 80px;
    justify-content: flex-end;
    align-items: flex-start;
}

.org-right-group {
    display: flex;
    justify-content: flex-end;
}

.org-level.level-3 {
    margin-bottom: 0;
    align-items: flex-start;
    justify-content: center;
}

.org-level.level-3.research-teams {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    margin-top: 0;
    margin-bottom: 0;
}

.org-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.org-box-description {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    width: 240px;
    min-width: 240px;
    box-shadow: none;
}

.org-box-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.org-box-description ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.org-box-description ul li:last-child {
    margin-bottom: 0;
}

.org-box-description ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #888;
    font-weight: bold;
    font-size: 14px;
}

.org-box {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    text-align: center;
    width: 200px;
    min-width: 200px;
    position: relative;
    z-index: 3;
    font-weight: 500;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.org-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.org-box.ceo {
    background: #2c3e50;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    padding: 25px 40px;
    width: 240px;
    min-width: 240px;
}

/* Level 2 박스들 */
.org-box.level-2-box {
    background: #5a7ba7;
    color: var(--white);
}

/* 품질경영(QA/QC) 박스는 JS로 위치 보정되므로 transform 전환을 제거해
   탭 이동 시 멀리서 날아오는 것처럼 보이는 현상을 방지 */
.org-box[data-id="research"] {
    transition: box-shadow 0.2s;
}

/* 엔지니어링 1본부 그룹 - 차분한 티 그린 */
.org-box.eng1-box {
    background: #5a8a7a;
    color: var(--white);
}

.org-box-description.eng1-desc {
    background: #5a8a7a;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
}

.org-box-description.eng1-desc ul li::before {
    color: var(--white);
}

/* 기술연구소: 보호반 제작 하위 소항목 */
.org-box-description.eng1-desc ul li.org-sub-item {
    margin-left: 12px;
    padding-left: 16px;
}

.org-box-description.eng1-desc ul li.org-sub-item::before {
    content: '-';
    font-weight: normal;
    font-size: 13px;
}

/* 엔지니어링 2본부 그룹 - 차분한 퍼플 */
.org-box.eng2-box {
    background: #7a6ba7;
    color: var(--white);
}

.org-box-description.eng2-desc {
    background: #7a6ba7;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
}

.org-box-description.eng2-desc ul li::before {
    color: var(--white);
}

/* 엔지니어링 3본부 그룹 - 차분한 테라코타 */
.org-box.eng3-box {
    background: #a78a6b;
    color: var(--white);
}

.org-box-description.eng3-desc {
    background: #a78a6b;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
}

.org-box-description.eng3-desc ul li::before {
    color: var(--white);
}

/* 해상풍력본부 첫 항목: 한 줄 유지, 자간 소폭 축소 */
.org-box-description.eng3-desc ul li.org-item-nowrap-tight {
    white-space: nowrap;
    letter-spacing: -0.04em;
}

/* 엔지니어링 4본부 그룹 - 차분한 브라운 */
.org-box.eng4-box {
    background: #8a7a6b;
    color: var(--white);
}

.org-box-description.eng4-desc {
    background: #8a7a6b;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
}

.org-box-description.eng4-desc ul li::before {
    color: var(--white);
}

/* 감리본부 그룹 - 슬레이트 블루 */
.org-box.eng5-box {
    background: #5c6b7a;
    color: var(--white);
}

.org-box-description.eng5-desc {
    background: #5c6b7a;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
}

.org-box-description.eng5-desc ul li::before {
    color: var(--white);
}

/* Level 3 팀들 */
.org-box.team-box {
    background: #4a7ba7;
    color: var(--white);
}

.org-level.level-3.research-teams {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.org-level.level-3.design-teams {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
}

.org-level.level-4.wind-solar-teams {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.org-level.level-3.planning-teams {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* SVG 연결선 */
.org-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.org-line {
    stroke: #555;
    stroke-width: 2;
    fill: none;
}

/* 위치 정보 */
.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

.location-content .tab-menu {
    grid-column: 1 / -1;
    display: flex;
    justify-content: stretch;
    gap: 0;
    margin-bottom: 20px;
}

.location-content .tab-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border-radius: 0;
}

.map-container {
    margin-top: 10px;
    border: 2px solid #666;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.location-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.location-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.location-slide.active {
    opacity: 1;
    z-index: 1;
}

.location-slide iframe,
.location-slide img {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.map-container .slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
}

.map-container .slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.map-container .slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.map-container .slider-dots .dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

.map-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-placeholder {
    background: var(--bg-light);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-light);
}

/* 사업 상세 */
.business-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.business-detail.reverse {
    direction: rtl;
}

.business-detail.reverse > * {
    direction: ltr;
}

.business-image {
    height: 300px;
}

.business-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.business-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.service-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 12px;
}

/* 오시는 길: 지도·버스 안내 링크 */
.location-content .location-transit-links {
    margin: 4px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.75;
}

.location-content .location-transit-links a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.location-content .location-transit-links a:hover {
    opacity: 0.88;
}

.location-content .location-link-sep {
    margin: 0 5px;
    color: #aaa;
    font-weight: normal;
    text-decoration: none;
}

.location-content .location-transit-links-hint {
    margin-left: 4px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: normal;
}

.service-list li ul {
    list-style: none;
    padding-left: 0;
    margin-top: 4px;
    margin-bottom: 0;
}

.service-list li ul li {
    padding: 2px 0;
    padding-left: 14px;
    position: relative;
    font-size: 14px;
    color: var(--text-dark);
}

.service-list li ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 주요 서비스 가로 배치 + 하위항목 (전력컨설팅) */
.service-list-nested {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
}

.service-list-nested > li {
    flex: 1;
    min-width: 200px;
}

.service-list-nested li > ul {
    list-style: none;
    padding-left: 0;
    margin-top: 4px;
    margin-bottom: 0;
}

.service-list-nested li > ul li {
    padding: 2px 0;
    padding-left: 14px;
    position: relative;
    font-size: 14px;
    color: var(--text-dark);
}

.service-list-nested li > ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 제품 상세 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail.reverse {
    direction: rtl;
}

.product-detail.reverse > * {
    direction: ltr;
}

.product-image-large {
    height: 400px;
}

.product-spec h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.product-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
}

.spec-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.spec-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.spec-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 12px;
}

.spec-table {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

/* 탭 메뉴 */
.tab-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 게시판 */
.board-list {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.board-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.board-item:last-child {
    border-bottom: none;
}

.board-item:hover {
    background: var(--bg-light);
}

.board-date {
    width: 120px;
    color: var(--text-light);
    flex-shrink: 0;
}

.board-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.board-title a:hover {
    color: var(--primary-color);
}

/* 게시판 테이블 */
.board-container {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.board-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.board-search {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    width: 250px;
}

.search-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--secondary-color);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table table {
    width: 100%;
    border-collapse: collapse;
}

.board-table thead {
    background: var(--bg-light);
}

.board-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.board-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.board-table tbody tr:hover {
    background: var(--bg-light);
}

.board-table .col-no {
    width: 80px;
    text-align: center;
}

.board-table .col-title {
    min-width: 300px;
}

.board-table .col-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.board-table .col-title a:hover {
    color: var(--primary-color);
}

.board-table .col-date {
    width: 120px;
    text-align: center;
    color: var(--text-light);
}

.board-table .col-view {
    width: 100px;
    text-align: center;
    color: var(--text-light);
}

/* 전력컨설팅 실적 표 (한 화면에 모두 표시, 가로 스크롤 없음) */
.performance-table-wrapper {
    width: 100%;
    max-width: 100%;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 0;
}

.performance-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13.77px; /* 기존 15.3px에서 10% 추가 축소 */
    border: 1px solid var(--border-color);
}

.performance-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

/* 배전반 실적 표만 셀 세로 가운데 정렬 */
#performance2 .performance-table td {
    vertical-align: middle;
}

.performance-table th {
    padding: 18px 22px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.performance-table th:last-child {
    border-right: none;
}

/* No 10%↑ 추가, 용역기간 10%↑, 발주처 30%↑ → 늘어난 만큼 용역명 축소, 합 100% */
.performance-table .col-no {
    width: 5.324%; /* 기존 4.84%에서 10% 추가 증가 */
    min-width: 56px;
    text-align: center;
}

.performance-table th.col-no {
    text-align: center !important;
}

/* 표 첫 번째 행 첫 번째 칸(No. 헤더) 가운데 정렬 강제 */
.performance-table thead tr th:first-child,
.performance-table thead tr th.col-no {
    text-align: center !important;
}

.performance-table .col-name {
    width: 67.984%; /* 감리/설계 표 기준 기본값으로 복원 */
    text-align: left;
}

.performance-table th.col-name {
    text-align: center;
}

.performance-table .col-period {
    width: 11.352%; /* 기존 9.46%에서 20% 증가 */
    min-width: 96px;
    text-align: center;
    white-space: nowrap;
}

.performance-table th.col-period {
    text-align: center;
}

.performance-table .col-client {
    width: 15.34%;
    min-width: 96px;
    text-align: left;
}

.performance-table th.col-client {
    text-align: center;
}

.performance-table td {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: top;
}

.performance-table td:last-child {
    border-right: none;
}

.performance-table td.col-no {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

.performance-table td.col-period {
    text-align: center !important;
    color: var(--text-light);
}

/* 모든 행의 세 번째 칸(용역기간) 가운데 정렬 */
.performance-table td:nth-child(3),
.performance-table th:nth-child(3) {
    text-align: center !important;
}

.performance-table tbody tr:hover {
    background: var(--bg-light);
}

.performance-table tbody tr:last-child td {
    border-bottom: none;
}

/* 배전반 실적 전용 열 정렬/세로정렬 */
#performance2 .performance-table td {
    vertical-align: middle;
}

#performance2 .performance-table th.col-no,
#performance2 .performance-table td.col-no {
    width: 6%;
    text-align: center;
}

#performance2 .performance-table th.col-name,
#performance2 .performance-table td.col-name {
    width: 8%;
    text-align: center;
}

#performance2 .performance-table th.col-period,
#performance2 .performance-table td.col-period {
    width: 20%;
}

#performance2 .performance-table th.col-client,
#performance2 .performance-table td.col-client {
    width: 10%;
    text-align: center;
}

#performance2 .performance-table thead th:last-child {
    text-align: center;
}

/* 감리실적 탭 네비게이션 (10개씩 페이지 분할) - 표 아래 */
.performance-tabs-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.performance-tab-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.performance-tab-btn:hover {
    background: var(--bg-light);
}

.performance-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-color: var(--primary-color);
}

.performance-page {
    display: none;
}

.performance-page.active {
    display: block;
}

.board-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 게시판 상세 */
.board-detail-container {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.board-detail-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-title {
    font-size: 28px;
    color: var(--text-dark);
    margin: 0;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.detail-date,
.detail-view {
    display: inline-block;
}

.board-detail-content {
    min-height: 300px;
    margin-bottom: 30px;
}

.detail-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-files {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.detail-files h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.file-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.file-size {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 10px;
}

.board-detail-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 뉴스 그리드 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 문의 폼 */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form button[type="submit"] {
    display: block;
    margin: 20px auto 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: normal;
    flex-direction: row !important;
}

.checkbox-label input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
    order: 0 !important;
    width: auto !important;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 25px;
}

.info-item h3:first-child {
    margin-top: 0;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 푸터 */
.footer {
    background: var(--white);
    color: var(--text-dark);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* 홍보센터 스타일 */
.logo-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.logo-preview {
    height: 300px;
}

.logo-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.material-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
}

/* 주요 고객사 섹션 스타일 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.partner-item {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.partner-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.partner-placeholder {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.partner-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.material-image {
    height: 200px;
}

.material-content {
    padding: 20px;
}

.material-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.material-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 인재채용 스타일 */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.talent-card {
    background: var(--bg-light);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.talent-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.talent-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.welfare-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.welfare-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

/* 특허증 갤러리 */
.patent-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.patent-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.patent-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.patent-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.patent-item img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.patent-item p {
    padding: 15px;
    margin: 0;
    text-align: center;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 이미지 뷰어 */
.image-view-content {
    text-align: center;
    padding: 30px 0;
    background: var(--bg-light);
    border-radius: 5px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-full {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* 회사소개 사이드바 네비게이션 */
.content-section .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 280px; /* 좌측 사이드바(230px) + 여백 정렬 */
    padding-right: 40px;
}

.sidebar-nav {
    width: 230px;
    background: var(--white);
    border-radius: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 0 0 25px 0;
    position: fixed;
    /* (사용자 설정 유지) 가로 위치 */
    left: calc(50% - 950px);
    top: 0;
    /* 공통 사이드바 길이 */
    height: 1200px;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid var(--border-color);
}

/* 회사소개 페이지(회사 개요 / CEO / 연혁 / 조직도 / 파트너 / 주요 고객사 / 오시는 길) 본문을
   사이드바 쪽으로 꽤 많이 붙여서, 좌측 여백을 줄이고 내용 폭을 넓게 사용 */
#overview .container,
#ceo .container,
#history .container,
#organization .container,
#partner .container,
#partners .container,
#location .container {
    padding-left: 0; /* 기본 280px → 120px → 40px → 0px */
}

/* 회사소개 섹션 배경색은 원래대로(공통 content-section 배경) 유지 */
/* 회사소개 페이지들도 기본 레이아웃(.content-section .container, .sidebar-nav)을 그대로 사용
   → 자료실과 동일하게, 고정 사이드바 + 중앙 정렬 본문 구조 유지 */

/* 화면 폭이 많이 줄어들었을 때(대략 1400px 이하) 좌측 사이드바를 조금 줄이고,
   본문 시작 위치를 중앙 쪽으로 더 끌어와서 표/내용이 너무 왼쪽에 치우쳐 보이지 않도록 조정 */
@media (max-width: 1400px) {
    .sidebar-nav {
        width: 210px;
    }

    .content-section .container {
        padding-left: 250px; /* 사이드바 210px + 여백 */
        padding-right: 30px;
    }
}

.sidebar-nav h3 {
    padding: 18px 30px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 18px 30px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-nav ul li a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

.sidebar-parent {
    display: block;
    padding: 18px 30px 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

button.sidebar-parent {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 18px 36px 6px 30px;
}

button.sidebar-parent:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

button.sidebar-parent-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.sidebar-branch:not(.is-open) .sidebar-sub {
    display: none;
}

.sidebar-branch .sidebar-parent-toggle {
    position: relative;
    padding-right: 36px;
}

.sidebar-branch .sidebar-parent-toggle::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.55;
}

.sidebar-branch.is-open .sidebar-parent-toggle::after {
    transform: translateY(-25%) rotate(-135deg);
}

.sidebar-branch .sidebar-parent-toggle:hover::after {
    border-color: var(--primary-color);
    opacity: 1;
}

.sidebar-sub {
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 4px 20px;
    border-left: 3px solid transparent;
}

.sidebar-sub li a {
    padding: 8px 30px 8px 20px;
    font-size: 15px;
}

/* 좌측 사이드바에서 '배전반'만 다른 항목과 동일 정렬 */
.business-with-sidebar .sidebar-sub:has(> li > a[href="#manufacturing"]) {
    /* sidebar-sub 기본 들여쓰기 보정 */
    padding-left: 0;
    margin-left: 0;
}
.business-with-sidebar .sidebar-sub li a[href="#manufacturing"] {
    /* 상위 항목(.sidebar-nav ul li a)과 같은 좌측/세로 패딩으로 정렬 */
    padding: 18px 30px;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .sidebar-nav {
        display: none;
    }
    .business-main,
    .portfolio-main {
        margin-left: 0;
    }
    .portfolio-with-sidebar .container {
        padding-left: 20px;
    }
}

/* 사업분야·사업실적 페이지: 사이드바 왼쪽, 본문 오른쪽 (컨테이너는 상단/하단과 동일한 1200px 중앙 정렬) */
.business-with-sidebar .container,
.portfolio-with-sidebar .container {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.business-main {
    flex: 1;
    min-width: 0;
    /* 10px에서 왼쪽으로 10px 전진 */
    margin-left: 0;
}

/* 자료실 페이지(공지사항/홍보자료/인증 및 보유현황/문의하기)는 좌측 네비와 본문 간 간격을 조금 좁게 */
#notice .container,
#materials .container,
#awards .container,
#contact .container {
    /* 공통 컨테이너(1200px)를 기준으로 중앙 정렬하면서,
       좌측 네비와의 간격만 약간 주기 위해 padding으로만 조정 */
    margin: 0 auto;
    /* 본문을 거의 최대한 왼쪽으로 붙이기 위해 padding-left를 0으로 설정 */
    padding-left: 0;
    padding-right: 40px;
}

#notice .business-main,
#materials .business-main,
#awards .business-main,
#contact .business-main {
    /* 본문 영역은 별도 좌측 여백 없이 컨테이너 안에서만 정렬 */
    margin-left: 0;
}

.portfolio-main {
    flex: 1;
    min-width: 0;
    /* -300px에서 오른쪽으로 50px 후퇴 */
    margin-left: -250px;
}

.btn-close {
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.btn-close:hover {
    background: var(--primary-color);
    color: var(--white);
}
