/* [CORE DESIGN] */
html,body{font-family:'Pretendard', sans-serif; font-size:16px;line-height:1.6;color:#222;background:#fff; overflow-x:hidden;}

/* 헤더: 항상 맨 위에 위치하되, 서브메뉴가 겹치지 않도록 z-index 조절 [cite: 2026-01-11] */
header {
  position:fixed; top:0; left:0; width:100%;
  z-index:2000; /* 검색바(1000)보다 높게 설정 */
  background: rgba(10, 26, 47, 0.4); /* 초기 반투명 */
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}
header.scrolled { background: rgba(10, 26, 47, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.logo-wrap {
  display:block; width:360px; height:90px;
  background:url('/images/logo.png') no-repeat center;
  background-size:contain;
}

/* 메인 전용 컨테이너: 비주얼이 헤더 뒤로 넘어가야 하므로 pt-0 고정 [cite: 2026-01-11] */
#main_index_wrap { width: 100%; padding-top: 0; position: relative; }

.nav-item { font-size:20px; font-weight:700; cursor:pointer; color: #fff; white-space:nowrap; }

/* 서브메뉴: 간격(top)과 초기 위치(translateY) 조정하여 답답함 해소 [cite: 2026-01-26] */
.submenu {
  position:absolute; left:50%; 
  top: calc(100% + 15px); /* 메뉴 하단에서 15px 띄움 */
  transform:translateX(-50%) translateY(10px);
  background:rgba(10, 26, 47, 0.98);
  border-top:2px solid #4da3ff;
  min-width:220px;
  opacity:0; visibility:hidden;
  transition: .25s ease;
  z-index:2100;
}
.group:hover .submenu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.submenu a { display:block; padding:12px 20px; color:#d0d7e0; text-align:center; border-bottom:1px solid rgba(255,255,255,0.05); }

/* 유틸리티 바 디자인 유지 */
.top-util-row { width:100%; height:42px; background:rgba(0,0,0,0.5); border-bottom:1px solid rgba(255,255,255,0.05); }
.top-util-inner { max-width:1280px; margin:0 auto; padding:0 24px; height:100%; display:flex; align-items:center; justify-content:flex-end; font-size:13px; gap: 15px; }
.top-util-inner a { color:#eee; text-decoration:none; transition: color 0.2s; }
.top-util-inner a:hover { color:#4da3ff; }
.user-info { color: #94a3b8; }
.user-name { color: #4da3ff; font-weight: 700; }

@media (max-width: 1024px) {
  .logo-wrap { width: 220px; height: 60px; }
}


    /* Notice Tab Active Style */
    .tab-btn.active-forced { background-color: #3b82f6 !important; color: white !important; border-color: #3b82f6 !important; }
    .line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .qv-icon-box i { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .group:hover .qv-icon-box i { transform: scale(1.2) rotate(360deg); }

    /* Banner & Layout */
    .banner-container { padding: 40px 0 50px 0; border-top: 1px solid #e2e8f0; }
    .banner-wrapper { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 50px; }
    .banner-slide { display: flex; align-items: center; justify-content: center; height: 80px; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s; }
    .banner-slide:hover { filter: grayscale(0%); opacity: 1; }
    .banner-slide img { max-width: 100%; max-height: 50px; object-fit: contain; }
    .banner-nav { color: #ccc; transition: all 0.3s; cursor: pointer; }
    .banner-nav:hover { color: #2563eb; }

    .section-title-dot { width: 6px; height: 6px; background-color: #3b82f6; border-radius: 50%; display: inline-block; margin-bottom: 8px; }

    /* Modals Premium Style */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
    .modal-box { background: #fff; width: 90%; max-width: 600px; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); margin: 5vh auto; max-height: 90vh; display: flex; flex-direction: column; }
    .modal-header { background: #1e40af; padding: 20px 30px; color: #fff; }
    .modal-body { padding: 40px 30px; line-height: 1.8; color: #334155; font-size: 1.05rem; overflow-y: auto; word-break: keep-all; }
    .modal-footer { padding: 20px; border-top: 1px solid #f1f5f9; text-align: center; }
    .modal-btn { background: #2563eb; color: #fff; padding: 12px 40px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; transition: background 0.2s; }
    .modal-btn:hover { background: #1e40af; }