/* ═══════════════════════════════════════════════
   COLOR TOKENS — Navy Blue
   기준색: 로고 배경 #003768
   ═══════════════════════════════════════════════ */
:root {
  --bl-logo-bg:       #003768;   /* 로고 배경색 (실측값) */

  --bl-primary-dark:  #003768;   /* 딥 네이비 = 로고 배경 */
  --bl-primary:       #12559A;   /* 메인 네이비 */
  --bl-primary-light: #2C7AC4;   /* 라이트 네이비 */
  --bl-accent:        #4A9BE0;   /* 포인트 블루 */

  --bl-ink:           #0B2B4D;   /* 진한 텍스트 */
  --bl-ink-soft:      #4B6076;   /* 보조 텍스트 */
  --bl-ink-mute:      #8296A8;   /* 흐린 텍스트 */

  --bl-line:          #D5E1EC;   /* 테두리 */
  --bl-line-soft:     #E6EDF4;
  --bl-surface:       #F3F8FC;   /* 호버 배경 */
  --bl-surface-alt:   #E7F0F9;
  --bl-badge:         #E74C3C;   /* 뱃지 (강조 유지) */
}

/* ── HEADER ── */
/* 가로 그라데이션 + 왼쪽 260px 단색 유지 → 로고 이음새 제거 */
.bl-header {
  display: block !important;
  width: 100% !important;
  background: linear-gradient(to right,
    var(--bl-logo-bg) 0%,
    var(--bl-logo-bg) 260px,
    var(--bl-primary) 58%,
    var(--bl-primary-light) 100%) !important;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 20px rgba(0,55,104,0.28);
  margin: 0;
  padding: 0;
  float: none !important;
}
.bl-header-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex !important; align-items: center; height: 56px; gap: 8px; }

@media (max-width: 991px) {
  .bl-header {
    background: linear-gradient(to right,
      var(--bl-logo-bg) 0%,
      var(--bl-logo-bg) 210px,
      var(--bl-primary) 62%,
      var(--bl-primary-light) 100%) !important;
  }
}
@media (max-width: 480px) {
  .bl-header {
    background: linear-gradient(to right,
      var(--bl-logo-bg) 0%,
      var(--bl-logo-bg) 165px,
      var(--bl-primary) 68%,
      var(--bl-primary-light) 100%) !important;
  }
}

/* ── LOGO (이미지) ── */
.bl-logo { display: flex !important; align-items: center; height: 56px; text-decoration: none !important; color: #fff !important; flex-shrink: 0; margin-right: 14px; line-height: 0; }
.bl-logo:hover, .bl-logo:focus { color: #fff !important; text-decoration: none !important; }
.bl-logo-img,
.bl-logo img { display: block; height: 34px; width: auto; max-width: 200px; object-fit: contain; transition: opacity 0.18s ease, transform 0.18s ease; }
.bl-logo:hover .bl-logo-img,
.bl-logo:hover img { opacity: 0.85; transform: translateY(-1px); }

/* 로고가 어두운 색 원본일 때만 아래 주석 해제 (흰색으로 반전) */
/* .bl-logo-img, .bl-logo img { filter: brightness(0) invert(1); } */

/* 텍스트 로고 (구버전 호환) */
.bl-logo-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.15); border-radius: 8px; display: flex !important; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.bl-logo-text { font-family: 'Noto Serif KR', serif !important; font-weight: 900; font-size: 19px; letter-spacing: -0.5px; color: #fff !important; line-height: 1.2; }
.bl-logo-sub { font-size: 10px; font-weight: 400; opacity: 0.6; letter-spacing: 1.5px; color: #fff !important; }

/* ── NAV (한 줄 내 인라인) ── */
.bl-nav { display: flex !important; align-items: center; justify-content: center; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0; padding: 0; background: none !important; float: none !important; }
.bl-nav::-webkit-scrollbar { display: none; }
.bl-nav-item { display: inline-flex; align-items: center; gap: 5px; padding: 0 18px; height: 56px; color: rgba(255,255,255,0.82) !important; text-decoration: none !important; font-size: 1.2rem; font-weight: 500; position: relative; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; float: none !important; }
.bl-nav-item:hover { color: #fff !important; background: rgba(255,255,255,0.12); text-decoration: none !important; }
.bl-nav-item.active { color: #fff !important; font-weight: 700; }
.bl-nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px 2px 0 0; }

/* ── SEARCH ── */
.bl-header-search { display: flex !important; align-items: center; background: rgba(255,255,255,0.12); border-radius: 24px; padding: 6px 16px; gap: 8px; border: 1px solid rgba(255,255,255,0.14); transition: border-color 0.2s, background 0.2s; }
.bl-header-search:focus-within { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.35); }
.bl-header-search input { background: none !important; border: none !important; outline: none !important; color: #fff !important; font-size: 14px; width: 200px; font-family: inherit; box-shadow: none !important; padding: 4px 0 !important; height: auto !important; }
.bl-header-search input::placeholder { color: rgba(255,255,255,0.55); }
.bl-header-search > i { color: rgba(255,255,255,0.65); font-size: 14px; }

/* ── HEADER ACTIONS ── */
.bl-header-actions { display: flex !important; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.bl-header-actions .bl-icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); display: flex !important; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: all 0.15s; text-decoration: none !important; }
.bl-header-actions .bl-icon-btn:hover { background: rgba(255,255,255,0.26); color: #fff; border-color: rgba(255,255,255,0.36); }
.bl-hamburger { display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all 0.15s; }
.bl-hamburger:hover { background: rgba(255,255,255,0.26); color: #fff; }

/* ── OFFCANVAS z-index ── */
.bl-offcanvas { z-index: 1070 !important; }
.offcanvas-backdrop { z-index: 1060 !important; }

/* ── USER DROPDOWN ── */
.bl-user-dropdown { position: relative; }
.bl-user-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--bl-line); border-radius: 8px; padding: 8px 0; min-width: 170px; box-shadow: 0 6px 22px rgba(12,30,58,0.16); z-index: 1060; }
.bl-user-dropdown::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 6px; z-index: 1059; }
.bl-nav-item.has-children::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 6px; z-index: 1059; }
.bl-user-dropdown:hover .bl-user-menu { display: block; }
.bl-user-menu__name { padding: 8px 16px 6px; font-size: 13px; font-weight: 700; color: var(--bl-ink); border-bottom: 1px solid var(--bl-line-soft); margin-bottom: 4px; }
.bl-user-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; color: var(--bl-ink-soft) !important; text-decoration: none !important; white-space: nowrap; }
.bl-user-menu a:hover { background: var(--bl-surface); color: var(--bl-primary) !important; }

/* ── NAV BADGE ── */
.bl-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bl-badge) !important; color: #fff !important; font-size: 10px; font-weight: 700; line-height: 1; margin-left: 4px; }

/* ── NAV DROPDOWN (2차 메뉴) ── */
.bl-nav-item.has-children { cursor: pointer; }
.bl-nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--bl-line); border-radius: 8px; padding: 6px 0; min-width: 160px; box-shadow: 0 6px 20px rgba(12,30,58,0.18); z-index: 1060; }
.bl-nav-item.has-children:hover .bl-nav-dropdown { display: block; }
.bl-nav-dropdown a { display: block; padding: 8px 16px; font-size: 13px; font-weight: 400; color: var(--bl-ink-soft) !important; text-decoration: none !important; white-space: nowrap; }
.bl-nav-dropdown a:hover { background: var(--bl-surface); color: var(--bl-primary) !important; }

/* ── OFFCANVAS (모바일 사이드메뉴) ── */
.bl-offcanvas { max-width: 300px; background: var(--bl-primary-dark, #0C1E3A); color: #D8E0EC; z-index: 1070 !important; }
.bl-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; }
.bl-offcanvas .offcanvas-title { color: #fff; font-weight: 700; }
.bl-off-item { display: flex !important; align-items: center; justify-content: space-between; padding: 12px 20px; color: #D8E0EC !important; text-decoration: none !important; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.15s; }
.bl-off-item:hover, .bl-off-item:focus { background: rgba(255,255,255,0.07); color: #fff !important; }
.bl-off-item i { font-size: 12px; opacity: 0.5; transition: transform 0.2s; }
.bl-off-item[aria-expanded="true"] i { transform: rotate(90deg); }
.bl-off-sub { color: #9FB0C7 !important; font-size: 14px; padding: 8px 20px 8px 32px; transition: color 0.15s; }
.bl-off-sub:hover { color: #fff !important; }

/* ── SUB-PAGE HERO ── */
.bl-sub-hero { background: linear-gradient(180deg, var(--bl-surface-alt) 0%, var(--bl-surface) 100%); padding: 28px 24px 24px; text-align: center; border-bottom: 1px solid var(--bl-line); }
.bl-sub-hero__inner { max-width: 1200px; margin: 0 auto; }
.bl-sub-hero__title { font-family: 'Noto Serif KR', serif; font-size: 26px; font-weight: 900; color: var(--bl-primary); margin: 8px 0 0; letter-spacing: -0.5px; }

/* ── BREADCRUMB ── */
.bl-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.bl-breadcrumb a { color: var(--bl-ink-mute); text-decoration: none; transition: color 0.15s; }
.bl-breadcrumb a:hover { color: var(--bl-primary); }
.bl-breadcrumb a:last-child { color: var(--bl-primary); font-weight: 600; }
.bl-breadcrumb__sep { color: #B3C0D2; font-size: 9px; }

/* ── LAYOUT CONTAINERS ── */
.bl-mainpage { width: 100%; }
.bl-subpage { max-width: 1400px; margin: 0 auto; padding: 32px 24px 60px; }
.bl-container { width: 100%; }

/* ── FOOTER ── */
.bl-footer { width: 100%; background: var(--bl-primary-dark, #0C1E3A); color: rgba(255,255,255,0.62); padding: 32px 24px 20px; font-size: 13px; }
.bl-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.bl-footer-logo { font-family: 'Noto Serif KR', serif; font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.92); margin-bottom: 6px; }
.bl-footer-logo img { display: block; height: 30px; width: auto; opacity: 0.9; }
.bl-footer-info p { line-height: 1.8; margin: 0; }
.bl-footer-contact p { line-height: 2; margin: 0; }
.bl-footer-contact p:first-child { font-weight: 600; color: rgba(255,255,255,0.88); margin-bottom: 4px; }
.bl-footer-contact a { color: rgba(255,255,255,0.78); text-decoration: none; }
.bl-footer-contact a:hover { color: #fff; }
.bl-footer-contact i { width: 18px; text-align: center; margin-right: 4px; }
.bl-footer-copy { max-width: 1200px; margin: 16px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; font-size: 12px; color: rgba(255,255,255,0.38); }
@media (max-width: 768px) {
  .bl-footer-inner { flex-direction: column; gap: 20px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bl-ad-grid, .bl-card-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 991px) {
  .bl-hamburger { display: flex !important; }
  .bl-header-actions .bl-admin-only { display: none !important; }
  .bl-logo-img, .bl-logo img { height: 32px; max-width: 170px; }
}
@media (max-width: 768px) {
  .bl-header-search { display: none !important; }
  .bl-header-inner { padding: 0 16px; }
  .bl-nav { display: none !important; }
  .bl-logo { margin-right: 0; }
  .bl-sub-hero { padding: 20px 16px 18px; }
  .bl-sub-hero__title { font-size: 20px; }
  .bl-breadcrumb { font-size: 12px; }
  .bl-subpage { padding: 20px 16px 40px; }
  .bl-hero h1 { font-size: 24px !important; }
  .bl-hero { padding: 32px 16px 28px; }
  .bl-main { padding: 24px 16px 40px; }
  .bl-ad-grid, .bl-card-grid { grid-template-columns: 1fr !important; }
  .bl-dual { grid-template-columns: 1fr !important; }
  .bl-category-bar { gap: 6px; }
  .bl-cat-btn { padding: 8px 14px; font-size: 13px; }
  .bl-toolbar { flex-direction: column; align-items: flex-start; }
  .bl-footer-inner { flex-direction: column !important; gap: 20px; }
  .bl-footer-links { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 480px) {
  .bl-header-inner { height: 48px; padding: 0 12px; }
  .bl-logo { height: 48px; }
  .bl-logo-img, .bl-logo img { height: 28px; max-width: 140px; }
  .bl-logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .bl-logo-text { font-size: 16px; }
  .bl-logo-sub { display: none; }
  .bl-hero h1 { font-size: 20px !important; }
  .bl-hero p { font-size: 13px; }
  .bl-ad-photo, .bl-biz-photo { height: 160px; }
}