@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 200px;
    /* 로고와 같은 너비로 설정하여 메뉴를 정중앙에 위치시킴 */
    display: flex;
    justify-content: flex-end;
    /* 오른쪽 정렬 */
    align-items: center;
    gap: 10px;
}

.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;
}

/* 햄버거 버튼 (PC에서 숨김) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

header:hover .hamburger span,
header.scrolled .hamburger span {
    background: #333;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 대응 (메뉴 숨김) */
@media (max-width: 1024px) {

    .nav-wrapper {
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        z-index: 10000;
        padding: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu>li {
        height: auto;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu>li>a {
        line-height: 1;
        padding: 18px 24px;
        font-size: 16px;
        color: #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu>li>a::after {
        content: '▾';
        font-size: 12px;
        color: #aaa;
        transition: transform 0.3s;
    }

    .nav-menu>li.sub-open>a::after {
        transform: rotate(180deg);
    }

    .dropdown-content {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: #f9f9f9;
        box-shadow: none;
        width: 100%;
        min-width: auto;
        padding: 0;
    }

    .nav-menu>li.sub-open .dropdown-content {
        display: block;
    }

    .dropdown-content li {
        width: 100%;
    }

    .dropdown-content li a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 14px 24px 14px 40px;
        font-size: 14px;
        color: #555;
        text-align: left;
        -webkit-tap-highlight-color: rgba(15, 76, 129, 0.1);
    }

    .dropdown-content li a:hover,
    .dropdown-content li a:active {
        background: #f0f0f0;
        color: var(--primary-color);
    }

    .util-menu {
        display: none;
    }

    .util-menu.open {
        display: flex;
        justify-content: center;
        padding: 16px 24px;
        border-top: 1px solid #f0f0f0;
    }

    .util-menu.open a {
        color: #555;
        border-color: #ddd;
    }

    /* 모바일: 헤더 항상 흰색 배경, 뷰포트 고정 */
    header,
    header:hover,
    header.scrolled,
    header.scrolled:hover {
        background: #fff !important;
        height: 80px !important;
        border-bottom: 1px solid #eee;
        box-shadow: none;
        max-width: 100vw;
        overflow: hidden;
    }

    header .logo img,
    header:not(:hover) .logo img {
        filter: none !important;
    }

    .hamburger span,
    header:hover .hamburger span,
    header.scrolled .hamburger span {
        background: #333 !important;
    }
}


/* =========================================
   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;
}

.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);
    opacity: 0;
    transform: translateY(40px);
    animation: heroTextIn 1s ease-out 0.3s forwards;
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 48px;
    opacity: 0;
    line-height: 1.6;
    transform: translateY(30px);
    animation: heroTextIn 0.5s ease-out 0s forwards;
}

@keyframes heroTextIn {
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* 스크롤 다운 화살표 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0;
    animation: heroTextIn 1s ease-out 1.2s forwards;
}

.scroll-indicator span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    40% {
        transform: rotate(45deg) translateY(8px);
    }

    60% {
        transform: rotate(45deg) translateY(4px);
    }
}

.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;
}

/* 데스크톱/모바일 서브히어로 텍스트 전환 */
.hero-desc-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-desc-desktop {
        display: none;
    }

    .hero-desc-mobile {
        display: block;
    }
}

/* 오시는 길 모바일 */
@media (max-width: 768px) {
    .location-wrap {
        padding: 16px !important;
    }

    .location-wrap strong {
        font-size: 18px !important;
        margin-top: 30px !important;
        margin-bottom: 12px !important;
    }

    .location-wrap p {
        font-size: 13px !important;
    }
}


/* =========================================
   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 {
    /* 1. 내용의 최대 너비를 제한 (너무 넓어지지 않게 함) */
    max-width: 1200px;

    /* 2. 상하 여백은 0, 좌우 여백은 자동으로 설정해서 '가운데 정렬' */
    margin: 0 auto;

    /* 3. 화면이 작아졌을 때 양옆 끝에 붙지 않도록 안쪽 여백 추가 */
    padding: 60px 20px;

    /* 4. 기존에 설정되어 있던 float나 width: 75% 같은 값이 있다면 삭제해줘 */
    float: none;
    width: auto;
}

.page-title {
    font-size: 34px;
    margin-bottom: 60px;
    color: var(--secondary-color);
    font-weight: 800;
    text-align: center;
    /* 가운데 정렬 */
    position: relative;
    padding-bottom: 20px;
}

/* 중앙 하단 언더라인 디자인 */
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* 정확히 가운데로 이동 */
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.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;
}

@media (max-width: 768px) {

    .ir-table,
    .board-table {
        min-width: 0;
        font-size: 13px;
    }

    .ir-table th,
    .board-table th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .ir-table td,
    .board-table td {
        padding: 12px 8px;
    }

    .board-table td.subject {
        padding-left: 8px;
    }
}

.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;
}

.biz2-img {
    width: 32%;
    height: 240px;
    background-color: #eee;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .biz2-img {
        width: 100%;
        height: auto;
        margin-right: 0 !important;
    }
}

.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;
}

@media (max-width: 768px) {
    .biz-details ul {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   [NEW] 메인 페이지 스타일 (3단 분야 + 2단 기술)
   ========================================= */

/* =========================================
   슬라이더 섹션
   ========================================= */
.slider-section {
    padding: 100px 0 80px;
    background-color: var(--light-bg);
}

.slider-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.slider-track:active {
    cursor: grabbing;
}

.slider-card {
    flex: 0 0 50%;
    padding: 0 12px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.slider-card-img {
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slider-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-card:hover .slider-card-img img {
    transform: scale(1.05);
}

.slider-placeholder-text {
    color: #aaa;
    font-size: 15px;
    font-weight: 500;
}

.slider-card-body {
    background: white;
    padding: 28px 24px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.slider-card:hover .slider-card-body {
    box-shadow: 0 8px 30px rgba(15, 76, 129, 0.12);
}

.slider-card-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(15, 76, 129, 0.08);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.slider-card-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.slider-card-body p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
}

/* 화살표 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    background: white;
    color: #333;
    border-color: #ddd;
}

.slider-prev {
    left: 8px;
}

.slider-next {
    right: 8px;
}

/* 인디케이터 점 */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .slider-section {
        padding: 70px 0 60px;
    }

    .slider-container {
        padding: 0 48px;
    }

    .slider-card {
        flex: 0 0 100%;
        padding: 0 8px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-prev {
        left: 6px;
    }

    .slider-next {
        right: 6px;
    }

    .slider-card-body h3 {
        font-size: 19px;
    }
}

/* =========================================
   카운트업 통계 섹션
   ========================================= */
.stats-section {
    position: relative;
    padding: 100px 0 90px;
    background: #ffffff;
    overflow: hidden;
}

.stats-bg-pattern {
    display: none;
}

.stats-section .section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 60px;
}

.stats-section .section-header h2 {
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stats-section .section-header p {
    color: var(--text-gray);
    font-size: 16px;
    margin-top: 12px;
}

.stats-grid-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 28px 36px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(15, 76, 129, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 76, 129, 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.06);
    border: 1px solid rgba(15, 76, 129, 0.1);
    margin-bottom: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrap {
    background: rgba(15, 76, 129, 0.1);
    border-color: rgba(15, 76, 129, 0.2);
    transform: scale(1.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
    font-family: 'Noto Sans KR', Arial, sans-serif;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-top: 4px;
}

/* 태블릿 (2열) */
@media (max-width: 1024px) {
    .stats-section {
        padding: 80px 0 70px;
    }

    .stats-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 42px;
    }
}

/* 모바일 (1열) */
@media (max-width: 600px) {
    .stats-section {
        padding: 60px 0 50px;
    }

    .stats-section .section-header h2 {
        font-size: 28px;
    }

    .stats-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }

    .stat-card {
        padding: 32px 24px 28px;
    }

    .stat-number {
        font-size: 38px;
    }

    .stat-icon-wrap {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .stat-icon-wrap svg {
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   스크롤 페이드인 애니메이션
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
/* =========================================
   6. [최종 수정] 푸터 (제이폴리 스타일 - 좌측 로고, 우측 정보)
   ========================================= */
footer {
    background: rgba(0, 48, 96, 0.8);
    /* hero-nav-inner(탭)와 유사한 짙은 파란색 배경 */
    color: #fff;
    /* 글자색 흰색 */
    padding: 60px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    /* 유리 효과 통일감 */
}

.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;
}

/* 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: rgba(255, 255, 255, 0.4);
    /* 구분선 색상 흐리게 */
    font-size: 11px;
}

.footer-info-line span:first-child {
    display: none;
}

/* 첫 구분선 숨김 */

/* 카피라이트 */
.copyright {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-family: Arial, sans-serif;
    /* 영문 폰트 깔끔하게 */
    border-top: none;
    /* 기존 선 제거 */
    padding-top: 0;
    text-align: left;
    /* 왼쪽 정렬 */
}

/* 모바일 대응 (좁은 화면에선 세로로) */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        /* 왼쪽 정렬 */
        gap: 16px;
    }

    .footer-left {
        margin-bottom: 0;
    }

    .footer-fax-br {
        display: block !important;
        height: 0;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* =========================================
   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;
    }
}

/* =========================================
    인증서 그리드
   ========================================= */
.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;
    /* 호버 시에는 높이 확장 */
}

/* --- [수정] 서브 히어로 (높이 자동 조절 & 배경색 보정) --- */
.sub-hero {
    /* 높이를 auto로 설정해 메뉴바가 포함되도록 늘려줌 */
    height: auto !important;
    min-height: 300px;
    /* 최소 높이는 유지 */

    /* 배경 이미지가 모자랄 때를 대비해 파란색으로 빈 공간 채움 */
    background-color: #003060;
    background-size: cover;
    /* 이미지가 영역을 꽉 채우도록 설정 */
    background-position: center center;

    /* 메뉴바를 바닥에 붙이기 위한 정렬 설정 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 0 !important;
}

.hero-content {
    /* 텍스트가 너무 위아래로 붙지 않게 여백 조정 */
    padding-top: 80px;
    padding-bottom: 60px;
}

/* --- [수정] 가로형 탭 메뉴 (투명도 적용) --- */
.hero-nav {
    width: 100%;
    /* 메뉴바 전체 뒤에 깔리는 띠의 투명도 조절 (필요 없으면 삭제 가능) */
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-nav-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.hero-nav li {
    flex: 1;
    text-align: center;
}

/* [수정 1] 버튼 투명도 적용 (Inactive 상태) */
.hero-nav a {
    display: block;
    padding: 20px 0;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff;

    /* 배경색: 파란색인데 0.6(60%) 정도의 투명도 */
    background-color: rgba(0, 48, 96, 0.6);

    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    /* (선택사항) 뒤 배경을 흐릿하게 만드는 유리 효과 */
}

.hero-nav a:hover {
    background-color: rgba(0, 64, 128, 0.8);
    /* 마우스 올리면 좀 더 진해짐 */
}

/* [수정 1] 활성화 버튼 투명도 적용 (Active 상태) */
.hero-nav a.active {

    background-color: rgba(255, 255, 255, 1);

    color: #003060;
    font-weight: 800;
    border-top: 3px solid #003060;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .hero-nav a {
        font-size: 0.9rem;
        padding: 15px 0;
    }
}

/* 다운로드 버튼 2개 컨테이너 (2번 위치용) */
.download-container {
    margin: 20px 0 30px 0;
    /* 위아래 간격 */
    display: flex;
    /* 버튼들을 가로로 나열 */
    justify-content: center;
    /* 가운데 정렬 */
    gap: 15px;
    /* 버튼 사이의 간격 */
    flex-wrap: wrap;
    /* 화면이 좁아지면 자동으로 줄바꿈(반응형) */
}

/* 개별 버튼 스타일 */
.pamphlet-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0f4c81;
    /* 기본 블루 컬러 */
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 15px;
    text-align: center;
    min-width: 200px;
    /* 버튼의 최소 너비를 맞춰서 통일감 부여 */
}

.pamphlet-btn:hover {
    background-color: #0c3e69;
    /* 마우스 올렸을 때 색상 */
}

/* 시험설비 표 스타일 */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    /* 테두리 겹침 방지 */
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.equipment-table th {
    background-color: #0f4c81;
    /* NPK 블루 컬러 */
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    font-weight: 600;
    border: 1px solid #ddd;
}

.equipment-table td {
    padding: 15px;
    border: 1px solid #ddd;
    color: #444;
}

/* 왼쪽 '분류' 열 스타일 포인트 */
.equipment-table .cat-name {
    background-color: #f8f9fa;
    /* 아주 연한 회색 배경 */
    color: #0f4c81;
    /* 글자는 NPK 블루 */
    font-weight: bold;
    width: 25%;
    /* 너비 지정 */
    text-align: center;
    vertical-align: middle;
    /* 세로 가운데 정렬 */
}

@media (max-width: 768px) {
    .equipment-table {
        font-size: 12px;
        line-height: 1.4;
    }

    .equipment-table th {
        padding: 8px 6px;
        font-size: 12px;
    }

    .equipment-table td {
        padding: 8px 6px;
    }
}

/* =========================================
   카탈로그 다운로드 섹션
   ========================================= */
.catalog-section {
    padding: 80px 0;
    background-color: #f8f9fc;
    /* 배경색을 아주 연한 회색/파란색 톤으로 구분감 부여 */
}

.catalog-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.catalog-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 380px;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(15, 76, 129, 0.12);
}

.catalog-img {
    width: 100%;
    /* 여기가 핵심! 가로를 길게(1.414), 세로를 짧게(1) 변경 */
    aspect-ratio: 1.414 / 1;
    background-color: #eee;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #0F4C81;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-img img {
    transform: scale(1.05);
    /* 마우스 올렸을 때 표지 살짝 커지는 효과 */
}

.catalog-info {
    padding: 25px;
    text-align: center;
}

.catalog-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background-color: #0F4C81;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.catalog-btn:hover {
    background-color: #0b3d6b;
    color: #ffffff;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .catalog-section {
        padding: 60px 0;
    }

    .catalog-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .catalog-card {
        width: 100%;
        max-width: 100%;
    }
}