/* 전체 CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7ED321;
    --secondary-color: #4A90E2;;
    --accent-color: #5BC0DE;
    --dark-color: #1a1a2e;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 헤더 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 줄바꿈 없이 요소가 사라지는 방식으로 처리 */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 140px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
    flex: 1; /* 로고와 버튼 사이 공간을 채움, position:absolute 제거 */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px; /* 기존보다 줄여서 여백 확보 */
}

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* 드롭다운 */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    list-style: none;
    padding: 0.7rem 0 0.5rem 0;
    min-width: 200px;
    z-index: 999;
    white-space: nowrap;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    color: var(--primary-color);
    background: #f4fce8;
    transform: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.brochure-btns {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.btn-download-brochure {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 100px;        
    display: inline-flex;    
    justify-content: center; 
    align-items: center;     
}

/* 남색 그라데이션 — 히어로 배경 계열 */
.btn-brochure-navy {
    background: linear-gradient(135deg, #08172a, #0e3460);
}

/* 초록 그라데이션 — 히어로 텍스트 highlight 계열 */
.btn-brochure-green {
    background: linear-gradient(135deg, #3a6e00, #5fa800);
    color: white;
}

.btn-download-brochure:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 페이지 헤더 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1), rgba(74, 144, 226, 0.1));
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

/* 푸터 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 1.5rem 3rem;
    width: 100%;
}

/* 데스크탑용 기본 레이아웃 */
.footer-privacy {
    text-align: left;     /* footer-center와 정렬 맞추기 */
    margin-bottom: 5px;   /* footer-center와 약간 간격 주기 */
}

.footer-privacy a {
    font-weight: bold;
    color: #ffffff;       /* footer 스타일에 맞게 조정 */
    text-decoration: underline;
    position: relative;
    left: 132px;
}

.footer-privacy a:hover {
    text-decoration: underline;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* 요소 겹침 방지 */
  position: relative;
  width: 100%;
}

.footer-left {
    flex: 0 0 auto;
    border-right: 1px solid #fff;
    padding-right: 1rem;
}

.footer-logo {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* 가운데 정보 */
.footer-center {
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.footer-center a {
    color: white;
    text-decoration: underline;
    font-size: 18px;
}

.footer-center p {
    margin: 0.2rem 0;
}

/* 오른쪽 copyright */
.footer-right {
  position: static;
  text-align: right;
}

.footer-right .admLink {
  font-size: 1.8rem;
  text-decoration: none;
}

.footer-right .admLink img {
    width: 40px;
}

.footer-right .copyright {
    font-size: 0.75rem;
    color: #aaa;
}

/* 애니메이션 */
@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes float {
0%, 100% {
    transform: translateY(0px);
}
50% {
    transform: translateY(-20px);
}
}

.fade-in {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease;
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .logo img {
        width: 100px;
    }

    .btn-download-brochure {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }
}

/* ── 회사소개서가 nav-links와 겹치는 순간 사라짐 ── */
@media (max-width: 1000px) {
    .brochure-btns {
        display: none;
    }
}

/* ── nav-links가 로고와 겹치는 순간 사라짐 + 햄버거 등장 ── */
@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 999;
        padding: 10px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-top: 2px solid #7ED321;
    }
    
    .nav-links.active li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links.active li a {
        display: block;
        padding: 16px 24px;
        font-size: 15px;
        color: #1a1a2e;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .nav-links.active li a:hover {
        background: #f8fff0;
        color: #7ED321;
        padding-left: 32px;
    }
    
    .nav-links.active li a.active {
        color: #7ED321;
        font-weight: 700;
    }

    .mobile-menu {
        display: flex;
        margin-left: auto;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: #f8fff0;
        min-width: 100%;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown .dropdown-menu.open {
        display: block;
    }
}

/* 반응형 모바일 */
@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    /* 푸터 */
    .footer-privacy {
        text-align: center;
    }

    .footer-privacy a {
        position: relative;
        left: 0;
    }

    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 1rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
      width: 100%;
      text-align: center;
      border: none;
    }

    .footer-right {
      margin-top: 1rem;
    }

    .footer-right .admLink {
        display: none;
    }
}

/* ════════════════════════════════════
   서브페이지 공통 레이아웃
   (company / service / esg / notice /
    contact / service-detail 등 공용)
   ════════════════════════════════════ */

main { padding: 0; }

section {
    padding: 6rem 0;
    scroll-margin-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 모달 공용 ── */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    overflow-y: auto;
}

.modal.show { display: flex; }

.modal-content {
    position: relative;
    background: #fff;
    margin: 0;
    padding: 40px 30px;
    border-radius: 16px 0 0 16px;
    width: 800px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.modal-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 300;
    text-align: left;
}

.close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
}
.close:hover { color: #000; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    h2      { font-size: 2.2rem; }
    section { padding: 4rem 1rem; }
}