/* 모든 페이지가 같이 쓰는 모양: 기본, 위쪽 메뉴, 제목, 표, 맨 아래 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  padding-top: 60px;
  font-family: -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #333;
  background: #fff;
}
ul, li { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { vertical-align: bottom; }
.container { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.pointer { cursor: pointer; }
.fwlight { font-weight: 100; }
.fwbold { font-weight: 500; }

/* ---------- 위쪽 메뉴 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; background: #fff;
  border-top: 4px solid #d70019; border-bottom: 1px solid #999;
}
.navbar .container { height: 55px; display: flex; align-items: center; }
.navbar .brand img { display: block; }
.nav-menu { display: flex; margin: 0 100px 0 auto; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 8px 8px; margin-left: 14px; font-weight: bold; font-size: 15px; color: #333; }
.nav-link:hover { color: #000; }
.dropdown {
  display: none; position: absolute; right: 0; top: 100%; min-width: 160px;
  background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 24px; font-size: 14px; font-weight: bold; white-space: nowrap; }
.dropdown a:hover { background: #f4f4f4; }
.top_search { position: absolute; top: 15px; right: 54px; }
.top_search em {
  position: absolute; top: 0; right: 0; width: 25px; height: 25px;
  background: url('../images/base/top_right_btn.png') no-repeat left 0; cursor: pointer;
}
.top_search input {
  display: none; position: absolute; top: 0; right: 12px; height: 25px; width: 280px;
  border: 1px solid #353535; border-radius: 20px 0 0 20px; font-size: 12.8px; padding: 0 0 0 12px; outline: none;
}
.top_search:hover input, .top_search input:focus { display: block; }
.top_user {
  position: absolute; top: 15px; right: 20px; width: 25px; height: 25px;
  background: url('../images/base/top_right_btn.png') no-repeat right 0; cursor: pointer;
}
.menu-toggle {
  display: none; margin-left: auto; margin-right: 105px; width: 40px; height: 34px;
  border: 1px solid rgba(0,0,0,.1); border-radius: 4px; background: #fff; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: rgba(0,0,0,.5); margin: 0 auto; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ---------- 제목 ---------- */
.sub_title { text-align: center; }
.sub_title li { font-size: 2rem; font-weight: 600; }
.sub_title li.text { font-size: .8rem; font-weight: 200; }
.page-title { height: 95px; padding-top: 25px; }
.title_wrap { padding: 40px 0 10px; border-bottom: 1px solid #e8ecef; margin: 0 20px; }
.title_wrap h2 { margin: 0; font-size: 1.5rem; font-weight: 500; }
.title_wrap h5 { margin: 0; padding-top: 2px; font-size: .8rem; font-weight: 400; color: #999; }

/* ---------- NEW / HOT 표시 ---------- */
.badge { float: right; padding: 3px 10px; font-size: .7rem; color: #fff; margin-top: 2px; border-radius: 20px; font-weight: normal; }
.badge.blue { background: #0186da; }
.badge.red { background: #c90101; }
.mini-badge { display: inline-block; padding: 0 3px; font-size: .7rem; color: #fff; margin-right: 3px; font-weight: normal; }
.mini-badge.blue { background: #0186da; }
.mini-badge.red { background: #c90101; }

/* ---------- 표 ---------- */
.table_wrap { margin: 0 20px; }
.list_table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; color: #111; }
.list_table tr { height: 36px; }
.list_table th { border-bottom: 1px solid #dce2e6; background: #e5e9ef; padding: 0 10px; font-weight: bold; text-align: center; }
.list_table td {
  border-bottom: 1px solid #dce2e6; background: #fff; padding: 0 10px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list_table .tL { text-align: left; }
.list_table a:hover { text-decoration: underline; }

/* ---------- 단추 ---------- */
.btn {
  display: inline-block; height: 30px; line-height: 28px; padding: 0 12px;
  border: 1px solid #dce2e6; background: #f9fbfe; color: #010101;
  font-size: 14px; font-weight: bold; cursor: pointer; border-radius: 0;
}
.btn:hover { background: #e5e9ef; }
.btn.on { background: #d70019; border-color: #d70019; color: #fff; }

/* ---------- 맨 아래 ---------- */
.footer_div { background: #f4f4f4; padding: 30px 0 34px; }
.footer_div img { margin-bottom: 4px; }
.footer_div li { display: inline-block; margin-right: 20px; font-size: .8rem; color: #666; }
.footer_div li.copy { display: block; margin-top: 10px; border-top: 1px dashed #ddd; padding-top: 10px; }
.footer_div .brand-red { color: #dc3545; font-weight: bold; }
.bottom-line { position: fixed; bottom: 0; left: 0; width: 100%; height: 4px; background: #d70019; z-index: 100; }

/* ---------- 화면 크기별 ---------- */
@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 55px; left: 0; right: 0; margin: 0;
    flex-direction: column; background: #fff; border: 1px solid #d0d0d0; border-top: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-link { margin-left: 0; padding: 10px 1rem; border-top: 1px solid #d0d0d0; }
  .dropdown { position: static; border: 0; border-radius: 0; box-shadow: none; background: #f0f0f0; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open .dropdown { display: block; }
  .top_search { right: 86px; }
  .top_search input { width: 250px; }
  .top_user { right: 56px; }
}
@media (max-width: 575px) {
  .table_wrap { margin: 0; }
  .title_wrap { margin: 0; }
  .top_search input { width: 200px; }
}
