/* ===========================
   CSS Variables
=========================== */
:root {
    --primary:        #1a4fd8;
    --primary-dark:   #1040bc;
    --primary-light:  #e8f0fe;
    --primary-mid:    #a8c4f8;
    --accent:         #f5a623;
    --dark:           #0a0a0a;
    --navy:           #0f2547;
    --forest:         #145c44;
    --bg-subtle:      #f8f8f8;
    --border-color:   #e5e5e5;
    --header-top-h: 88px;
    --header-nav-h: 62px;
    --header-h: 150px;

    /* Bootstrap 전역 컬러 오버라이드 */
    --bs-primary:           #1a4fd8;
    --bs-primary-rgb:       26, 79, 216;
    --bs-link-color:        #1a1a1a;
    --bs-link-hover-color:  #000000;
    --bs-link-color-rgb:    26, 26, 26;
}

/* ===========================
   Container width (wider layout)
=========================== */
@media (min-width: 992px)  { .container { max-width: 850px !important; } }
@media (min-width: 1200px) { .container { max-width: 1080px !important; } }
@media (min-width: 1400px) { .container { max-width: 1250px !important; } }

/* ===========================
   Global
=========================== */
html {
    height: 100%;
}

body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    padding-top: var(--header-h);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: #fff;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    word-break: keep-all;
}
 
/* 본문 영역이 남은 공간을 채워 푸터를 항상 하단에 고정 */
body > section,
body > div.container,
body > div:not(#siteHeader):not(.page-header):not([class*="toast"]) {
    flex: 1 0 auto;
}

footer.footer {
    flex-shrink: 0;
    margin-top: 0 !important;
}

/* ===========================
   2단 헤더
=========================== */
#siteHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

/* 상단바 */
.header-top {
    height: var(--header-top-h);
    background: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: height 0.3s ease;
}

/* 상단바 3컬럼 레이아웃 */
.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.header-top-left {
    display: flex;
    align-items: center;
}

.header-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* 검색창 */
.header-search-form { width: 100%; max-width: 280px; }

.header-search-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-wrap:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
    background: #fff;
}

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 7px 14px;
    font-size: 0.97rem;
    color: #333;
    outline: none;
    min-width: 0;
}

.header-search-input::placeholder { color: #aaa; }

.header-search-btn {
    background: none;
    border: none;
    padding: 7px 14px;
    color: #888;
    cursor: pointer;
    font-size: 1.05rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

.header-search-btn:hover { color: var(--primary); }

/* 로고 */
.header-brand {
    color: #0a0a0a;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: color 0.25s, letter-spacing 0.25s, font-size 0.3s ease;
}

.header-brand i {
    color: #0a0a0a;
    font-size: 1.6rem;
    transition: font-size 0.3s ease;
}
.header-logo-img {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease;
}
.header-brand:hover {
    color: #000;
    text-decoration: none;
    letter-spacing: 4px;
}
.header-brand:hover i { color: #000; }

/* 우측 유틸리티 링크 */
.util-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.util-link:hover { color: #000; }

.util-divider {
    color: #d5d5d5;
    font-size: 0.88rem;
}

/* 장바구니 아이콘 */
.util-cart {
    position: relative;
    font-size: 1.28rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 드롭다운 */
.header-top .dropdown-toggle {
    color: #333;
    font-size: 0.96rem;
    text-decoration: none;
}

.header-top .dropdown-toggle:hover { color: #000; }

.header-top .dropdown-menu {
    margin-top: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 메인 메뉴바 */
.header-nav {
    height: var(--header-nav-h) !important;
    min-height: var(--header-nav-h) !important;
    background: #fff !important;
    box-shadow: none;
    padding: 0 !important;
    overflow: hidden;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    transition: height 0.3s ease, min-height 0.3s ease;
}

/* Bootstrap navbar 리셋 */
.header-nav .container-fluid {
    height: 100%;
    padding: 0 !important;
    align-items: stretch;
}

.header-nav .navbar-collapse {
    align-items: stretch !important;
}

.main-menu {
    display: flex !important;
    align-items: stretch;
    height: var(--header-nav-h);
    width: 100%;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    transition: height 0.3s ease;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* 구분선 */
.menu-item + .menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e5e5e5;
    z-index: 1;
}

.menu-link {
    display: flex !important;
    align-items: center;
    gap: 7px;
    padding: 0 26px;
    color: #111 !important;
    font-family: 'SUIT Variable', SUIT, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.menu-link i {
    font-size: 1.0rem;
    opacity: 0.45;
    transition: opacity 0.2s, transform 0.2s;
}

/* 하단 강조 바 */
.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #111;
    border-radius: 0;
    transition: width 0.25s ease;
}

.menu-link:hover {
    color: #000 !important;
    background: rgba(0,0,0,0.03);
}

.menu-link:hover i {
    opacity: 0.8;
    transform: translateY(-1px);
}

.menu-link:hover::after {
    width: 100%;
}

/* 활성 메뉴 */
.menu-link.active {
    color: #000 !important;
    background: rgba(0,0,0,0.04);
    font-weight: 700;
}

.menu-link.active i {
    opacity: 0.8;
}

.menu-link.active::after {
    width: 100%;
    height: 2px;
    background: #111;
}

/* 햄버거 버튼 */
.nav-toggler {
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 1.3rem;
    color: #333;
    line-height: 1;
}

/* ── 스크롤 시 헤더 축소 (shrunk) ── */
@media (min-width: 992px) {
    #siteHeader.shrunk .header-top {
        height: 66px;
    }
    #siteHeader.shrunk .header-nav {
        height: 52px !important;
        min-height: 52px !important;
    }
    #siteHeader.shrunk .main-menu {
        height: 52px;
    }
    #siteHeader.shrunk .header-brand {
        font-size: 1.75rem;
    }
    #siteHeader.shrunk .header-brand i {
        font-size: 1.3rem;
    }
    #siteHeader.shrunk .header-logo-img {
        height: 56px;
    }
    body.nav-shrunk {
        padding-top: 118px;
    }
}

/* 모바일 */
@media (max-width: 991px) {
    :root {
        --header-top-h: 56px;
        --header-nav-h: 46px;
        --header-h: 56px;
    }

    body { padding-top: 56px; }

    .header-top-inner {
        grid-template-columns: 1fr auto;
    }

    .header-top-left { display: none; }

    .header-nav {
        height: auto !important;
        min-height: var(--header-nav-h) !important;
    }

    .header-nav .container-fluid {
        flex-wrap: wrap;
        padding: 6px 12px !important;
        align-items: center;
        height: auto;
    }

    .main-menu {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
        height: auto !important;
        padding-bottom: 6px;
    }

    .menu-item {
        width: 100%;
        align-items: center;
    }

    .menu-item + .menu-item::before { display: none; }

    .menu-link {
        padding: 11px 16px !important;
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
        color: #111 !important;
    }

    .menu-link::after { display: none; }

    #siteHeader { position: fixed; }
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    margin-top: calc(-1 * var(--header-h));
}

/* hero-main 도 동일하게 헤더 아래부터 시작 */
.hero-main {
    margin-top: calc(-1 * var(--header-h));
}

/* ── 드론 히어로 ── */
.hero-drone {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ══════════════════════════════
   히어로 — 실사 이미지 버전
══════════════════════════════ */
.hero-main {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 배경 이미지 */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

/* 오버레이: 좌측 텍스트 영역 어둡게, 우측(드론) 밝게 유지 */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(8, 15, 30, 0.72) 0%,
            rgba(8, 15, 30, 0.52) 38%,
            rgba(8, 15, 30, 0.18) 65%,
            rgba(8, 15, 30, 0.10) 100%
        ),
        linear-gradient(180deg,
            rgba(0,0,0,0.25) 0%,
            transparent 30%,
            transparent 70%,
            rgba(0,0,0,0.40) 100%
        );
}

/* 콘텐츠 영역 */
.hero-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    padding-bottom: 100px;
}

.hero-text-wrap {
    max-width: 560px;
}

/* 브랜드 태그 */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(180, 210, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-dot {
    width: 8px; height: 8px;
    background: #5ba8ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #5ba8ff;
    animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.4; }
}

/* 헤드라인 */
.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* 서브타이틀 */
.hero-desc {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    margin-bottom: 36px;
}

/* CTA 버튼 */
.hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(100,170,255,0.3);
    box-shadow: 0 4px 20px rgba(13,110,253,0.45);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-hero-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #2d84ff 0%, #1260d6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13,110,253,0.55);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
}

.btn-hero-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

/* 하단 정보 바 */
.hero-info-bar {
    position: relative;
    z-index: 2;
    background: rgba(8, 15, 30, 0.70);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(100, 160, 255, 0.20);
    padding: 18px 0;
}

.hero-info-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(210, 225, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 28px;
    letter-spacing: 0.3px;
}

.hero-info-item i {
    color: #7eb8ff;
    font-size: 1rem;
}

a.hero-info-item {
    color: rgba(210, 225, 255, 0.88);
    transition: color 0.2s, background 0.2s;
    border-radius: 6px;
}

a.hero-info-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-info-hover {
    cursor: default;
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 6px;
}

.hero-info-hover:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.hero-info-sep {
    width: 1px;
    height: 22px;
    background: rgba(100,160,255,0.25);
    flex-shrink: 0;
}

/* 모바일 */
@media (max-width: 767px) {
    .hero-main        { min-height: 100vh; height: auto; }
    .hero-body        { padding-bottom: 20px; }
    .hero-text-wrap   { max-width: 100%; }
    .hero-info-item   { padding: 6px 16px; font-size: 0.8rem; }
}

.hero-drone-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: var(--header-h);
}


/* 모바일 히어로 */
@media (max-width: 767px) {
    .hero-drone      { min-height: 100vh; height: auto; }
    .hbg-drone       { width: min(300px, 86vw); height: min(300px, 86vw); top: 38%; }
    .hbg-drone-shadow{ top: 62%; }
}

/* ===========================
   Page Header
=========================== */
.page-header {
    display: none;
}

/* ===========================
   Sections
=========================== */
.section-padding { padding: 80px 0; }

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0a0a0a;
    margin-top: 0.5rem;
    letter-spacing: -0.04em;
}

.section-sub {
    color: #718096;
    font-size: 0.92rem;
    font-weight: 400;
}

/* ===========================
   Product Cards
=========================== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.product-img-wrap {
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===========================
   Service Cards
=========================== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(13,110,253,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===========================
   Cart
=========================== */
.cart-item-row {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    transition: background 0.2s;
}

.cart-item-row:hover { background: #fafbff; }

.cart-total-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

/* ===========================
   Gallery
=========================== */
.gallery-thumb, .gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-thumb-wrap, .gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,110,253,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
}

.gallery-thumb:hover .gallery-overlay,
.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-thumb:hover img,
.gallery-card:hover .gallery-img { transform: scale(1.08); }

/* ===========================
   Notice
=========================== */
.notice-list .list-group-item { border-left: none; border-right: none; }
.notice-link:hover { color: #000 !important; }
.notice-row { border-bottom: 1px solid #f0f0f0; padding: auto 10px;}
.notice-row:hover { background: #f8f9ff; }
.notice-pinned { background: #f0f5ff; }
.notice-num  { width: 60px; flex-shrink: 0; }
.notice-title-col { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-date { width: 90px; flex-shrink: 0; }
.notice-views { width: 60px; flex-shrink: 0; }
.notice-content { line-height: 1.9; }
/* 공지사항 본문 이미지 : 가로 꽉차게, 인라인 스타일보다 우선 */
.notice-content img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 6px;
    margin-bottom: .75rem;
}
/* Summernote 에디터 미리보기에서도 동일하게 */
.note-editable .notice-content img,
.note-editable img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Timeline (About)
=========================== */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), #dee2e6);
}

.timeline-item { position: relative; margin-bottom: 2rem; }

.timeline-marker {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year { font-size: 1.1rem; }

/* ===========================
   Support / A/S Pages
=========================== */
.support-card {
    border-radius: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}

.as-step {
    text-align: center;
    padding: 24px 16px;
}

/* .as-step-num 은 as-center.html 내 <style>에서 페이지별로 정의 */
.as-step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

/* ===========================
   MyPage
=========================== */
.mypage-stat {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: background 0.2s;
}

.mypage-stat:hover { background: #e8f0fe; }

/* ===========================
   Auth Pages
=========================== */
.auth-section {
    min-height: calc(100vh - var(--header-h));
    padding: 60px 16px;
    background: #f8f9fa;
    overflow: visible;
}
.auth-card {
    border-radius: 16px !important;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    overflow: visible !important;
}

/* 개인정보 동의 박스 */
.privacy-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 0.875rem;
}

.privacy-box.required-box {
    border-color: #b6d4fe;
    background: #f0f6ff;
}

/* ===========================
   Admin
=========================== */
.admin-menu-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px !important;
}

.admin-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

.stat-card {
    border-radius: 12px !important;
    transition: transform 0.2s;
    cursor: pointer;
}

.stat-card:hover { transform: translateY(-4px); }

/* ===========================
   Mega Menu
=========================== */
.mega-menu-panel {
    position: fixed;
    top: var(--header-h);
    left: 50%;
    width: calc(100% - 48px);
    max-width: 1400px;
    max-height: calc(100vh - var(--header-h) - 16px);
    background: #f0f4f8;
    z-index: 9998;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    border: 1px solid #c8d8f0;
    border-top: 3px solid #2563eb;
    border-radius: 0 0 10px 10px;
    animation: megaSlideDown 0.2s ease forwards;
}
@keyframes megaSlideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mega-overlay {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9997;
}
.mega-menu-inner {
    max-width: 100%;
    margin: 0;
    padding: 0 28px 24px;
}
.mega-menu-header {
    padding: 14px 0 12px;
    border-bottom: 2px solid #e8edf5;
    color: #1a2e4a;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.mega-close-btn {
    background: none;
    border: 1px solid #d0daea;
    border-radius: 6px;
    padding: 3px 10px;
    color: #607080;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.mega-close-btn:hover { background: #f0f4fa; color: #1a2e4a; border-color: #aabbcc; }

/* 제품 전체보기 바 */
.mega-all-products-bar {
    padding: 10px 0 12px;
    border-bottom: 2px solid #e8edf5;
}
.mega-all-products-btn {
    display: inline-flex;
    align-items: center;
    background: #1a4fa8;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.mega-all-products-btn:hover {
    background: #154086;
    color: #fff;
    transform: translateY(-1px);
}

.mega-menu-body { padding-top: 2px; }

.mega-cat-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #dce6f0;
}
.mega-cat-row:last-child { border-bottom: none; }

.mega-cat-name {
    width: 160px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
    padding-top: 3px;
    color: #111;
}
.mega-cat-name a {
    color: #111;
    text-decoration: none;
    transition: color 0.15s;
}
.mega-cat-name a:hover { color: #000; }

.mega-subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}
.mega-subcat-link {
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 3px 11px;
    border-radius: 14px;
    border: 1px solid #ddd;
    background: #f0f0f0;
    transition: all 0.15s;
    white-space: nowrap;
}
.mega-subcat-link:hover {
    background: #e5e5e5;
    border-color: #bbb;
    color: #000;
}

/* 제품보기 메뉴 아이템 활성 표시 */
.mega-toggle.mega-active { color: var(--primary) !important; background: rgba(26,79,216,0.1); }

/* ===========================
   Board Headers (QnA / Review)
=========================== */
.board-header {
    border-bottom: 3px solid var(--primary);
    padding: 28px 0 20px;
    margin-bottom: 28px;
}
.board-header .board-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ===========================
   Footer
=========================== */
.footer { font-size: 0.875rem; }
.footer-link { color: #a8b4c4 !important; }
.footer-link:hover { color: #fff !important; }

/* 푸터 내 text-muted 가시성 개선 */
.footer .text-muted,
footer .text-muted {
    color: #8fa3b8 !important;
}

/* 푸터 내 small 텍스트 */
.footer .small,
footer .small,
.footer small,
footer small {
    color: #8fa3b8;
}

/* ===========================
   Utility Classes (인라인 스타일 대체)
=========================== */
/* index.html, products.html 등에서 반복되는 인라인 스타일을 클래스로 통일 */

/* style="width:56px;height:56px;font-size:1.5rem;" 대체 */
.icon-circle-lg {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

/* style="height:150px;overflow:hidden;background:#f8f9fa;" 대체 */
.product-img-box {
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
}

/* ===========================
   Misc
=========================== */
.btn { border-radius: 8px; }
.card {
    border-radius: 12px;
    border-color: var(--border-color) !important;
}
.card.border-0 { border-color: transparent !important; }

/* bg-light sections */
.bg-light {
    background-color: var(--bg-subtle) !important;
}

/* ── 타이포그래피 전역 ── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    color: inherit;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
    word-break: keep-all;
}
p, li, td, th, label, span {
    word-break: keep-all;
}
.text-muted { color: #777 !important; }
.text-primary { color: var(--primary) !important; }
a { color: #1a1a1a; }
a:hover { color: #000; }
small, .small { font-size: 0.82rem; color: #777; }

.value-card {
    border-radius: 12px;
    transition: background 0.2s;
}

.value-card:hover { background: #f8f9ff; }

/* ===========================
   홈 — 자료실/AS 스트립
=========================== */
.idx-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 48px 0;
}
.idx-strip-divider {
    width: 1px;
    height: 80px;
    background: #e5e5e5;
    margin: 0 48px;
}
.idx-strip-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
}
.idx-strip-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.idx-strip-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.65;
    margin: 0 0 16px;
}
.idx-strip-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #111;
    padding-bottom: 1px;
    transition: opacity 0.18s;
}
.idx-strip-link:hover { opacity: 0.55; }

@media (max-width: 639px) {
    .idx-strip { grid-template-columns: 1fr; padding: 32px 0; }
    .idx-strip-divider { width: 100%; height: 1px; margin: 24px 0; }
}

/* ===========================
   홈 — 3열 바로가기
=========================== */
.idx-shortcut-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 2px solid #111;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
}
.idx-shortcut {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px 0;
    text-decoration: none !important;
    border-right: 1px solid #e5e5e5;
    transition: background 0.15s;
    padding-left: 4px;
}
.idx-shortcut:last-child { border-right: none; }
.idx-shortcut:hover { background: #fafafa; }
.idx-sc-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aaa !important;
}
.idx-sc-title {
    font-size: 1.0rem;
    font-weight: 800;
    color: #0a0a0a !important;
    letter-spacing: -0.02em;
}
.idx-sc-arrow {
    font-size: 1.0rem;
    color: #bbb !important;
    margin-top: 4px;
    transition: transform 0.15s, color 0.15s;
}
.idx-shortcut:hover .idx-sc-arrow {
    transform: translateX(4px);
    color: #555 !important;
}
@media (max-width: 639px) {
    .idx-shortcut-row { grid-template-columns: 1fr; }
    .idx-shortcut { border-right: none; border-bottom: 1px solid #e5e5e5; padding: 20px 0; }
    .idx-shortcut:last-child { border-bottom: none; }
}

/* ===========================
   홈 — 공지사항 + 문의
=========================== */
.idx-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 56px 0 72px;
}
@media (max-width: 767px) {
    .idx-bottom { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 56px; }
}
.idx-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 0;
    border-bottom: 2px solid #111;
}
.idx-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}
.idx-more-link {
    font-size: 0.72rem;
    color: #aaa !important;
    text-decoration: none !important;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.idx-more-link:hover { color: #111 !important; border-color: #111; }

/* 공지 목록 */
.idx-notice-list { margin-top: 0; }
.idx-notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}
.idx-notice-title {
    font-size: 0.85rem;
    color: #222 !important;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color 0.15s;
}
.idx-notice-title:hover { color: #000 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.idx-notice-date {
    font-size: 0.73rem;
    color: #bbb;
    flex-shrink: 0;
}
.idx-notice-empty {
    font-size: 0.83rem;
    color: #bbb;
    padding: 20px 0 0;
    margin: 0;
}

/* 연락처 블록 — 흰 배경, 대형 전화번호 */
.idx-contact-body {
    padding-top: 20px;
}
.idx-phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 18px;
}
.idx-phone-item {
    padding: 12px 0;
    border-right: 1px solid #e8e8e8;
    padding-right: 20px;
}
.idx-phone-item:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 20px;
}
.idx-phone-role {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa !important;
    margin-bottom: 4px;
}
.idx-phone-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111 !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2px;
}
.idx-phone-name {
    font-size: 0.75rem;
    color: #999 !important;
}
.idx-contact-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #999 !important;
    margin-bottom: 18px;
}
.idx-detail-sep {
    color: #ccc !important;
}
.idx-contact-btn {
    display: inline-block;
    background: #111;
    color: #fff !important;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}
.idx-contact-btn:hover { background: #333; color: #fff !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ===========================
   Scroll Reveal Animation
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    .hero-slide { background-attachment: scroll; }
    .hero-section { margin-top: -52px; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
}

/* ===========================
   Summernote Bootstrap 5 드롭다운 수정
=========================== */
/* .show 클래스가 붙으면 반드시 표시, z-index 충분히 확보 */
.note-toolbar .dropdown-menu.show,
.note-toolbar .note-dropdown-menu.show {
    display: block !important;
    z-index: 9999 !important;
    position: absolute !important;
}
/* 색상 피커 패널 */
.note-toolbar .note-color-all .dropdown-menu.show,
.note-toolbar .note-color-all .note-dropdown-menu.show {
    min-width: 340px;
}

