/* ========================================
   DartBuilder Skin 1 - Corporate Style (Fixed)
   ======================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }

/* [수정] 기본 링크 색상을 흰색이 아닌 어두운 색으로 지정 */
a { 
    color: #000000; 
    text-decoration: none; 
    transition: color 0.2s, background-color 0.2s;
}
a:hover { color: #000000; }

/* ── Typography ── */
body {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.7;
    color: #1f2937;
    letter-spacing: -0.01em;
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}
/* ── Utility ── */
:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
::selection { background-color: #2563eb; color: #fff; }

.base-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .base-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .base-container { padding: 0 2rem; } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========================================
   HEADER (smceng style)
   ======================================== */
.db-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
    background: #fff;
}
.db-header.scrolled {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.db-header-inner {
    display: flex;
    align-items: center;
    height: 100px;
    max-width: 100%;
    padding: 0 0 0 clamp(1.5rem, 4vw, 3.5rem);
    padding-right: 80px;
    transition: height 0.4s;
}
.db-header.scrolled .db-header-inner {
    height: 76px;
}

/* 로고 */
.db-header-logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.db-header-logo a { display: flex; align-items: center; height: 100%; }
.db-header-logo img { height: 34px; width: auto; transition: filter 0.4s; }
.db-logo-text { font-size: 1.25rem; font-weight: 800; color: #0f172a; transition: color 0.4s; }

/* 우측 영역 */
.db-header-right {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

/* 로그인/회원가입 */
.db-header-auth { display: none; align-items: center; gap: 0.25rem; font-size: 0.8125rem; margin-right: 0.5rem; }
@media (min-width: 1024px) { .db-header-auth { display: flex; } }
.db-header-auth a {
    color: #64748b !important;
    padding: 0.375rem 0.625rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}
.db-header-auth a:hover { color: #1e40af !important; background: rgba(0,0,0,0.04); }

/* 검색 버튼 */
.db-header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    transition: color 0.3s;
    padding: 0;
}
.db-header-search:hover { color: #1e40af; }
.db-header-search svg { width: 20px; height: 20px; }

/* ========================================
   NAVIGATION (Desktop - smceng style)
   ======================================== */
.db-nav { display: none; flex: 1; padding-left: clamp(1.5rem, 4vw, 4.5rem); height: 100%; }
@media (min-width: 1024px) { .db-nav { display: flex; } }

.db-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; height: 100%; }
.db-menu > li { position: relative; height: 100%; }
.db-menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    color: #1f2937 !important;
    font-size: 1.0625rem;
    font-weight: 600;
    padding: 0 clamp(0.75rem, 1.8vw, 1.5rem);
    transition: color 0.3s;
    white-space: nowrap;
}
.db-menu > li > a:hover { color: #1e40af !important; }

/* 서브메뉴 드롭다운 */
.db-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 160px;
    background: #1e3a5f;
    padding: 12px 0;
    list-style: none;
    margin: 0;
    border-radius: 0;
    z-index: 1001;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transition: clip-path 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.db-submenu li { position: relative; }
.db-submenu a {
    display: block;
    padding: 7px 24px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75) !important;
    font-weight: 400;
    transition: color 0.2s, padding-left 0.2s;
}
.db-submenu a:hover {
    color: #fff !important;
    padding-left: 28px;
    background: none;
}

/* 서브메뉴 3차+ (clip-path 대신 opacity 전환) */
.db-submenu .db-submenu {
    top: -12px;
    left: 100%;
    transform: none;
    clip-path: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* hover 시 서브메뉴 표시 */
@media (min-width: 1024px) {
    /* 1차→2차: clip-path 와이프 애니메이션 (충분히 확장하여 3차 영역 포함) */
    .db-menu > .db-menu-has-sub:hover > .db-submenu {
        clip-path: inset(-20px -500% -20px -20px);
        opacity: 1;
    }
    /* 3차+: opacity 전환 */
    .db-submenu .db-menu-has-sub:hover > .db-submenu {
        opacity: 1;
        visibility: visible;
    }
}
/* 호버 브릿지 */
.db-menu > .db-menu-has-sub > .db-submenu::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    height: 20%;
}
.db-submenu .db-menu-has-sub > .db-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 100%;
}

/* ========================================
   HAMBURGER BUTTON (smceng trigger style)
   ======================================== */
.db-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 100%;
    background: #1e3a5f;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    flex-shrink: 0;
}
.db-hamburger:hover { background: #152d4a; }

/* 3선 햄버거 아이콘 */
.db-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.3s;
}
.db-hamburger span::before,
.db-hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s;
}
.db-hamburger span::before { top: -7px; }
.db-hamburger span::after { top: 7px; }

/* ========================================
   ASIDE PANEL (smceng style 사이드 메뉴)
   ======================================== */
.db-aside-bg {
    position: fixed;
    top: 0; left: -35%;
    width: 30.5%;
    height: 100%;
    background: linear-gradient(180deg, #0c1a2e 0%, #1e3a5f 100%);
    z-index: 98;
    opacity: 0;
    transition: left 0.5s, opacity 0.5s;
}
body.aside-open .db-aside-bg { left: 0; opacity: 1; }

.db-aside {
    position: fixed;
    top: 0; right: -70%;
    width: 70%;
    height: 100%;
    background: #1e3a5f;
    z-index: 99;
    opacity: 0;
    transition: right 0.5s, opacity 0.5s;
    overflow: hidden;
}
body.aside-open .db-aside { right: 0; opacity: 1; }
body.aside-open { overflow: hidden; }

.db-aside-box {
    width: 100%;
    height: 100%;
    padding: 40px 60px 0;
    box-sizing: border-box;
    position: relative;
}
.db-aside-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.db-aside-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.db-aside-close span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
}
.db-aside-close span:first-child { transform: rotate(-45deg); }
.db-aside-close span:last-child { transform: rotate(45deg); }

.db-aside-scroll {
    max-height: calc(100% - 120px);
    overflow-y: auto;
    margin-top: 40px;
    padding-left: 40px;
    padding-right: 40px;
}
.db-aside-scroll::-webkit-scrollbar { background: transparent; width: 4px; }
.db-aside-scroll::-webkit-scrollbar-thumb { border-radius: 2px; background: rgba(255,255,255,0.3); }

/* 사이드 메뉴 리스트 */
.db-aside-menu { list-style: none; margin: 0; padding: 0; }
.db-aside-menu > li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.db-aside-menu > li:last-child { border-bottom: none; }
.db-aside-menu > li > .aside-title {
    width: 200px;
    flex-shrink: 0;
}
.db-aside-menu > li > .aside-title > a {
    font-size: 1.375rem;
    color: #fff !important;
    font-weight: 600;
    line-height: 1.4;
}
.db-aside-sub {
    width: calc(100% - 200px);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 0;
    padding-left: 32px;
    list-style: none;
    margin: 0;
}
.db-aside-sub li { width: 100%; }
.db-aside-sub a {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65) !important;
    font-weight: 400;
    position: relative;
    transition: color 0.2s;
}
.db-aside-sub a:hover {
    color: #fff !important;
}
/* 3차+ 서브메뉴 (재귀) */
.db-aside-sub-deep {
    width: 100%;
    padding-left: 16px;
    margin-top: 8px;
    gap: 8px 0;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.db-aside-sub-deep a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5) !important;
}
.db-aside-sub-deep a:hover {
    color: #fff !important;
}

/* 모바일 auth (기본 숨김) */
.db-mobile-auth { display: none; }

/* ========================================
   ASIDE 반응형
   ======================================== */
@media (max-width: 1023px) {
    .db-aside-bg { display: none; }
    .db-aside {
        width: 100%;
        right: -100%;
    }
    .db-aside-box { padding: 24px 20px; }
    .db-aside-head { justify-content: space-between; }
    .db-aside-scroll { padding-left: 0; padding-right: 0; margin-top: 30px; max-height: calc(100% - 80px); }
    .db-aside-menu > li { flex-direction: column; padding: 20px 0; }
    .db-aside-menu > li > .aside-title { width: 100%; margin-bottom: 12px; }
    .db-aside-menu > li > .aside-title > a { font-size: 1.2rem; }
    .db-aside-sub { width: 100%; padding-left: 0; gap: 10px 0; }
    .db-aside-sub a { font-size: 0.95rem; }
    .db-aside-sub-deep { padding-left: 12px; margin-top: 6px; gap: 6px 0; }
    .db-aside-sub-deep a { font-size: 0.875rem; }

    /* 사이드 모바일 auth */
    .db-aside .db-aside-auth {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.875rem;
    }
    .db-aside .db-aside-auth a {
        color: rgba(255,255,255,0.7) !important;
        font-weight: 500;
    }
    .db-aside .db-aside-auth a:hover { color: #fff !important; }
}

/* ========================================
   HEADER 반응형
   ======================================== */
@media (max-width: 1279px) {
    .db-header-inner { padding-right: 70px; }
    .db-hamburger { width: 70px; }
    .db-menu > li > a { font-size: 1rem; padding: 0 clamp(0.5rem, 1.2vw, 1rem); }
}
@media (max-width: 1023px) {
    .db-header-inner { height: 70px; padding-right: 60px; }
    .db-header.scrolled .db-header-inner { height: 60px; }
    .db-header-logo img { height: 28px; }
    .db-hamburger { width: 60px; }
}
@media (max-width: 639px) {
    .db-header-inner { height: 60px; padding-left: 1rem; padding-right: 52px; }
    .db-header.scrolled .db-header-inner { height: 56px; }
    .db-header-logo img { height: 24px; }
    .db-hamburger { width: 52px; }
    .db-hamburger::before { width: 26px; height: 26px; }
    .db-hamburger::after { width: 6px; height: 6px; }
    .db-header-search svg { width: 18px; height: 18px; }
}

/* body에 헤더 높이만큼 패딩 */
body { padding-top: 100px; }
@media (max-width: 1023px) { body { padding-top: 70px; } }
@media (max-width: 639px) { body { padding-top: 60px; } }

/* ========================================
   FOOTER
   ======================================== */
.db-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
}
.db-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}
.db-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.db-footer-logo img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
.db-footer-logo span {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #cbd5e1;
}
.db-footer-info p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.8;
    color: #64748b;
}

/* ========================================
   사업분야 페이지 (Business Page)
   ======================================== */

/* ── Full-bleed sections ── */
.biz-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}

/* ── Animations ── */
@keyframes bizFadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bizFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bizPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ── Scroll Reveal ── */
.biz-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.biz-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.biz-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.biz-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.biz-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.biz-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.biz-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.biz-reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}
.biz-d1 { transition-delay: 0.1s; }
.biz-d2 { transition-delay: 0.2s; }
.biz-d3 { transition-delay: 0.3s; }
.biz-d4 { transition-delay: 0.4s; }
.biz-d5 { transition-delay: 0.5s; }

/* ── Hover Effects ── */
.biz-img-zoom { overflow: hidden; }
.biz-img-zoom img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.biz-img-zoom:hover img { transform: scale(1.08); }

.biz-icon-hover { transition: all 0.35s ease; }
.biz-icon-hover:hover { transform: scale(1.1) rotate(5deg); }

.biz-btn-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.biz-btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}
.biz-btn-shine:hover::after { left: 100%; }
.biz-btn-shine:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59,130,246,0.45);
}

.biz-gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Decorative ── */
.biz-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.biz-line-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}
.biz-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── Feature Cards ── */
.biz-feature-card {
    position: relative;
    border-radius: 20px;
    padding: 32px 28px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.biz-feature-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}
.biz-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.biz-feature-card:hover::before { opacity: 1; }
.biz-fc-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.biz-fc-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.biz-fc-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.biz-fc-rose::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.biz-fc-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.biz-fc-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.biz-fc-indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.biz-fc-emerald::before { background: linear-gradient(90deg, #059669, #34d399); }

/* ========================================
   메인 페이지 섹션 레이아웃 (smceng style)
   ======================================== */

/* 메인 슬라이더: 풀와이드, 여백 없음 */
.main-banner { margin: 0; }

/* 공통 섹션 */
.main-section {
    padding: 80px 0;
}
.main-section-gray {
    background: #f8fafc;
}
.main-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* 섹션 헤더 (smceng 스타일: 영문 서브타이틀 + 한글 타이틀) */
.main-section-head {
    text-align: center;
    margin-bottom: 48px;
}
.main-section-sub {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.main-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.main-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #1e40af;
    margin: 16px auto 0;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .main-section { padding: 48px 0; }
    .main-section-head { margin-bottom: 32px; }
    .main-section-title { font-size: 1.5rem; }
}

/* ========================================
   노출 블록 - 제품
   ========================================
   [크기 조절 가이드]
   - 썸네일 최대 폭 → .db-expose-product-item max-width 값 변경
   - 썸네일 비율     → .db-expose-thumb img aspect-ratio 값 변경 (4/3, 16/9, 1 등)
   - 한 줄 개수      → 자동 (max-width 기준으로 자동 배치)
   - 카드 간격       → .db-expose-grid gap 값 변경
   ======================================== */

/* 전체 영역: 중앙 정렬 (main-section-inner 안에서는 max-width 불필요) */
.db-expose-products {
    max-width: 1200px;
    margin: 0 auto;
}

/* 그리드: 자동 배치 (카드 max-width에 따라 줄당 개수 자동 결정) */
.db-expose-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

/* ★ 썸네일 크기 조절: 이 값을 바꾸면 카드 크기가 변합니다 ★ */
.db-expose-product-item {
    width: 280px;      /* 카드 폭 (280px × 3 = 840px → 1024px 안에 3개) */
    flex-shrink: 0;
}

/* 모바일: 한 줄에 1개, 폭 100% */
@media (max-width: 767px) {
    .db-expose-product-item {
        width: 100%;
        max-width: 400px;  /* 모바일에서 너무 크지 않게 */
    }
}

/* 썸네일 이미지 */
.db-expose-thumb {
    display: block;
    overflow: hidden;
    border-radius: 12px;       /* 모서리 둥글기 */
    background: #f5f5f5;       /* 이미지 로딩 전 배경색 */
}
.db-expose-thumb img {
    width: 100%;
    aspect-ratio: 4/3;         /* 이미지 비율 (4/3, 16/9, 1 등) */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.db-expose-product-item:hover .db-expose-thumb img {
    transform: scale(1.03);    /* 호버 시 살짝 확대 */
}

/* 제목, 설명 */
.db-expose-info { padding: 0.6rem 0.15rem 0; }
.db-expose-title {
    font-size: 0.95rem;        /* 제목 글씨 크기 */
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: block;
}
.db-expose-title:hover { color: #2563eb; }
.db-expose-desc {
    font-size: 0.8rem;         /* 요약 설명 글씨 크기 */
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.4;
}

/* ========================================
   노출 블록 - 게시판 리스트
   ======================================== */
.db-expose-list { list-style: none; padding: 0; margin: 0; }
.db-expose-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.db-expose-list-item:first-child { border-top: 2px solid #1e293b; }
.db-expose-list-title {
    color: #374151;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9375rem;
    font-weight: 500;
}
.db-expose-list-title:hover { color: #1e40af; }
.db-expose-date { font-size: 0.8125rem; color: #94a3b8; flex-shrink: 0; margin-left: 1rem; }
.db-expose-board .db-expose-info .db-expose-date { display: block; margin-top: 0.15rem; }

/* 게시판 썸네일 모드 */
.db-expose-board .db-expose-grid {
    gap: 1.5rem;
}
.db-expose-board-item {
    width: 280px;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .db-expose-board-item {
        width: 100%;
        max-width: 400px;
    }
}

/* 게시판 썸네일 - 이미지 없을 때 */
.db-expose-no-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.db-expose-no-img svg { width: 2rem; height: 2rem; color: #cbd5e1; }

/* 더보기 링크 */
.db-expose-more { margin-top: 1.5rem; text-align: center; }
.db-expose-more a {
    display: inline-block;
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    padding: 0.625rem 2rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s;
}
.db-expose-more a:hover { color: #1e40af; border-color: #1e40af; background: #f0f4ff; }
.db-expose-empty { color: #94a3b8; font-size: 0.875rem; }

/* ========================================
   오시는 길 페이지 (Directions)
   ======================================== */

/* ── Hero ── */
.dir-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.dir-hero-inner { max-width: 800px; margin: 0 auto; }
.dir-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #60a5fa;
    margin: 0 0 0.5rem;
}
.dir-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .dir-hero { padding: 4.5rem 2rem; }
    .dir-title { font-size: 2.5rem; }
}

/* ── Container ── */
.dir-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}
@media (min-width: 768px) {
    .dir-container { padding: 2.5rem 2rem 4rem; }
}

/* ── Map ── */
.dir-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 2.5rem;
}
.dir-map {
    width: 100%;
    height: 350px;
    background: #f1f5f9;
}
@media (min-width: 768px) { .dir-map { height: 460px; } }

/* ── Info Grid ── */
.dir-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
    .dir-info-grid { grid-template-columns: repeat(3, 1fr); }
}
.dir-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dir-info-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}
.dir-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
}
.dir-info-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}
.dir-icon-pin { background: #eff6ff; color: #2563eb; }
.dir-icon-phone { background: #f0fdf4; color: #16a34a; }
.dir-icon-clock { background: #fefce8; color: #ca8a04; }

.dir-info-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.375rem;
}
.dir-info-card p {
    font-size: 0.9375rem;
    color: #1f2937;
    line-height: 1.65;
    margin: 0;
}

/* ── Subway Section ── */
.dir-subway { margin-bottom: 1.5rem; }
.dir-subway-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dir-subway-title svg {
    width: 22px;
    height: 22px;
    color: #6b7280;
    flex-shrink: 0;
}
.dir-subway-grid {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.dir-subway-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}
.dir-subway-card:hover {
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dir-line-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 800;
    flex-shrink: 0;
}
.dir-line-1 { background: #263C96; }
.dir-line-2 { background: #3CB44A; }
.dir-line-7 { background: #697215; }

.dir-subway-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.125rem;
    line-height: 1.4;
}
.dir-subway-info p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}
.dir-subway-info .dir-route-detail {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}
.dir-subway-info .dir-route-detail svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========================================
   연혁 페이지 (History Timeline - 라온스타일)
   ======================================== */

/* ── Container ── */
.hist-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}
@media (min-width: 768px) {
    .hist-container { padding: 2.5rem 2rem 4rem; }
}

/* ── Year Row ── */
.hist-row {
    display: flex;
    gap: 0 2.5rem;
}

/* Year (left column) */
.hist-year {
    width: 22%;
    box-sizing: border-box;
    padding-top: 1.25rem;
    border-top: 2px solid #111827;
    flex-shrink: 0;
}
.hist-year h4 {
    font-size: 2.5rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.03em;
}

/* Detail (right column) */
.hist-detail {
    width: calc(100% - 22% - 2.5rem);
    box-sizing: border-box;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Event list */
.hist-events {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hist-events li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    color: #374151;
}
.hist-events li::before {
    content: '';
    width: 5px;
    min-width: 5px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #9ca3af;
    margin-top: 0.6rem;
    flex-shrink: 0;
}

/* ── Tablet ── */
@media (max-width: 1023px) {
    .hist-row { gap: 0 1.875rem; }
    .hist-year h4 { font-size: 2rem; }
    .hist-detail {
        width: calc(100% - 22% - 1.875rem);
        padding-top: 1.75rem;
    }
    .hist-events li { font-size: 0.9375rem; }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .hist-row {
        flex-direction: column;
    }
    .hist-year {
        width: 100%;
        padding-top: 0;
        padding-bottom: 0.5rem;
        border-top: none;
    }
    .hist-year h4 { font-size: 1.625rem; }
    .hist-detail {
        width: 100%;
        border-top-color: #111827;
        border-bottom: 1px solid #e5e7eb;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .hist-events li { font-size: 0.875rem; gap: 0.625rem; }
    .hist-events li::before { width: 4px; min-width: 4px; margin-top: 0.55rem; }
}

/* ========================================
   인사말 페이지 (Greeting - 라온스타일)
   ======================================== */

/* ── Container ── */
.greet-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}
@media (min-width: 768px) {
    .greet-container { padding: 2.5rem 2rem 4rem; }
}

/* ── Two-column Layout ── */
.greet-wrap {
    display: flex;
    gap: 3.75rem;
    padding-top: 1.25rem;
}

/* ── Image Column ── */
.greet-img { width: 41.5%; flex-shrink: 0; }
.greet-thumb {
    height: 100%;
    min-height: 520px;
    background: linear-gradient(160deg, #0c1222 0%, #162544 45%, #1e40af 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Grid pattern */
.greet-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}
/* Glow orb */
.greet-thumb::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
    top: 35%;
    left: 55%;
    transform: translate(-50%, -50%);
}
.greet-nn { position: relative; z-index: 1; width: 70%; max-width: 280px; }
@keyframes greetPulse {
    0%, 100% { opacity: 0.5; r: 4; }
    50% { opacity: 1; r: 6; }
}
.greet-nn .nd { animation: greetPulse 3s ease-in-out infinite; }
.greet-nn .nd:nth-child(2) { animation-delay: 0.5s; }
.greet-nn .nd:nth-child(3) { animation-delay: 1s; }
.greet-nn .nd:nth-child(4) { animation-delay: 1.5s; }
.greet-nn .nd:nth-child(5) { animation-delay: 0.3s; }
.greet-nn .nd:nth-child(6) { animation-delay: 0.8s; }
.greet-nn .nd:nth-child(7) { animation-delay: 1.3s; }

/* ── Text Column ── */
.greet-text {
    width: calc(100% - 41.5%);
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    padding-top: 1.25rem;
}
.greet-title h3 {
    font-size: 1.75rem;
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.55;
    margin: 0;
}
.greet-title h3 strong {
    color: #2563eb;
    font-weight: 700;
}
.greet-body {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    color: #374151;
    line-height: 1.7;
}
.greet-body p {
    font-size: 0.9375rem;
    color: inherit;
    line-height: inherit;
    margin: 0;
}
.greet-body p strong {
    color: #2563eb;
    font-weight: 600;
}
.greet-ceo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    color: #111827;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: 0.625rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}
.greet-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .greet-wrap {
        flex-direction: column;
        gap: 2.5rem;
    }
    .greet-img { width: 100%; }
    .greet-thumb {
        min-height: 360px;
        max-height: 480px;
    }
    .greet-text {
        width: 100%;
        padding-top: 0;
    }
}
@media (max-width: 1023px) {
    .greet-title h3 { font-size: 1.5rem; }
}
@media (max-width: 479px) {
    .greet-title h3 { font-size: 1.3rem; }
    .greet-thumb { min-height: 300px; }
    .greet-name { font-size: 1.25rem; }
}

/* ========================================
   빠른 상담문의 (Quick Inquiry)
   ======================================== */

/* ── 공통 ── */
.db-qi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}
.db-qi-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--qi-text, #fff);
}
.db-qi-close {
    background: none;
    border: none;
    color: var(--qi-text, #fff);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}
.db-qi-close:hover { opacity: 1; }

.db-qi-input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.625rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.15);
    color: var(--qi-text, #fff);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color 0.2s;
}
.db-qi-input::placeholder { color: rgba(255,255,255,0.6); }
.db-qi-input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.25); }
/* select 옵션: 네이티브 드롭다운은 부모 배경을 상속받지 못하므로 명시적으로 지정 */
.db-qi-input option { background-color: #ffffff; color: #1e293b; }

.db-qi-privacy {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    color: var(--qi-text, #fff);
    opacity: 0.85;
    cursor: pointer;
    flex-shrink: 0;
}
.db-qi-privacy input[type="checkbox"] { width: 12px; height: 12px; flex-shrink: 0; }
.db-qi-privacy-link {
    color: var(--qi-text, #fff);
    text-decoration: underline;
    opacity: 0.8;
    margin-left: 0.25rem;
}
.db-qi-privacy-link:hover { opacity: 1; }

.db-qi-btn {
    padding: 0.375rem 1.125rem;
    background: rgba(255,255,255,0.95);
    color: var(--qi-bg, #1e40af);
    border: none;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.db-qi-btn:hover { background: #fff; }

.db-qi-msg {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem;
    color: var(--qi-text, #fff);
}

.db-qi-form { display: flex; flex-direction: column; gap: 0.375rem; padding: 0 0.75rem 0.75rem; }

/* ── 하단 고정 바 ── */
.db-qi-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9980;
}
.db-qi-bottom-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background: var(--qi-bg, #1e40af);
    color: var(--qi-text, #fff);
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
}
.db-qi-bottom-tab:hover { filter: brightness(1.1); }

.db-qi-bottom-panel {
    background: var(--qi-bg, #1e40af);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.db-qi-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.db-qi-form-row {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.db-qi-form-row .db-qi-input {
    width: auto;
    flex: 1 1 150px;
    min-width: 120px;
}

/* 캡차 영역 */
.db-qi-captcha {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.db-qi-captcha img {
    height: 30px !important;
    border-radius: 4px;
}
.db-qi-captcha input[name="captcha_answer"] {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 80px;
    font-size: 12px;
    color: #111;
    background: #fff;
}
@media (max-width: 768px) {
    .db-qi-captcha { width: 100%; justify-content: flex-start; }
}

/* ── 우측 패널 ── */
.db-qi-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9980;
    display: flex;
    align-items: flex-start;
}
.db-qi-right-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 0.75rem 0.4rem;
    background: var(--qi-bg, #1e40af);
    color: var(--qi-text, #fff);
    border: none;
    border-radius: 0.375rem 0 0 0.375rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.db-qi-right-tab:hover { filter: brightness(1.1); }

.db-qi-right-panel {
    display: none;
    width: 250px;
    background: var(--qi-bg, #1e40af);
    border-radius: 0.375rem 0 0 0.375rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .db-qi-form-row {
        flex-direction: column !important;
    }
    .db-qi-form-row .db-qi-input {
        width: 100%;
        flex: none;
    }
    .db-qi-right {
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        left: 0;
        flex-direction: column;
    }
    .db-qi-right-tab {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        border-radius: 0;
        width: 100%;
        text-align: center;
    }
    .db-qi-right-panel {
        width: 100%;
        border-radius: 0;
    }
}

/* ========================================
   사용자 게시판 — 공지 배지 / 액션 버튼 통일
   ======================================== */

/* 공지 배지 — 모든 board_type 공용 (normal/gallery/video/notice 등)
   파란 테두리 + 흰 배경 + 파란 글씨, 직각 모서리 */
.bl-notice-badge,
.bl-gallery-notice,
.bl-video-notice {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #2563eb;
    background: #ffffff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0;
    line-height: 1.4;
}

/* 사용자 게시판 액션 버튼 — 글쓰기 / 수정 / 삭제 / 답변 / 목록 / 검색 / 등록 / 취소 등 통일
   배경 #333, hover #000, 흰 글씨, 직각 모서리 */
.bl-btn,
.bl-btn--write,
.bl-btn--search,
.bf-submit,
.bf-cancel,
.bf-btn,
.bf-btn--primary,
.bf-btn--secondary,
.bf-btn--ghost {
    display: inline-block;
    padding: 8px 18px;
    background: #333333 !important;
    color: #ffffff !important;
    border: 0;
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    line-height: 1.4;
}
.bl-btn:hover,
.bl-btn--write:hover,
.bl-btn--search:hover,
.bf-submit:hover,
.bf-cancel:hover,
.bf-btn:hover,
.bf-btn--primary:hover,
.bf-btn--secondary:hover,
.bf-btn--ghost:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* =========================================================
   사용자 게시판 댓글 폼 — bv-comment-* (디자인 자유도 위해 분리)
   변수로 감싸서 사이트별 커스텀 가능
   ========================================================= */
:root {
    --bvc-border: #e5e7eb;
    --bvc-border-focus: #2563eb;
    --bvc-bg: #ffffff;
    --bvc-bg-soft: #f9fafb;
    --bvc-text: #111827;
    --bvc-text-soft: #6b7280;
    --bvc-text-link: #2563eb;
    --bvc-radius: 6px;
    --bvc-gap: 10px;
    --bvc-pad: 14px;
}

.bv-comment-form {
    background: var(--bvc-bg);
    border: 1px solid var(--bvc-border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: var(--bvc-gap);
}

.bv-comment-form--reply {
    margin-top: 12px;
    padding: 12px;
    background: var(--bvc-bg-soft);
}

.bv-comment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bvc-gap);
}
@media (max-width: 480px) {
    .bv-comment-row { grid-template-columns: 1fr; }
}

.bv-comment-input,
.bv-comment-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bvc-border);
    border-radius: var(--bvc-radius);
    font-size: 14px;
    color: var(--bvc-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.bv-comment-input:focus,
.bv-comment-textarea:focus {
    outline: none;
    border-color: var(--bvc-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bv-comment-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.bv-comment-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--bvc-gap);
    padding-top: 4px;
}

.bv-comment-captcha {
    flex: 0 0 auto;
}

.bv-comment-agree {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bvc-text-soft);
    cursor: pointer;
    user-select: none;
}

.bv-comment-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bvc-border-focus);
    cursor: pointer;
}

.bv-comment-agree-link {
    color: var(--bvc-text-link);
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    margin-right: 2px;
}
.bv-comment-agree-link:hover {
    color: #1d4ed8;
}

.bv-comment-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.bv-comment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    line-height: 1.4;
}

.bv-comment-btn--submit {
    background: #333333;
    color: #ffffff;
}
.bv-comment-btn--submit:hover {
    background: #000000;
}

.bv-comment-btn--cancel {
    background: #ffffff;
    color: var(--bvc-text-soft);
    border: 1px solid var(--bvc-border);
}
.bv-comment-btn--cancel:hover {
    background: var(--bvc-bg-soft);
    color: var(--bvc-text);
}

.bv-comment-disabled {
    text-align: center;
    padding: 24px 16px;
    color: var(--bvc-text-soft);
    font-size: 13px;
    background: var(--bvc-bg-soft);
    border-radius: 8px;
    margin-top: 16px;
}

.bv-comment-reply-wrap {
    margin-top: 8px;
}

/* =========================================================
   사용자 지점안내 페이지 — br-* (디자인 자유도 위해 분리)
   ========================================================= */
:root {
    --br-bg: #ffffff;
    --br-bg-soft: #f9fafb;
    --br-border: #e5e7eb;
    --br-border-hover: #93c5fd;
    --br-text: #1f2937;
    --br-text-soft: #6b7280;
    --br-text-faint: #9ca3af;
    --br-accent: #2563eb;
    --br-accent-hover: #1d4ed8;
    --br-accent-soft-bg: #dbeafe;
    --br-accent-soft-text: #1d4ed8;
    --br-radius: 8px;
    --br-radius-lg: 12px;
    --br-radius-pill: 9999px;
    --br-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --br-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.br-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.br-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--br-text);
    margin-bottom: 24px;
}

/* ── 그룹 탭 ── */
.br-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.br-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 0;
    border-radius: var(--br-radius-pill);
    background: #f3f4f6;
    color: var(--br-text-soft);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.br-tab:hover { background: #e5e7eb; }
.br-tab.is-active {
    background: var(--br-accent);
    color: #ffffff;
}

/* ── 메인 레이아웃 (검색+리스트 ↔ 지도) ── */
.br-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 600px;
}
@media (min-width: 1024px) {
    .br-main { flex-direction: row; }
}

.br-side {
    width: 100%;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1024px) {
    .br-side { width: 33.333%; }
}

/* ── 검색 박스 ── */
.br-search {
    background: var(--br-bg);
    border: 1px solid var(--br-border);
    border-radius: var(--br-radius-lg);
    box-shadow: var(--br-shadow);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.br-search-row {
    display: grid;
    gap: 8px;
}
.br-search-row--region { grid-template-columns: 1fr 1fr; }
.br-search-row--keyword { display: flex; gap: 8px; }

.br-input { flex: 1; }
.br-input input,
.br-select select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--br-text);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--br-radius);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.br-input input:focus,
.br-select select:focus {
    border-color: var(--br-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.br-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--br-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.br-btn--search {
    background: var(--br-accent);
    color: #ffffff;
}
.br-btn--search:hover {
    background: var(--br-accent-hover);
}
.br-btn--reset {
    background: #f1f5f9;
    color: #475569;
    margin-left: 4px;
}
.br-btn--reset:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── 지점 리스트 ── */
.br-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
}

.br-card {
    background: var(--br-bg);
    border: 1px solid var(--br-border);
    border-radius: var(--br-radius);
    box-shadow: var(--br-shadow);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.br-card:hover {
    border-color: var(--br-border-hover);
    box-shadow: var(--br-shadow-hover);
}
.br-card.is-active {
    border-color: var(--br-accent);
    background: rgba(37, 99, 235, 0.04);
    box-shadow: var(--br-shadow-hover);
}

.br-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--br-text);
    margin: 0;
}

.br-card-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--br-accent-soft-bg);
    color: var(--br-accent-soft-text);
    border-radius: var(--br-radius);
    font-size: 11px;
    font-weight: 400;
    vertical-align: middle;
}

.br-card-address {
    font-size: 12px;
    color: var(--br-text-soft);
    margin: 4px 0 0;
}
.br-card-phone {
    font-size: 12px;
    color: var(--br-text-faint);
    margin: 2px 0 0;
}
.br-card-desc {
    font-size: 12px;
    color: var(--br-text);
    line-height: 1.6;
    margin: 8px 0 0;
    white-space: pre-line;
}

.br-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--br-text-faint);
    font-size: 14px;
}

/* ── 지도 ── */
.br-map-wrap {
    flex: 1;
    border-radius: var(--br-radius-lg);
    overflow: hidden;
    border: 1px solid var(--br-border);
    box-shadow: var(--br-shadow);
    min-height: 600px;
    background: var(--br-bg-soft);
}
.br-map { width: 100%; height: 100%; min-height: 600px; }

/* =========================================================
   제품 목록 보기 모드 (그리드/리스트) — pf-view-* + pf-mode-list
   기본은 그리드. html.pf-mode-list 클래스 시 리스트 변환
   ========================================================= */
:root {
    --pf-thumb-row: 120px;     /* 리스트 모드 썸네일 크기 */
    --pf-toggle-active: #1e293b;
    --pf-toggle-hover: #f9fafb;
    --pf-border: #e5e7eb;
}

/* 토글 바 */
.pf-view-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.pf-view-count {
    font-size: 13px;
    color: #6b7280;
}
.pf-view-count strong {
    color: #1e293b;
    font-weight: 600;
}

.pf-view-toggle {
    display: inline-flex;
    border: 1px solid var(--pf-border);
    overflow: hidden;
}
.pf-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    color: #6b7280;
    border: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.pf-view-btn + .pf-view-btn { border-left: 1px solid var(--pf-border); }
.pf-view-btn:hover { background: var(--pf-toggle-hover); }
.pf-view-btn.is-active {
    background: var(--pf-toggle-active);
    color: #ffffff;
}
.pf-view-ico { width: 14px; height: 14px; }

/* ─── 리스트 모드 ─── */
html.pf-mode-list .pf-list-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    html.pf-mode-list .pf-list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

html.pf-mode-list .pf-card {
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 14px;
    align-items: stretch;
}

html.pf-mode-list .pf-card-thumb {
    flex: 0 0 var(--pf-thumb-row);
    width: var(--pf-thumb-row);
    height: var(--pf-thumb-row);
    padding-bottom: 0 !important;
    border-radius: 0;
}

html.pf-mode-list .pf-card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

html.pf-mode-list .pf-card-title {
    font-size: 16px;
    line-height: 1.4;
}

html.pf-mode-list .pf-card-desc {
    font-size: 13px;
    margin-top: 6px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

html.pf-mode-list .pf-card-group {
    margin-top: auto;
    padding-top: 6px;
    font-size: 11.5px;
    color: #6b7280;
}

/* ===== 공용 FAQ 아코디언 (front/_faq.php) — 상품·페이지·SEO·게시판 어디서든 동일 디자인 ===== */
/* 디자인은 여기서만 통제. 뷰(_faq.php)에는 스타일 하드코딩 없음. */
.pf-faq-wrap { padding-bottom: 3rem; }
.pf-faq { margin-top: 2.5rem; }
.pf-faq-title { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-bottom: 1rem; }
.pf-faq-title-sub { color: #94a3b8; font-size: .875rem; font-weight: 400; }
.pf-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.pf-faq-item { border: 1px solid #e2e8f0; overflow: hidden; background: #fff; }
.pf-faq-toggle { width: 100%; text-align: left; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: transparent; border: 0; cursor: pointer; transition: background-color .15s; }
.pf-faq-toggle:hover { background: rgba(248, 250, 252, .6); }
.pf-faq-q { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.pf-faq-badge { flex-shrink: 0; width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; }
.pf-faq-badge--q { background: #1b1b1b; }
.pf-faq-badge--a { background: #707070; }
.pf-faq-question { font-weight: 500; font-size: .875rem; color: #0f172a; }
.pf-faq-arrow { width: 1.25rem; height: 1.25rem; color: #94a3b8; flex-shrink: 0; transition: transform .2s; }
.pf-faq-item.is-open .pf-faq-arrow { transform: rotate(180deg); }
.pf-faq-answer { display: none; }
.pf-faq-a { display: flex; gap: .75rem; border-top: 1px solid #e2e8f0; padding: 1rem 1.25rem; background: rgba(248, 250, 252, .6); }
.pf-faq-answer-text { flex: 1; font-size: .875rem; color: #0f172a; line-height: 1.625; white-space: pre-line; }
.pf-faq-answer-text.db-user-content { white-space: normal; }   /* HTML 답변(게시글)은 자체 포맷 사용 */
/* 질문 앞 prefix 뱃지 — DESIGN.md 무채색 규칙(파랑 금지)에 맞춰 슬레이트 */
.pf-faq-prefix { font-size: .75rem; background: #e2e8f0; color: #334155; padding: .125rem .375rem; border-radius: .25rem; margin-right: .25rem; }

/* ===== 구성원(Staff) 소개 — 리스트/상세 (front/staff/*, {{STAFF}} 숏코드) =====
   DESIGN.md 프론트 언어: 슬레이트 무채색 · 각짐(rounded 금지) · 파랑 금지.
   요소분리: 제목(.pf-staff-label) / 값(.pf-staff-value)을 항목별 독립 클래스로 통제.
   디자인은 여기서만. 뷰(front/staff/*)에는 스타일 하드코딩 없음. */
.pf-staff-directory { display: flex; flex-direction: column; gap: 2.75rem; }
.pf-staff-section-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; padding-bottom: .6rem; margin-bottom: 1.25rem; border-bottom: 2px solid #0f172a; }
.pf-staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pf-staff-card { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid #e2e8f0; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pf-staff-card:hover { border-color: #94a3b8; box-shadow: 0 2px 12px rgba(15,23,42,.06); }
.pf-staff-card-photo { flex-shrink: 0; width: 96px; height: 120px; background: #f1f5f9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pf-staff-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-staff-noimg { color: #cbd5e1; }
.pf-staff-noimg svg { width: 40px; height: 40px; }
.pf-staff-card-body { min-width: 0; flex: 1; }
.pf-staff-position { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: #94a3b8; text-transform: uppercase; margin-bottom: .15rem; }
.pf-staff-name { display: block; font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: .75rem; }
.pf-staff-rows { display: flex; flex-direction: column; gap: .35rem; }
.pf-staff-row { display: flex; gap: .5rem; font-size: .82rem; line-height: 1.5; }
.pf-staff-label { flex-shrink: 0; width: 4.5rem; color: #94a3b8; font-weight: 500; }
.pf-staff-value { color: #334155; min-width: 0; word-break: break-word; }
.pf-staff-row--bio .pf-staff-value { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 상세 */
.pf-staff-back { display: inline-block; margin-bottom: 1.5rem; font-size: .85rem; color: #64748b; text-decoration: none; }
.pf-staff-back:hover { color: #0f172a; }
.pf-staff-detail-head { display: flex; gap: 1.75rem; padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid #e2e8f0; }
.pf-staff-detail-photo { flex-shrink: 0; width: 160px; height: 200px; background: #f1f5f9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pf-staff-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-staff-detail-photo .pf-staff-noimg svg { width: 56px; height: 56px; }
.pf-staff-detail-intro { min-width: 0; flex: 1; padding-top: .5rem; }
.pf-staff-detail-intro .pf-staff-name { font-size: 1.5rem; margin-bottom: 1rem; }
.pf-staff-detail-intro .pf-staff-label { width: 5rem; }
.pf-staff-detail-intro .pf-staff-row { font-size: .9rem; }
.pf-staff-detail-body { display: flex; flex-direction: column; gap: 1.75rem; }
.pf-staff-block .pf-staff-label { display: block; width: auto; font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: .6rem; padding-left: .6rem; border-left: 3px solid #0f172a; }
.pf-staff-block .pf-staff-value { display: block; font-size: .9rem; line-height: 1.7; color: #334155; white-space: pre-line; }
.pf-staff-reslist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; white-space: normal; }
.pf-staff-reslist li { font-size: .9rem; }
.pf-staff-reslist a { color: #334155; text-decoration: underline; text-underline-offset: 2px; }
.pf-staff-reslist a:hover { color: #0f172a; }

@media (max-width: 767px) {
    .pf-staff-grid { grid-template-columns: 1fr; }
    .pf-staff-detail-head { flex-direction: column; gap: 1rem; }
    .pf-staff-detail-photo { width: 120px; height: 150px; }
}
