@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* =========================================
   1. 기본 설정 (Variables & Reset)
   ========================================= */
:root {
    --primary-color: #0F4C81;
    --primary-dark: #0a3356;
    --secondary-color: #1a1a1a;
    --text-gray: #555;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
body { color: var(--secondary-color); line-height: 1.7; background-color: var(--white); word-break: keep-all; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, li { list-style: none; }

/* =========================================
   2. [제이폴리 스타일] 헤더 & 네비게이션 (수정됨)
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 9999;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

/* 헤더 호버 시: 배경 흰색, 높이 확장 */
header:hover {
    background: rgba(255, 255, 255, 0.98);
    height: 320px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.nav-wrapper {
    max-width: 1400px; /* 좌우 공간을 좀 더 넓게 */
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    /* [중요] 3단 분리 (좌-중-우) 배치를 위한 설정 */
    justify-content: space-between; 
}

/* 1. 좌측: 로고 영역 */
.logo {
    display: flex; align-items: center; height: 100%;
    flex: 0 0 150px; /* 너비 고정 (좌우 대칭을 위해) */
}
.logo img { height: 40px; width: auto; object-fit: contain; transition: filter 0.3s; }

/* 평소엔 로고 흰색 (필터) */
header:not(:hover) .logo img { filter: brightness(0) invert(1); }

/* 2. 중앙: 메인 메뉴 영역 */
.nav-menu {
    display: flex; height: 100%; gap: 30px;
    flex: 1; /* 남은 공간 차지 */
    justify-content: center; /* 중앙 정렬 */
}
.nav-menu > li { position: relative; height: 100%; }

.nav-menu > li > a {
    display: block; padding: 0 15px; font-size: 17px; font-weight: 600;
    line-height: 80px;
    color: var(--white);
    transition: color 0.3s;
}

/* 헤더 호버 시 글자색 변경 */
header:hover .nav-menu > li > a { color: #333; }
header:hover .nav-menu > li > a:hover { color: var(--primary-color); }

/* 3. 우측: 유틸 메뉴 (English) 영역 */
.util-menu {
    flex: 0 0 150px; /* 로고와 같은 너비로 설정하여 메뉴를 정중앙에 위치시킴 */
    display: flex;
    justify-content: flex-end; /* 오른쪽 정렬 */
    align-items: center;
}

.util-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--white); /* 평소엔 흰색 */
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

/* 헤더 호버 시 English 버튼 스타일 변경 */
header:hover .util-menu a {
    color: #555;
    border-color: #ddd;
}
header:hover .util-menu a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 드롭다운 메뉴 (2차) */
.dropdown-content {
    position: absolute;
    top: 80px; left: 50%; /* 부모(li) 기준 중앙 정렬 */
    transform: translateX(-50%);
    width: 180px; /* 너비 지정 */
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding-top: 10px;
}
header:hover .dropdown-content { opacity: 1; }
.dropdown-content li a {
    display: block; padding: 10px 0;
    font-size: 15px; color: #777; font-weight: 500;
}
.dropdown-content li a:hover { color: var(--primary-color); font-weight: 700; }

/* 모바일 대응 (메뉴 숨김) */
@media (max-width: 1024px) {
    .nav-menu, .util-menu { display: none; }
    .nav-wrapper { justify-content: center; } /* 모바일에선 로고만 중앙에 */
}


/* =========================================
   3. 히어로 섹션
   ========================================= */
.hero {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); margin-top: 0; /* 헤더 투명이라 0으로 설정 */
    overflow: hidden;
}
/* ... (이하 기존과 동일) ... */
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 0, 0, 0.4)); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 0 20px; animation: fadeInUp 1s ease-out; }
.hero-content h1 { font-size: 60px; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; line-height: 1.2; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero-content p { font-size: 20px; font-weight: 400; margin-bottom: 48px; opacity: 0.9; line-height: 1.6; }
.btn-cta { padding: 18px 50px; background: var(--primary-color); color: var(--white); font-weight: 700; font-size: 16px; border-radius: 50px; box-shadow: 0 10px 20px rgba(15, 76, 129, 0.4); transition: transform 0.3s, box-shadow 0.3s, background 0.3s; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(15, 76, 129, 0.5); background: #0b3d6b; }

.sub-hero {
    height: 400px;
    background: linear-gradient(rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; margin-top: 0; /* 헤더가 겹치므로 마진 제거 */
    padding-top: 80px; /* 대신 패딩으로 내용 내림 */
    text-align: center;
}
.sub-hero h2 { font-size: 48px; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.sub-hero p { font-size: 18px; font-weight: 300; opacity: 0.9; letter-spacing: 0.5px; }


/* =========================================
   4. 레이아웃 & 카드
   ========================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sub-container { max-width: 1240px; margin: 0 auto; padding: 80px 24px; display: flex; gap: 60px; }

.sidebar { width: 240px; flex-shrink: 0; }
.sidebar h3 { font-size: 22px; font-weight: 800; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid var(--secondary-color); color: var(--secondary-color); }
.sidebar ul li a { display: block; padding: 16px 15px; border-bottom: 1px solid #eee; color: #666; font-weight: 500; border-radius: 4px; transition: all 0.3s; }
.sidebar ul li a:hover, .sidebar ul li a.active { background-color: var(--light-bg); color: var(--primary-color); font-weight: 700; transform: translateX(5px); }

.content-area { flex-grow: 1; min-width: 0; }
.page-title { font-size: 30px; margin-bottom: 40px; color: var(--secondary-color); font-weight: 800; border-bottom: 1px solid #eee; padding-bottom: 20px; position: relative; }
.page-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 60px; height: 3px; background: var(--primary-color); }

.section { padding: 120px 0; background-color: var(--white); }
.section-header { text-align: center; margin-bottom: 80px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; color: var(--secondary-color); letter-spacing: -1px; }

.business-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.card { background: var(--white); border: none; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.4s ease; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card-img { height: 240px; background-color: #eee; background-size: cover; background-position: center; transition: transform 0.5s; }
.card:hover .card-img { transform: scale(1.05); }
.card-content { padding: 35px; }
.card-content h3 { font-size: 24px; font-weight: 700; margin-bottom: 15px; color: var(--secondary-color); }
.link-arrow { display: inline-flex; align-items: center; color: var(--primary-color); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }
.link-arrow::after { content: '→'; margin-left: 5px; transition: transform 0.3s; }
.card:hover .link-arrow::after { transform: translateX(5px); }
.img-1 { background-image: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
.img-2 { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
.img-3 { background-image: url('https://images.unsplash.com/photo-1622630998477-20aa696c4c5c?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }

.stats-section { background-color: var(--primary-color); color: white; padding: 100px 0; text-align: center; }
.stats-grid { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; }
.stat-item h3 { font-size: 56px; font-weight: 900; color: var(--accent-color); margin-bottom: 10px; }

/* =========================================
   5. 페이지별 디테일
   ========================================= */
.table-responsive { overflow-x: auto; margin-bottom: 40px; box-shadow: var(--shadow-sm); border-radius: 8px; }
.product-table, .ir-table, .board-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 700px; background: white; }
.product-table th, .ir-table th, .board-table th { background-color: var(--light-bg); color: var(--secondary-color); font-weight: 700; padding: 18px 20px; text-align: left; border-bottom: 2px solid #eee; }
.ir-table th, .board-table th { text-align: center; }
.product-table td, .ir-table td, .board-table td { padding: 18px 20px; border-bottom: 1px solid #f5f5f5; color: #666; vertical-align: middle; }
.ir-table td, .board-table td { text-align: center; }
.product-table tr:hover, .ir-table tr:hover, .board-table tr:hover { background-color: #fafafa; }
.board-table td.subject { text-align: left; padding-left: 20px; color: #333; cursor: pointer; font-weight: 500; }
.board-table td.subject:hover { color: var(--primary-color); text-decoration: underline; }
.notice-badge { display: inline-block; padding: 4px 10px; background-color: var(--primary-color); color: white; font-size: 11px; border-radius: 20px; font-weight: 700; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #eee; margin: 0 4px; color: #666; border-radius: 50%; transition: all 0.3s; }
.pagination a.active, .pagination a:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

.search-box { background: var(--light-bg); padding: 30px; border-radius: 12px; margin-bottom: 40px; display: flex; gap: 12px; align-items: center; border: 1px solid #eee; }
.search-select, .search-input, .form-control { padding: 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; outline: none; transition: border 0.3s; }
.search-input { flex-grow: 1; }
.form-control:focus, .search-input:focus, .search-select:focus { border-color: var(--primary-color); }
.btn-search { padding: 14px 35px; background: var(--primary-color); color: white; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: background 0.3s; }

.stock-summary { background: white; border: 1px solid #eee; border-radius: 12px; padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; }
.stock-price { font-size: 48px; font-weight: 800; color: #111; letter-spacing: -1px; }

.contact-wrapper { display: flex; flex-direction: column; gap: 40px; }
.contact-form { width: 100%; background: #fff; padding: 0; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--secondary-color); font-size: 15px; }
.form-control { width: 100%; padding: 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; background-color: #fcfcfc; transition: all 0.3s; }
.form-control:focus { background-color: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1); outline: none; }
textarea.form-control { height: 250px; resize: none; }
.btn-submit { width: 100%; padding: 18px; background-color: var(--primary-color); color: white; font-size: 18px; font-weight: 700; border: none; border-radius: 6px; cursor: pointer; transition: background 0.3s, transform 0.2s; margin-top: 10px; }
.btn-submit:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.info-box { width: 100%; background: var(--light-bg); padding: 30px; border-radius: 12px; border: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-around; margin-top: 20px; }
.info-item { text-align: center; }
.info-item h5 { color: var(--primary-color); margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.info-item p { color: #555; font-size: 15px; }

.ceo-message img { width: 100%; height: 400px; object-fit: cover; margin-bottom: 30px; border-radius: 8px; }
.history-item { display: flex; margin-bottom: 30px; border-left: 1px solid #ddd; padding-left: 30px; position: relative; }
.history-item::before { content: ''; position: absolute; left: -5px; top: 0; width: 9px; height: 9px; background: var(--primary-color); border-radius: 50%; }
.history-year { font-weight: 800; color: var(--primary-color); width: 80px; font-size: 20px; flex-shrink: 0; }
.biz-img { width: 100%; height: 350px; background-color: #eee; margin-bottom: 25px; object-fit: cover; border-radius: 8px; }
.biz-details ul { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.biz-details li { background: #f9f9f9; padding: 15px; border-radius: 4px; font-size: 15px; }
.biz-details li strong { display: block; color: var(--primary-color); margin-bottom: 5px; }

/* =========================================
   [NEW] 메인 페이지 스타일 (3단 분야 + 2단 기술)
   ========================================= */

/* =========================================
   [수정됨] 적용 분야 (지그재그 레이아웃)
   ========================================= */
.app-section {
    padding: 120px 0;
    background-color: var(--white);
}

/* 개별 행 (Row) 설정 */
.app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px; /* 사진과 글 사이 간격 */
    margin-bottom: 150px; /* 행 간격 */
}

.app-row:last-child {
    margin-bottom: 0;
}

/* 짝수 번째(2번) 행은 좌우 반전 (글-사진 순서) */
.app-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* 이미지 박스 */
.app-img-box {
    flex: 1;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
}

.app-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* 마우스 올리면 이미지 확대 */
.app-row:hover .app-img-box img {
    transform: scale(1.05);
}

/* 텍스트 박스 */
.app-text-box {
    flex: 0.9; /* 글자 영역이 사진보다 살짝 좁게 */
    padding: 20px;
}

.app-num {
    display: block;
    font-size: 60px;
    font-weight: 900;
    color: #eee; /* 은은한 배경 숫자 */
    line-height: 1;
    margin-bottom: -20px; /* 제목과 겹치게 */
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.app-desc {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    word-break: keep-all;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .app-row, .app-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 100px;
    }
    .app-img-box {
        width: 100%;
        height: 300px;
    }
    .app-text-box {
        padding: 0;
        text-align: center;
    }
    .app-num { margin-bottom: 0; font-size: 40px; }
}

/* --- 2. 핵심 기술 (2 Columns - 사진 내 텍스트) --- */
.tech-section {
    display: flex;
    height: 600px; /* 시원한 높이감 */
    width: 100%;
}

.tech-item {
    flex: 1; /* 50% 씩 차지 */
    position: relative;
    overflow: hidden;
    border: none;
}

.tech-bg {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}

/* 마우스 올리면 배경 확대 */
.tech-item:hover .tech-bg { transform: scale(1.05); }

/* 전체 어두운 막 (글자 가독성 확보) */
.tech-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40% 투명도 검은색 */
    transition: background 0.3s;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 40px;
}

/* 마우스 올리면 조금 더 어두워지며 집중 */
.tech-item:hover .tech-overlay { background: rgba(0, 48, 112, 0.6); /* NPK 블루 틴트 */ }

.tech-content {
    position: relative; z-index: 2;
    max-width: 600px;
}

.tech-label {
    display: inline-block; padding: 6px 15px; border: 1px solid rgba(255,255,255,0.6);
    color: white; border-radius: 20px; font-size: 13px; margin-bottom: 20px;
    letter-spacing: 1px; text-transform: uppercase;
}

.tech-title {
    font-size: 48px; font-weight: 800; color: white; margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tech-desc {
    font-size: 17px; color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 30px;
}

.btn-tech {
    padding: 12px 30px; background: white; color: var(--primary-color);
    font-weight: 700; border-radius: 4px; transition: all 0.3s;
}
.btn-tech:hover { background: var(--primary-color); color: white; }


/* 모바일 대응 */
@media (max-width: 768px) {
    .app-grid { grid-template-columns: 1fr; } /* 1줄로 */
    .tech-section { flex-direction: column; height: auto; }
    .tech-item { height: 400px; }
}

/* =========================================
   6. [최종 수정] 푸터 (제이폴리 스타일 - 좌측 로고, 우측 정보)
   ========================================= */
footer {
    background: #222; /* 짙은 회색 배경 */
    color: #999;      /* 연한 회색 글씨 */
    padding: 60px 0;
    font-size: 13px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;       /* 가로 배치 시작 */
    align-items: flex-start; /* 위쪽 라인 맞춤 */
    justify-content: center; /* 전체 덩어리 중앙 정렬 (원하면 flex-start로 변경 가능) */
    gap: 60px;           /* 로고와 글자 사이 간격 */
}

/* 1. 좌측 로고 영역 */
.footer-left {
    flex-shrink: 0; /* 로고 크기 줄어듦 방지 */
}

.footer-logo-img {
    height: 35px;
    width: auto;
    /* filter: brightness(0) invert(1); <- 이 줄을 지웠어 */
    opacity: 1; /* 원래 색상을 선명하게 보기 위해 불투명도를 1로 설정 */
}

/* 2. 우측 텍스트 정보 영역 */
.footer-right {
    text-align: left; /* 왼쪽 정렬 */
}

.footer-info-line {
    margin-bottom: 6px; /* 줄 간격 */
    line-height: 1.6;
}

/* 텍스트 간 구분선 (|) 스타일 */
.footer-info-line span {
    display: inline-block;
    padding: 0 8px;
    color: #444; /* 구분선 색상 */
    font-size: 11px;
}
.footer-info-line span:first-child { display: none; } /* 첫 구분선 숨김 */

/* 카피라이트 */
.copyright {
    margin-top: 15px;
    color: #666;
    font-family: Arial, sans-serif; /* 영문 폰트 깔끔하게 */
    border-top: none; /* 기존 선 제거 */
    padding-top: 0;
    text-align: left; /* 왼쪽 정렬 */
}

/* 모바일 대응 (좁은 화면에선 세로로) */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start; /* 왼쪽 정렬 */
        gap: 30px;
    }
    .footer-left {
        margin-bottom: 10px;
    }
}

/* =========================================
   7. 애니메이션 및 반응형
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-content h1 { font-size: 36px; }
    .sub-container { flex-direction: column; gap: 40px; }
    .sidebar { width: 100%; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .business-grid, .stats-grid { flex-direction: column; }
    .stock-summary { flex-direction: column; align-items: flex-start; gap: 20px; }
    .mobile-hide { display: none; }
    .info-box { flex-direction: column; text-align: left; }
    .info-item { text-align: left; }
}

/* --- [추가] 조직도 및 연구개발 스타일 --- */

/* 조직도 (Tree 구조) */
.org-chart { text-align: center; padding: 40px 0; }
.org-box { 
    display: inline-block; padding: 15px 40px; 
    background: white; border: 2px solid var(--primary-color); 
    color: var(--primary-color); font-weight: 700; border-radius: 8px; 
    margin-bottom: 40px; position: relative;
}
/* 연결선 */
.org-box::after {
    content: ''; position: absolute; bottom: -42px; left: 50%; 
    width: 2px; height: 42px; background: #ddd; transform: translateX(-50%);
}
.org-box.no-line::after { display: none; }

.org-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.org-item {
    background: #f9f9f9; padding: 15px 25px; border-radius: 4px; border: 1px solid #eee;
    font-size: 15px; font-weight: 500; color: #555; position: relative;
}
/* 상위 박스와 연결되는 선 */
.org-row::before {
    content: ''; position: absolute; top: -20px; left: 50%;
    width: 80%; height: 2px; background: #ddd; transform: translateX(-50%);
}

/* 연구개발 & 품질관리 */
.rnd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.rnd-card { background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid var(--primary-color); }
.rnd-card h3 { margin-bottom: 10px; color: var(--secondary-color); }
.rnd-card p { color: #666; font-size: 15px; }

/* 인증서 그리드 */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.cert-item { border: 1px solid #eee; padding: 20px; text-align: center; border-radius: 8px; transition: all 0.3s; }
.cert-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-color); }
.cert-icon { font-size: 40px; color: var(--primary-color); margin-bottom: 10px; display: block; }

/* =========================================
   [추가] 스크롤 시 헤더 디자인 변경 (Sticky Header)
   ========================================= */

/* 스크롤이 조금이라도 내려가면 적용되는 스타일 (.scrolled) */
header.scrolled {
    background: rgba(255, 255, 255, 0.98); /* 배경 흰색 */
    border-bottom: 1px solid #ddd;         /* 하단 회색 선 */
    box-shadow: 0 5px 10px rgba(0,0,0,0.05); /* 그림자 효과 */
    height: 80px; /* [중요] 높이는 80px로 고정 (드롭다운 안 열림) */
}

/* 스크롤 내렸을 때 로고 색상 복구 (흰색 필터 제거) */
header.scrolled .logo img {
    filter: none;
    opacity: 1;
}

/* 스크롤 내렸을 때 메뉴 글씨 검은색으로 */
header.scrolled .nav-menu > li > a {
    color: #333;
}

/* 스크롤 내렸을 때 English 버튼 스타일 */
header.scrolled .util-menu a {
    color: #555;
    border-color: #ddd;
}

/* [참고] 스크롤 상태라도 마우스를 올리면 드롭다운이 열려야 함 */
header.scrolled:hover {
    height: 320px; /* 호버 시에는 높이 확장 */
}