
:root {
    --section-bg: #ddeaff;      /* 하단 정보 섹션 배경색 */
    --card-bg: #ffffff;         /* 카드 배경색 */
    --point-color: #0f376a;     /* 포인트 컬러 (불릿, 뱃지) */
    --point-light: #f3e5ab;     /* 밝은 포인트 컬러 (메뉴 호버/밑줄) */
    --card-title-color: #12203e;/* 카드 제목 색 */
    --card-text-color: #475569; /* 카드 본문 색 */
}


body {
    background-color: #f4f6f9 !important; ; /* 모든 페이지 공통 은은한 배경색 */
}
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
    letter-spacing: -0.02em;
    padding-top: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden;
    word-break: keep-all;
}

/* 1. 공지 팝업 */
.notice_pop1, .notice_pop2 {
    position: fixed;
    top: 210px;
    z-index: 9999;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 90vw;
}
.notice_pop1 { left: 3%; }
.notice_pop2 { left: 6%; }
.notice_pop1 .box, .notice_pop2 .box { border: none; background: #fff; }
.notice_pop1 .box img, .notice_pop2 .box img { max-width: 100%; height: auto; }
.notice_pop1 .box .txt, .notice_pop2 .box .txt {
    font-size: 12px;
    text-align: right;
    padding: 8px 12px;
    background-color: #1e293b;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 2. 헤더 */
header.navbar.wet-asphalt {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    padding: 8px 0 0 0 !important;
    margin-bottom: 0 !important;
}

.logo-wrap {
    text-align: center;
    padding: 4px 0 6px 0;
}
.logo-wrap img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 메뉴바 중앙 정렬 */
.navbar-collapse {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}
.navbar-nav {
    float: none !important;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto !important;
}
.navbar-inverse .navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 500;
    padding: 14px 18px !important;
    background: transparent !important;
    position: relative;
    transition: color 0.25s ease;
}
.navbar-inverse .navbar-nav > li.active > a {
    background: transparent !important;
    color: var(--point-light) !important;
    font-weight: 600;
}
.navbar-inverse .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--point-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li.active > a {
    color: var(--point-light) !important;
}
.navbar-inverse .navbar-nav > li > a:hover::after,
.navbar-inverse .navbar-nav > li.active > a::after {
    width: 60%;
}

/* 조명박물관 외부링크 버튼화 */
.navbar-inverse .navbar-nav > li.museum-link > a {
    margin-left: 15px;
    padding: 6px 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.65);
    border-radius: 20px;
    color: var(--point-light) !important;
    font-size: 13.5px;
}
.navbar-inverse .navbar-nav > li.museum-link > a::after { display: none; }
.navbar-inverse .navbar-nav > li.museum-link > a:hover {
    background: var(--point-light) !important;
    color: #0f172a !important;
    font-weight: 600;
}

/* 3. 드롭다운 메뉴 (상위 메뉴 정중앙 기준 정렬) */
@media (min-width: 768px) {
    .navbar-nav > li.dropdown {
        position: relative;
    }
    .navbar-nav > li.dropdown > .dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 10px);
        text-align: center;
    }
    .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(16, 26, 52, 0.96) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 190px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    margin-top: 0 !important;
}
.dropdown-menu > li > a {
    color: #e2e8f0 !important;
    font-size: 14px;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dropdown-menu > li > a:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: #ffff76 !important;
}

/* 4. 메인 슬라이더 영역 */
#main-slider {
  /*  margin-top: 198px !important; */
    padding-top: 0 !important;
    position: relative;
}
#main-slider .carousel,
#main-slider .carousel-inner,
#main-slider .item {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#main-slider .item {
    height: 680px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
#main-slider .prev, #main-slider .next {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px);
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}
#main-slider .prev:hover, #main-slider .next:hover {
    background: var(--point-color) !important;
    color: #ffffff !important;
}

/* 5. 서브페이지 상단 여백 공통 (고정 헤더에 가려짐 방지) */
#about-us, #pricing, #portfolio, #blog, #contact-page, #error, #terms, #privacy-policy, .sub-page-wrap {
    margin-top: 215px;
    padding-bottom: 70px;
}
.about-main-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 32px;
    display: block;
}
.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#portfolio {
            padding: 0 15px 80px !important;
            margin-top: 30px !important;
        }

/* 6. 하단 카드 섹션 */
#services.emerald {
    background-color: var(--section-bg) !important;
    padding: 75px 0 85px 0 !important;
}
.equal-height-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.equal-height-row > [class*='col-'] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-bottom: 24px;
}
.info-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 36px 30px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(15, 55, 106, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    position: relative;
}
.info-card .card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: #0f376a;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.info-card h3.media-heading {
    font-size: 21px;
    font-weight: 700;
    color: var(--card-title-color) !important;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--card-text-color) !important;
    margin: 0;
}
.info-card ul.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-card ul.info-list li {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--card-text-color);
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
}
.info-card ul.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--point-color);
    font-weight: bold;
}

/* =====================================================================
   태블릿 및 모바일 최적화 (767px 이하)
   ===================================================================== */
@media (max-width: 991px) {
    #main-slider .item { height: 500px !important; }
}

@media (max-width: 767px) {
    #main-slider { margin-top: 165px !important; }
    #main-slider .item { height: 320px !important; }
    #about-us, #pricing, #portfolio, #blog, #contact-page, #error, #terms, #privacy-policy, .sub-page-wrap {
        margin-top: 175px;
        padding-bottom: 45px;
    }

    .navbar-toggle {
        border-color: rgba(255,255,255,0.3) !important;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        max-height: 75vh;
        overflow-y: auto;
    }
    .navbar-nav { display: block; text-align: left; padding: 8px 0; }
    .navbar-inverse .navbar-nav > li > a { padding: 12px 20px !important; }
    .navbar-inverse .navbar-nav > li > a::after { display: none; }
    .dropdown-menu {
        position: static;
        float: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: rgba(0, 0, 0, 0.25) !important;
        padding: 4px 0 4px 16px !important;
    }
    .navbar-inverse .navbar-nav > li.museum-link > a {
        margin: 12px 20px;
        display: inline-block;
    }

    /* 모바일 카드 섹션 정렬 */
    #services.emerald {
        padding: 40px 0 45px 0 !important;
    }
    .equal-height-row {
        display: block;
        margin-left: -10px;
        margin-right: -10px;
    }
    .equal-height-row > [class*='col-'] {
        display: block;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 16px;
    }
    .equal-height-row > [class*='col-']:last-child {
        margin-bottom: 0;
    }
    .info-card {
        height: auto;
        min-height: 0;
        padding: 24px 20px;
        border-radius: 14px;
    }
    .info-card .card-badge {
        font-size: 10.5px;
        padding: 3px 8px;
        margin-bottom: 10px;
    }
    .info-card h3.media-heading {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .info-card p, .info-card ul.info-list li {
        font-size: 14px;
        line-height: 1.65;
    }
}





body.sub-page {
    padding-top: 220px !important; /* 상단 고정 헤더 여백 */
}

@media (max-width: 767px) {
    body.sub-page {
        padding-top: 140px !important;
    }
}

#story-page {
    padding: 30px 15px 80px;
}

/* 사이드바 위젯 (배경 박스·그림자 제거, 깔끔한 텍스트 메뉴 형태) */
.story-sidebar {
    background: transparent;
    padding: 8px 34px 20px 0;
    margin-bottom: 30px;
}
.story-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f1c30;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0f1c30;
}
.story-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.story-nav li {
    margin-bottom: 6px;
}
.story-nav li:last-child {
    margin-bottom: 0;
}
.story-nav li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.story-nav li a:hover {
    background: rgba(15, 28, 48, 0.06);
    color: #0f1c30;
}
.story-nav li a.sactive {
    background: #173c66;
    color: #ffffff;
    font-weight: 700;
}

/* 본문 스토리 카드 */
.story-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 38px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 28, 48, 0.05);
    border: 1px solid rgba(15, 28, 48, 0.06);
}
.story-card .card-badge {
    display: inline-block;
    background: rgba(15, 28, 48, 0.06);
    color: #173c66;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.story-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f1c30;
    margin: 0 0 18px 0;
    line-height: 1.4;
    word-break: keep-all;
}
.story-card p {
    font-size: 15.5px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 18px;
    word-break: keep-all;
}
.story-card p:last-child {
    margin-bottom: 0;
}
.story-card img.story-img {
    width: 100%;
    border-radius: 12px;
    margin-top: 22px;
    display: block;
    
}

/* 카드 내부 소제목 구분 블록 */
.sub-topic {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px dashed #e2e8f0;
}
.sub-topic h4 {
    font-size: 17px;
    font-weight: 700;
    color: #173c66;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}
.sub-topic h4::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #d4af37;
    border-radius: 2px;
    margin-right: 10px;
}

/* 크리스마스 3가지 색 박스 */
.color-grid {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.color-box {
    flex: 1;
    min-width: 200px;
    border-radius: 12px;
    padding: 20px 18px;
    border: 1px solid #e2e8f0;
}
.color-box.red {
    background: #fff8f8;
    border-top: 4px solid #c53030;
}
.color-box.green {
    background: #f4fbf7;
    border-top: 4px solid #2f855a;
}
.color-box.white {
    background: #f8fafc;
    border-top: 4px solid #cbd5e1;
}
.color-box .color-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.color-box.red .color-title { color: #c53030; }
.color-box.green .color-title { color: #2f855a; }
.color-box.white .color-title { color: #334155; }
.color-box p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    color: #475569;
}

@media (max-width: 767px) {
    .story-card {
        padding: 26px 20px;
    }
    .story-card h3 {
        font-size: 19px;
    }
}

.story-card,
.story-card li,
.info-list li {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 네비게이션 밑줄 길이를 각 메뉴 글자 너비에 정확히 맞춤 */
@media (min-width: 768px) {
    .navbar-inverse .navbar-nav > li > a:hover::after,
    .navbar-inverse .navbar-nav > li.active > a::after {
        width: calc(100% - 36px) !important;
    }
}