/* =========================
   HEADER FIXED (핵심)
========================= */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* =========================
   TOPBAR
========================= */
.topbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #0d6efd;
}

.top-links {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: #555;
}

/* =========================
   MENU
========================= */
.menu-wrap {
    position: relative;
    z-index: 1000;
}

.menu-bar {
    background: #0d6efd;
}

.main-menu {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 0;
    padding: 0;
}

.main-menu > li {
    list-style: none;
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 16px 0;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.main-menu > li > a:hover {
    background: rgba(255,255,255,0.12);
}

.main-menu li a:hover .menu-unread {
    transform: scale(1.2);
}

/* =========================
   MEGA MENU
========================= */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.menu-wrap:hover .mega-menu {
    display: block;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 24px 0;
}

.mega-col {
    padding: 0 16px;
}

.mega-col h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #0d6efd;
    border-bottom: 2px solid #eef4ff;
    padding-bottom: 8px;
    text-align: center;
}

.mega-col ul {
    margin: 0;
    padding: 0;
}

.mega-col li {
    margin-bottom: 8px;
    text-align: center;
}

.mega-col li a {
    color: #333;
    font-size: 14px;
}

.mega-col li a:hover {
    color: #0d6efd;
    font-weight: bold;
}

/* =========================
   BADGE
========================= */
.badge-unread {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: #e74c3c;
    border-radius: 10px;
    line-height: 1;
    vertical-align: middle;
}

/* =========================
   BODY OFFSET (핵심)
========================= */
body {
    padding-top: 130px; /* 헤더 높이에 맞게 조절 */
}