﻿
/*---------------------------
    total
----------------------------*/
html, body {
    margin-top:0;
    width:100%;
}

body {
    text-align:center;
    font-family:none;
    background-color:#FFFFFF;
}

#mw5 {
    width:100%;
    height:100%;
    /*width:1050px;*/
    margin:0 auto 0 auto;
    text-align:left;
}

#mw5 .wrapper {
    width:1140px;
    width:1078px;
    margin:0 auto 0 auto;
    text-align:left;

    position:relative;
}

#mw5 .top {
    border-bottom:1px solid #ccc;
    background-color:#fafafa;
    padding:5px 5px 0 5px;
    height:22px;
    margin:0 0 0 0;
}

#mw5 .head {
    background-color:#fff;
    text-align:center;
    border:30px solid #fff;
    box-sizing:border-box;
}

#mw5 .menu_title {


    font-weight:normal;
    font-size:1.1em;
    font-family:inherit;
    line-height:3em;
    padding:0 0 0 20px;
    margin:0 0 10px 0;

    box-shadow: 0 1px #EBEBEB;
    border-radius: 3px;
    border: 1px solid;
    border-color: #E5E5E5 #D3D3D3 #B9C1C6;
    background-color:#fff;

    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

#mw5 .top-ad {
    width:768px;
    width:-webkit-calc(100% - 310px); /* for Chrome, Safari */
    width:   -moz-calc(100% - 310px); /* for Firefox */
    width:        calc(100% - 310px); /* for IE */
    overflow:hidden;

    font-weight:normal;
    font-size:1.1em;
    font-family:inherit;
    padding:15px 0 15px 20px;
    margin:0 0 10px 0;

    box-shadow: 0 1px #EBEBEB;
    border-radius: 3px;
    border: 1px solid;
    border-color: #E5E5E5 #D3D3D3 #B9C1C6;
    background-color:#fff;

    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

#mw5 .container {
    margin:10px 0 0 0;
}

#mw5 .sidebar {
    width:300px;
    float:right;
}

#mw5 .main {
    float:left;
    width:830px;
    width:768px;
    width:-webkit-calc(100% - 310px); /* for Chrome, Safari */
    width:   -moz-calc(100% - 310px); /* for Firefox */
    width:        calc(100% - 310px); /* for IE */
    /*overflow:hidden;*/

    background-color:#fff;
    padding:10px 10px;

    box-shadow: 0 1px #EBEBEB;
    border-radius: 0px;
    border: 0px solid;
    border-color: #E5E5E5 #D3D3D3 #B9C1C6;
    background-color:#fff;

    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */

}

#mw5 .main nav.pg_wrap {
    border:0;
}

#mw5 .main .menu_title {
    font-size:1.5em;
    line-height:100px;
    height:100px;
    border-bottom:1px solid #eee;
    background-color:#efefef;
    margin:0 0 100px 0;
    padding:150px;
}

#mw5 .main .menu_title h2 {
    position:absolute;
    line-height:30px;
    height:30px;
    /*border-bottom:2px solid #e74c3c;*/
    min-width:120px;
    padding:0;
    padding-left:5px;
    text-decoration:none;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*---------------------------
    top
----------------------------*/
#mw5 .top a {
    font-size:.9em;
    color:#777;
}

#mw5 .top ul {
    margin:0;
    padding:0;
    list-style:none;
    display:table;
}

#mw5 .top li {
    display:table-cell;
}

#mw5 .top li:after {
    content:'|';
    padding:0 5px 0 5px;
    color:#ddd;
}
#mw5 .top li:last-child:after {
    content:'';
    padding:0;
}

#mw5 .top .left {
    float:left;
}

#mw5 .top .right {
    float:right;
}

/*---------------------------
    head
----------------------------*/
#mw5 .head .wrapper {
    width:0px;
    margin:30px auto 20px auto;
    display:table;
    letter-spacing:-1px;
}

#mw5 .head div {
    vertical-align:top;
}

/*---------------------------
    logo
----------------------------*/
#mw5 .head .logo {
    display:table-cell;
    display:absolute;
    font-size:3em;
    font-weight:bold;
    padding-right:10px;
    min-width:180px;
}

#mw5 .head .logo a {
    text-decoration:none;
}

/*---------------------------
    search-box 
----------------------------*/
#mw5 .head .search-box {
    display:table-cell;
    margin:0 0 0 190px;
    padding-right:150px;
}

#mw5 .head .search-box form {
    margin:0;
    padding:0;
}

#mw5 .head .search-text {
    border:3px solid #5997D3; /*  total color */
    height:29px;
    float:left;
    margin:0 0 7px 0;
    width:350px;
}

#mw5 .head .search-text input {
    border:0;
    font-size:1.5em;
    font-weight:bold;
    line-height:25px;
    width:98%;
    margin:5px 0 0 5px;
    outline:none;
    background-color:transparent;
}

#mw5 .head .search-button {
    width:50px;
    height:35px;
    border:0 solid #5997D3; /*  total color */
    background-color:#5997D3; /*  total color */
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    float:left;
    margin:0 0 0 7px;
}

/*---------------------------
    quick-link 
----------------------------*/
#mw5 .head .quick-link {
    clear:both;
}

#mw5 .head .quick-link ul {
    margin:0;
    padding:7px 0 0 0;
    list-style:none;
    display:table;
}

#mw5 .head .quick-link li {
    display:table-cell;
}

#mw5 .head .quick-link li:after {
    content:'|';
    padding:0 5px 0 5px;
    color:#ddd;
}

#mw5 .head .quick-link li:last-child:after {
    content:'';
}

/*---------------------------
    navbar
----------------------------*/
#mw5 nav {
    border-bottom:3px solid #2573be;
}

#mw5 .navbar {
    clear:both;
    background-color:#5997d3;
    height:80px;
    margin:0;
    padding:0;
    list-style:none;
}

#mw5 .navbar a:hover,
#mw5 .navbar a:link,
#mw5 .navbar a:active,
#mw5 .navbar a:visited {
    color:#fff;
    text-decoration:none;
    font-size:1.5em;
    height:80px;
    line-height:80px;
}

#mw5 .navbar li.item {
    float:left;
    font-weight:bold;
    float:left;
    padding:0;
    height:10px;
}

#mw5 .navbar li.item a {
    display:block;
    padding:0px 10px 0 80px;
    font-weight:bold;
}

#mw5 .navbar ul:first-child li .new-count {
    margin:0 0 0 5px;
    color:#e74c3c;
    font-weight:bold;
    position:absolute;
    margin:-2px 0 0 -5px;

    background-color:#e74c3c;
    color:#fff;
    padding:2px 7px 2px 7px;
    border-radius:10px;
    opacity:0.8;
    font-size:.7em;
    line-height:1.4em;
}

#mw5 .navbar ul:first-child li span.new-check:after {
    font-family:FontAwesome;
    font-weight:normal;
    font-style:normal;
    content:'\f111';
    color:#e74c3c;
    margin-left:10px;
    font-size:10px;
}

#mw5 .navbar ul:first-child li span.new-check {
    font-size:0;
}

#mw5 .navbar ul:first-child li span.new-no {
    display:none;
}

#mw5 .navbar li.select {
    float:left;
    display:block;
    padding:0;
    background-color:#3784cf;
    height:10px;
}

#mw5 .navbar li.select a {
    display:block;
    padding:0px 0px 0 0px;
}

#mw5 .navbar li.underline {
    height:0px;
    border-bottom:100px solid #3F3F3F;
}

#mw5 .navbar li .caret {
    font-size:0em;
    padding-left:10px;
}

#mw5 .navbar ul.dropdown {
    display:none;
    position:absolute;
    background-color:#fff;
    z-index:9999;
    border:1px solid #bbb;
    min-width:150px;
    padding:0;
    margin:40px 0 0 0;
    box-shadow:15px 15px 10px #777;
    list-style:none;
}

#mw5 .navbar ul.dropdown li {
    height:40px;
    color:#000;
    padding:0;
    border-bottom:1px solid #efefef;
}

#mw5 .navbar ul.dropdown li:hover {
    background-color:#efefef;
    cursor:pointer;
}

#mw5 .navbar ul.dropdown a:link,
#mw5 .navbar ul.dropdown a:visited,
#mw5 .navbar ul.dropdown a:hover,
#mw5 .navbar ul.dropdown a:active {
    color:#000;
    text-decoration:none;
    font-size:1.3em;
    line-height:50px;
    width:100%;
    height:100%;
    padding-left:100px;
    padding-right:100px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    display:block;
}

/*#mw5 .navbar ul.dropdown:before {
    content:'';
    position:absolute;
    border-style:solid;
    border-width:0 15px 10px;
    border-color:#fff transparent;
    display:block;
    width:0;
    z-index:1;
    top:-10px;
    left:65%;
}*/

#mw5 .navbar ul.dropdown li .new-count {
    margin:0 0px 0 10px;
    color:#e74c3c;
    font-weight:bold;
    position:static;

    background-color:#e74c3c;
    color:#fff;
    padding:2px 7px 2px 7px;
    border-radius:10px;
    opacity:0.8;
    font-size:.7em;
}

#mw5 .navbar ul.dropdown li .new-check:after {
    font-family:FontAwesome;
    font-weight:normal;
    font-style:normal;
    content:'\f111';
    color:#e74c3c;
    margin-left:5px;
    margin-right:5px;
    font-size:10px;
}

#mw5 .navbar ul.dropdown li .new-check {
    font-size:0;
}

#mw5 .navbar ul.dropdown li .new-no {
    display:none;
}

#mw5 .navbar li.nothing {
    color:#fff;
    float:left;
    padding:0;
    height:40px;
    line-height:40px;
}

#mw5 .navbar li.nothing a {
    text-decoration:underline;
    font-size:1em;
}

/*---------------------------
    sidebar
----------------------------*/

#mw5 .sidebar .social-login {
    text-align:center;
}

#mw5 .sidebar .social-login img {
    cursor:pointer;
}

#mw5 .sidebar-nav {
    margin:10px 0 10px 0;
    padding:10px;
    border:1px solid #ccc;
    background-color:#fff;

    box-shadow: 0 1px #EBEBEB;
    border-radius: 3px;
    border: 1px solid;
    border-color: #E5E5E5 #D3D3D3 #B9C1C6;
    background-color:#fff;
}

#mw5 .sidebar-nav ul {
    padding:0;
    margin:0;
    list-style:none;
}

#mw5 .sidebar-nav ul li {
    padding:0;
    margin:0;
    height:30px;
    background-color:#ecf0f1;
    border-bottom:1px solid #fff;
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
    position:relative;
}

/*
#mw5 .sidebar-nav ul li:hover {
    background-color:#bdc3c7;
}
*/

#mw5 .sidebar-nav ul li.selected {
    /*background-color:#bdc3c7;*/
    font-weight:bold;
}

#mw5 .sidebar-nav ul li.selected a {
    font-weight:bold;
    color:#e74c3c;
    /*text-decoration:underline;*/
}

#mw5 .sidebar-nav ul li a {
    display:block;
    width:100%;
    height:100%;
    line-height:30px;
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
    margin:0;
    padding:0 0 0 25px;
    text-decoration:none;
}

#mw5 .sidebar-nav ul li a:hover {
    color:#e74c3c;
    text-decoration:underline;
}

#mw5 .sidebar-nav ul li.sidebar-brand {
    background-color:#95a5a6;
}

#mw5 .sidebar-nav ul li.sidebar-brand a {
    padding:0 0 0 10px;
    color:#fff;
    text-decoration:none;
}

#mw5 .sidebar-nav ul li.sidebar-brand a:hover {
    text-decoration:none;
}

#mw5 .sidebar-nav ul li .new-count {
    margin:0 0 0 5px;
    color:#e74c3c;
    font-weight:bold;

    background-color:#e74c3c;
    color:#fff;
    padding:2px 7px 2px 7px;
    border-radius:10px;
    opacity:0.8;
    font-size:.7em;
}

#mw5 .sidebar-nav ul li .new-check:after {
    font-family:FontAwesome;
    font-weight:normal;
    font-style:normal;
    content:'\f111';
    color:#e74c3c;
    margin-left:5px;
    font-size:10px;
}

#mw5 .sidebar-nav ul li .new-check {
    font-size:0;
}

#mw5 .sidebar-nav ul li .new-no {
    display:none;
}

#mw5 .sidebar-nav ul li .count {
    position:absolute;
    right:10px;
    line-height:30px;
    color:#7f8c8d;
}
/*---------------------------
    etc
----------------------------*/

#mw5 .popular {
    position:absolute;
    right:10px;
}

#mw5 .blank {
    border:0;
    margin:0;
    padding:0;
    clear:both;
    font-size:0;
    line-height:0;
    height:0;
}

#mw5 .block {
    background-color:#fff;
    padding:10px;
    margin:0 0 10px 0;

    box-shadow: 0 1px #EBEBEB;
    border-radius: 3px;
    border: 1px solid;
    border-color: #E5E5E5 #D3D3D3 #B9C1C6;
    background-color:#fff;

    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

/*---------------------------
    latest
----------------------------*/
#mw5 .latest {
    width:100%;
    display:table;
    table-layout:fixed;
}

#mw5 .latest div.item {
    display:table-cell;
    padding-bottom:10px;
    vertical-align:top;
}

#mw5 .latest div.item:first-child {
    padding-right:10px;
}

#mw5 .latest div.item:nth-child(2n) {
    padding-left:10px;
}

#mw5 .latest div.item:last-child {
    padding-right:0;
}

#mw5 .theme {border-bottom:1px dotted #dde4e9}
#mw5 .theme div {margin:0 auto;width:970px;zoom:1}
#mw5 .theme div:after {display:block;visibility:hidden;clear:both;content:""}
#mw5 .theme h2 {float:left;padding:10px 45px 10px 0}
#mw5 .theme ul {float:left;margin:0;padding:0;list-style:none}
#mw5 .theme li {float:left}
#mw5 .theme a {display:inline-block;padding:10px;text-decoration:none}
#mw5 .theme a:focus, #theme a:hover {}

#mw5 .footer {
    background-color:#fff;
    text-align:left;
    margin:10px 0 0 0;
    padding:0;
}

#mw5 .footer .wrapper {
    padding-left:10px;
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#mw5 .footer .tail_link {
    margin:0;
    padding:0;
    line-height:30px;
    background-color:#efefef;
    border-top:1px solid #ccc;
    line-height:40px;
}

#mw5 .footer ul {
    margin:0;
    padding:0;
    text-align:left;
    list-style:none;
    display:table;
}

#mw5 .footer li {
    margin:0;
    padding:0 10px 0 0;
    display:table-cell;
}

#mw5 .footer li:last-child {
    padding:0;
}

#mw5 .footer .banners {
    padding:10px 0 0 0;
}

#mw5 .footer .banners img {
    border:1px solid #ccc;
}

#mw5 .footer .menu {
    margin:0;
    padding:0;
}

#mw5 .footer .menu li {
    margin:0;
    padding:0;
}

#mw5 .footer .menu li:after {
    content:"|";
    padding:0 10px 0 10px;
    color:#ccc;
}

#mw5 .footer .menu li:last-child:after {
    content:'';
}

#mw5 .footer .menu li a {
    font-size:12px;
    font-weight:normal;
    font-family:inherit;
    color:#000;
}

#mw5 .footer .copyright {
    padding:10px 0 10px 0;
}

#mw5 #device_change {
    margin:0;
    padding:10px 0 10px 0;
    border:0;
    border-radius:0;
}

#top-button {
    font-size:2em;
}

#mw5 .my_cash {
    cursor:pointer;
    line-height:20px;
    height:90px;
}

#mw5 .my_cash label {
    font-weight:bold;
}

#mw5 .my_cash .graph {
    margin-top:7px;
    background-color:#efefef;
    height:20px;
    font-weight:bold;
    font-size:11px;
}

#mw5 .my_cash .graph div {
    float:left;
    height:20px;
}

#mw5 .my_cash .graph .grade {
    background-color:#f1899a;
    color:#fff;
    text-align:right;
    padding-right:5px;
    padding-left:5px;
}

#mw5 .clear {
    clear:both;
    height:0;
    font-size:0;
    line-height:0;
}

#top-button {
    font-family:FontAwesome;
    font-weight:normal;
    font-style:normal;
    content:"\f077";
    opacity:0.8;    
    font-size:10px;
    line-height:30px;
    background-color:#ccc;
    display:block;
    width:30px;
    height:30px;
    color:#333;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 5px;
}

#mw5 .memo_count {
    color:red;
    font-weight:bold;
}

/* ───────── 푸터 영역 스타일 수정 ───────── */
/* ───────── 지그에논 테마 푸터 (글자만 남김, 고급 금빛 스타일) ───────── */
.footer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center !important;
  padding: 35px 0 25px 0 !important;
  margin-top: 80px !important;
  position: relative;
  z-index: 2;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,195,106,0.8), transparent);
  box-shadow: 0 0 12px rgba(240,195,106,0.4);
}

.footer .tail_link,
.footer .menu,
.footer .banners,
.footer .wrapper > div:not(.copyright) {
  display: none !important; /* 다른 구성요소 전부 숨김 */
}

.footer .copyright {
  color: rgba(255, 230, 160, 0.7) !important; /* 금빛-은빛 중간 */
  font-size: 14px;
  letter-spacing: 0.4px;
  font-weight: 400;
  text-align: center;
  text-shadow:
    0 0 6px rgba(240,195,106,0.35),
    0 0 15px rgba(240,195,106,0.25);
  background: none !important;
  border: none !important;
  padding-top: 18px;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer .copyright a {
  color: #f0c36a !important; /* 링크는 밝은 금색 */
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.footer .copyright a:hover {
  color: #fff !important;
  text-shadow:
    0 0 8px rgba(255,255,255,0.6),
    0 0 15px rgba(240,195,106,0.8);
}
/* ===============================================
   ⚜ ZIG-ANON NAVIGATION & BACKGROUND LAYOUT CSS
   =============================================== */

body::before{
  content:"";
  position: fixed;
  inset: 0; /* top/right/bottom/left:0 */
  background:
    radial-gradient(circle at 50% 20%, rgba(255,215,130,.10), rgba(0,0,0,.90)),
    url('/theme/miwit/img/body-bg-top.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  z-index: 0;              /* 본문(#mw5) 아래, body 배경 위 */
  pointer-events: none;
}
/* 실제 콘텐츠가 배경 위에 오도록 */
#mw5{ position: relative; z-index: 1; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  color: #fff;
  scroll-behavior: smooth;
  cursor:

    url('/theme/miwit/img/cursor-normal.cur'),    /* .cur 윈도우용 폴백 */
    auto;                                         /* 최종 폴백 */
}

a, button, [role="button"],
input[type="button"], input[type="submit"], input[type="reset"],
label, .btn, .clickable {
  cursor:
    url('/theme/miwit/img/cursor-normal.cur'),
    pointer;
}

/* 드래그 핸들 느낌 */
.draggable, [draggable="true"] { cursor: grab; }
.draggable:active, [draggable="true"]:active { cursor: grabbing; }

/* 비활성화 상태 */
[disabled], .is-disabled { cursor: not-allowed !important; }

/* 대표메뉴 */
.menu-list{
  display:flex; align-items:center; gap:90px;
  margin:0; padding:0; list-style:none;
}
.menu-list>li{ position:relative; }
.menu-list a{
  display:block; height:58px; line-height:58px;
  color:#f2f2f2; text-decoration:none;
  font-weight:700; font-size:15px; letter-spacing:.06em;
  transition:color .2s ease, text-shadow .2s ease, transform .2s ease;
  text-transform:uppercase; /* 영문 메뉴는 1번 스샷처럼 대문자 */
}
.menu-list a:hover{ color:#FFD56B; text-shadow:0 0 10px rgba(255,215,130,.85); }

/* 🟡 펜던트: 화면 상단 고정 + 살짝 아래로 */
.home-pendant {
  position: fixed;
  top: 5px; /* ← 기존 20px에서 늘려 아래로 내림 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 3s ease-in-out infinite;

  z-index: 999999;cursor: url("/theme/miwit/img/cursor-normal.cur"), auto !important;
}

/* 펜던트 이미지 */
.pendant-icon {
  width: 180px; /* ← 120px → 140px로 확대 */
  height: auto;
  animation: glow 2.5s ease-in-out infinite;
}

/* 위아래로 살짝 움직이는 효과 */
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

/* 반짝임 */
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 230, 100, 0.9)); }
}

/* hover 시 */
.home-pendant:hover {
  transform: translateX(-50%) scale(1.05);
  filter: brightness(1.2) drop-shadow(0 0 14px rgba(255, 230, 120, 1));
}

/* 빛 퍼짐 효과 */
.pendant-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(rgba(255, 215, 0, 0.15), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
  z-index: -1;
}

/* 맥동 효과 */
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* 🔗 체인 추가 */
.pendant-chain {
  position: absolute;
  top: -80px; /* ← 체인 길이 조정 (기존 -54px보다 더 길게) */
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 85px; /* ← 길이 증가 */
  background: linear-gradient(180deg, rgba(255,215,130,.9), rgba(255,180,80,.12));
  border-radius: 2px;
  animation: chainPulse 3s ease-in-out infinite;
}

@keyframes chainPulse {
  0%,100% {opacity:.8; box-shadow:0 0 6px rgba(255,215,130,.6);}
  50% {opacity:1; box-shadow:0 0 10px rgba(255,235,160,.9);}
}



/* 네버 바 */
.fixed-navbar.show-all .dropdown.dd{
  opacity: 1; visibility: visible; pointer-events: auto;
}

.dd-rail{
  position: fixed;         /* ✅ nav 내부여도 화면 기준 고정 */
  left: 0; right: 0; top: 58px;
  height: 0;
  opacity: 0;
  pointer-events: none;    /* ✅ 클릭 방해 금지 */
  background: rgba(10,10,10,.94);
  border-top: 1px solid rgba(255,215,130,.16);
  box-shadow: 0 18px 36px rgba(0,0,0,.45);
  transition: height .28s ease, opacity .28s ease;
  z-index: 10019;
}

/* 활성화 시 레일이 아래로 펼쳐짐(높이는 드롭다운 높이에 맞춰 대략값 설정) */
.fixed-navbar.show-all ~ .dd-rail,
.fixed-navbar.show-all .dd-rail{ height: 150px; opacity: 1; }

/* 레일 위에 올 때는 각 드롭다운의 카드 배경/보더를 제거해 하나로 보이게 */
.fixed-navbar.show-all .dropdown.dd{
  background: transparent; border: 0; box-shadow: none; padding-top: 14px;
}

.fixed-navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  background: linear-gradient(to bottom, rgba(0,0,0,.96), rgba(0,0,0,.88));
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 10020;
  display: block;          /* ✅ flex 해제 (쏠림 방지) */
}

/* 메뉴 UL 자체를 ‘가운데 정렬된 단일 블록’로 */
.fixed-navbar .menu-list{
  display: flex;
  align-items: center;
  gap: 90px;
  margin: 0 auto;          /* ✅ 항상 가운데 */
  padding: 0;              /* ✅ UL 기본 좌패딩 제거 */
  list-style: none;
  width: max-content;      /* ✅ 내용만큼만 잡고 중앙 배치 */
  position: relative;
}

:root{
  --dd-shift: 78px;         /* 드롭다운 박스 우측으로 78px */
  --sub-nudge-right: -50px;  /* 서브메뉴 글자를 9px 왼쪽으로 */
}

/* 드롭다운 박스 전체 위치 보정 */
.fixed-navbar .dropdown.dd{
  left: calc(50% + var(--dd-shift)) !important;
}
.fixed-navbar.show-all .dropdown.dd{
  left: calc(50% + var(--dd-shift)) !important;
}

.nav-spacer{ height:58px; }

.fixed-navbar .menu-list > li{ position: relative; float: none; }

.fixed-navbar .dropdown.dd a{
  display:block; padding:2px 8px; line-height:0;
  color:#e9e9e9; font-size:10px; white-space:nowrap;
  transition: color .2s, text-shadow .2s, transform .2s;
  height:auto !important;            /* ← 58px 무력화 */
  line-height:20px !important;       /* 한 줄 높이(원하면 18~22로 조절) */
}

.fixed-navbar .dropdown.dd a:hover{
  color:#FFD56B; text-shadow:0 0 6px rgba(255,215,130,.7); transform:translateX(2px);
}


/* 반응형 */
@media (max-width:1200px){ .menu-list{ gap:64px; } .pendant-gap{ width:96px; } }
@media (max-width:992px){ .menu-list{ gap:44px; } .pendant-gap{ width:80px; } }

/* 공지 뉴스바 */
#mw5 .top{ z-index:1; }       /* 공지/뉴스 바 */
.fixed-navbar{ z-index:10020; }
.home-btn{ z-index:10030; }


/* 공통 드롭다운 기본값(세로 애니메이션만) */
.fixed-navbar .dropdown.dd{
  position: absolute;
  top: 100%;
  width: var(--col);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 10025;
}

/* 왼쪽 그룹(1~2번째 li): 중앙 기준 왼쪽에 붙임 */
.fixed-navbar .menu-list > li.has-dd:nth-of-type(-n+2) .dropdown.dd{
  left: auto !important;

  transform: none !important;
}

/* 오른쪽 그룹(4번째 이후 li): 중앙 기준 오른쪽에 붙임 */
.fixed-navbar .menu-list > li.has-dd:nth-of-type(n+4) .dropdown.dd{
  left: calc(0% + var(--gap)) !important;  /* 중앙에서 gap 만큼 떨어진 지점에 '왼쪽 모서리' 고정 */

  transform: none !important;
}

/* 열릴 때는 세로만 0으로(가로 위치는 그대로) */
.fixed-navbar.show-all .menu-list > li.has-dd .dropdown.dd{
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* 1) 상위 메뉴에만 58px 적용 (드롭다운에는 X) */
.menu-list > li > a{
  height:58px;
  line-height:58px;
}

/* 2) 드롭다운 간격 촘촘하게 */
.fixed-navbar .dropdown.dd{
  padding:0 !important;              /* 박스 안 위/아래 여백 제거 */
}

/* 메인에만 배경 제대로 표시 */
body.is-home{
  background: transparent !important;
  position: relative;            /* 스택 컨텍스트 생성 */
}

/* 실제 콘텐츠는 배경 위에 오도록 */
#mw5{ position: relative; z-index: 1; }


/* 메인(홈)에서만 흰 배경/테두리/그림자 제거 */
body.is-home #mw5 .main,
body.is-home #mw5 .block,
body.is-home #mw5 .sidebar-nav,
body.is-home #mw5 .top-ad,
body.is-home #mw5 .menu_title,
body.is-home #mw5 .head,
body.is-home #mw5 .footer,
body.is-home #mw5 .container,
body.is-home #mw5 .wrapper {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* 뉴스 바는 얇게만 표시 (원하면 삭제) */
body.is-home #mw5 .top {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

#mw5 .head { 
  background: transparent !important;
  border: 0 !important;            /* ← 기본 30px 흰 테두리 제거 */
  box-shadow: none !important;
}

/* 헤더 내부 래퍼/배경 레이어도 전부 투명화 */
#mw5 .head .effect,
#mw5 .head .background,
#mw5 .head .wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 혹시 테마가 의사요소로 그라데이션을 깔아둘 경우 차단 */
#mw5 .head::before,
#mw5 .head::after,
#mw5 .head .effect::before,
#mw5 .head .effect::after,
#mw5 .head .background::before,
#mw5 .head .background::after {
  content: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 언어 전환 * /
.lang-switch { display:inline-flex; gap:8px; align-items:center; cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;}
.lang-switch a { color:#bbb; text-decoration:none; font-weight:600; cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;}
.lang-switch a.on { color:#FFD56B; text-shadow:0 0 6px rgba(255,215,130,.6); cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;}
.lang-switch .sep { color:rgba(255,255,255,.25); cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;}

/* 언어 전환 버튼 최상단 고정 */
.lang-switch {
  position: fixed;
  top: 60px;
  left: 500px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}
.lang-switch img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}
.lang-switch img:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}

/ * 내용관ㄹ ㅣcss 제거 */ 
/* 내용관리 여백 제거 */
#ctt_con,
#bo_v_con,
#content,
.content,
.container,
.wrapper,
.view-content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#ctt_con img,
#bo_v_con img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/ * 드롭 팝업 js * /
/* ========== 팝업 스타일 ========== */
/* === 팝업 전체 배경 === */
.popup-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 999999;
  animation: fadeIn 0.25s ease;
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}

/* === 팝업 컨텐츠 === */
.popup-content {
  position: relative;
  width: 90%;
  height: 85%;
  background: rgba(15, 15, 20, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  animation: scaleIn 0.25s ease;
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}

/* === 닫기 버튼 === */
.popup-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}
.popup-content {
  position: relative;
  width: 90%;
  height: 85%;
  background: rgba(15,15,20,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  animation: scaleIn 0.25s ease;
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #f0c36a;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
}
.popup-close:hover {
cursor: url('/theme/miwit/img/cursor-normal.cur'), auto !important;
  transform: rotate(90deg);
  color: #fff;
}
#popup-frame {
  width: 100%;
  height: 100%;
  border: none;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.open-popup {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.open-popup:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}


  .discord-widget.active {
	  left: 8px;
  }
  .discord-widget {
	  width: 265px;
	  transition-property: left;
	  transition-duration: 2s;
	  -webkit-transition-property: left;
	  -webkit-transition-duration: 2s;
	  position: fixed;
	  bottom: 5px;
	  left: 10px;
	  z-index: 10;
  }