@charset "utf-8";
/* ==========================================================================
   필즈더클래식 인트라넷 - 메인/헤더/푸터 레이아웃
   레거시(CIBoard + Bootstrap3) 화면을 자체 CSS로 재현한 것.
   default.css 는 건드리지 않고 이 파일에서만 덮어쓴다.
   ========================================================================== */

:root {
    --fd-util-bg: #082A47;      /* 상단 유틸바 */
    --fd-line: #ddd;            /* 패널/표 테두리 */
    --fd-head-bg: #f5f5f5;      /* 패널 제목줄, 푸터 */
    --fd-text: #333;
    --fd-muted: #777;
    --fd-primary: #348fe2;      /* 검색 버튼 */
    --fd-secondary: #ec5956;    /* 강조 색상 */
    --fd-radius: 4px;
    --fd-gap: 20px;
    --fd-container: 1170px;
}

/* 공통 컨테이너 ----------------------------------------------------------- */
.fd-container {
    max-width: var(--fd-container);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* default.css 의 고정폭 #container(930px, float:left) 해제 — 반응형 전제 */
#container_wr { width: auto; }
#container {
    float: none;
    width: auto;
    max-width: var(--fd-container);
    margin: 20px auto;
}
#container.is-index {
    max-width: none;
    margin: 0 auto 40px;
    min-height: 0;
}

/* ==========================================================================
   상단 유틸바
   ========================================================================== */
#hd { background: none; }

#fd-util {
    background: var(--fd-util-bg);
    color: #fff;
    font-size: 13px;
}
.fd-util-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    min-height: 40px;
}
.fd-util-menu > li {
    padding: 0 10px;
    line-height: 40px;
    position: relative;
}
.fd-util-menu > li > a,
.fd-util-menu > li > button {
    color: #fff;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.fd-util-menu > li > a:hover,
.fd-util-menu > li > button:hover { text-decoration: underline; }
.fd-util-menu .fa { margin-right: 5px; }
.fd-util-menu .fd-badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 5px;
    margin-left: 4px;
    font-size: 10px;
    line-height: 1;
    color: #fff;
    background: var(--fd-muted);
    border-radius: 10px;
    vertical-align: middle;
}

/* 알림 드롭다운 ---------------------------------------------------------- */
.fd-noti { cursor: pointer; }
.fd-noti-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1000;
    width: 320px;
    padding: 0;
    background: #fff;
    color: var(--fd-text);
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .18);
    text-align: left;
    line-height: 1.5;
    cursor: default;
}
.fd-noti-item {
    border-bottom: 1px solid #eee;
    font-size: 12px;
}
.fd-noti-item:last-child { border-bottom: 0; padding: 0;}
.fd-noti-item:last-child > a { padding: 8px 0;}
.fd-noti-item > a { color: var(--fd-text); display: block; padding: 8px 12px;}
.fd-noti-item > a:hover { background: #f8f8f8; }
.fd-noti-item .fd-right { float: right; color: var(--fd-muted); margin-left: 8px; }
.fd-noti-item:after { content: ""; display: block; clear: both; }
.fd-noti-head { background: #fafafa; font-weight: bold; padding: 12px 12px;}
.fd-noti-head .fd-right { color: var(--fd-secondary); cursor: pointer; font-weight: normal; }
.fd-noti-foot { text-align: center; }
.fd-noti-foot a { color: var(--fd-secondary); }

/* ==========================================================================
   로고 + GNB + 검색
   ========================================================================== */
#fd-gnb {
    background: #fff;
    border-bottom: 1px solid var(--fd-line);
}
.fd-gnb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50px;
}
.fd-brand {
    padding: 10px 15px 10px 0;
    flex: 0 0 auto;
}
.fd-brand img { height: 30px; vertical-align: middle; }
.fd-gnb-toggle {
    display: none;
    margin-left: auto;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
    color: var(--fd-text);
    font-size: 15px;
    cursor: pointer;
}
.fd-gnb-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.fd-gnb-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.fd-gnb-menu > li { position: relative; }
.fd-gnb-menu > li > a {
    display: flex;
    align-items: center;

    padding: 15px 12px;
    color: #060606;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}
.fd-gnb-menu > li:hover > a { color: var(--fd-primary); }
/* depth2 가 있는 1depth 에만 붙는 화살표 */
.fd-gnb-menu .fd-caret {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    color: var(--fd-text);
    transition: transform .15s ease;
}
.fd-gnb-menu > li:hover > a .fd-caret {
    color: var(--fd-primary);
    transform: rotate(180deg);
}
.fd-gnb-menu .fd-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 160px;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0 0 var(--fd-radius) var(--fd-radius);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.fd-gnb-menu > li:hover .fd-sub { display: block; }
.fd-gnb-menu .fd-sub > li > a {
    display: block;
    padding: 5px 20px;
    color: var(--fd-text);
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}
.fd-gnb-menu .fd-sub > li > a:hover { background: #f5f5f5; }

/* 검색 — 기능은 그누보드 기본(fsearchbox), 디자인만 레거시 */
#fd-gnb #hd_sch {
    border: 0;
    margin: 0 0 0 10px;
    padding: 0;
    flex: 0 0 auto;
    border-radius: 0;
}
#fd-gnb #hd_sch legend { display: none; }
#fd-gnb #hd_sch form { display: flex; align-items: center; }
#fd-gnb #hd_sch #sch_stx {
    width: 150px;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    box-sizing: border-box;
    background: #fff;
}
#fd-gnb #hd_sch #sch_submit {
    height: auto;
    width: 40px; 
    margin-left: 4px;;
    padding: 0 12px;
    background: var(--fd-primary);
    border: 1px solid var(--fd-primary);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    align-self: stretch;
}
#fd-gnb #hd_sch #sch_submit:hover { background: #2a7cc7; }

/* ==========================================================================
   모바일 사이드 드로어 (레거시 #side_menu)
   IScroll 은 쓰지 않는다 — 구형 안드로이드 대응용이라 overflow-y:auto 로 충분하다.
   ========================================================================== */

/* 유틸바를 감춘 자리를 메우는 상단 라인 (레거시 .header_line) */
.fd-header-line {
    display: none;
    height: 3px;
    line-height: 3px;
    background: var(--fd-util-bg);
}

#fd-side {
    display: none;              /* 992 이상에서는 존재하지 않는다 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, visibility 0s linear .16s;
}
#fd-side.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility 0s;
}
.fd-side-wr {
    position: absolute;
    top: 0;
    right: 0;
    width: 270px;
    height: 100%;
    background: #222;
    box-shadow: 0 0 10px #000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .16s ease;
}
#fd-side.is-open .fd-side-wr {
    transform: translateX(0);
    transition: transform .2s ease;
}
#fd-side a { color: #fff; }
#fd-side a:hover { color: #7080b1; }

/* 로그아웃 / 마이페이지 */
.fd-side-login {
    margin: 10px;
    text-align: center;
}
.fd-side-login span { padding: 0 1.5px; }
.fd-side-login a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--fd-primary);
    border: 1px solid var(--fd-primary);
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.5;
}
.fd-side-login a:hover { background: #2a7cc7; color: #fff; }

/* 현재접속자 / 알림 / 쪽지 / 포인트 */
.fd-side-board {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #000;
}
.fd-side-board > li {
    position: relative;
    line-height: 40px;
    padding-left: 35px;
}
.fd-side-board > li > a { display: block; font-size: 13px; }
.fd-side-board .fa { position: absolute; top: 13px; left: 10px; }

/* 1depth */
.fd-side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fd-side-menu > li {
    position: relative;
    border-top: 1px solid #323232;
}
.fd-side-menu > li > a {
    display: block;
    padding: 0 45px 0 20px;
    line-height: 40px;
    font-size: 13px;
}

/* depth2 여는 버튼 */
.fd-side-open {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.fd-side-open .fa { transition: transform .15s ease; }
.fd-side-open[aria-expanded="true"] .fa { transform: rotate(180deg); }

/* 2depth — 기본 닫힘 */
.fd-side-sub {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #222;
    transition: max-height .3s ease;
}
.fd-side-sub.is-open { max-height: 1000px;  }
.fd-side-sub > li { line-height: 40px; padding-left: 30px; }
.fd-side-sub > li > a {
    display: block;
    color: #888;
    font-size: 13px;
}
.fd-side-sub > li > a:hover { color: #7080b1; }

/* 드로어가 열린 동안 본문 스크롤 잠금 (레거시 body.over_hidden) */
body.fd-side-lock { overflow: hidden; }

/* ==========================================================================
   메인 본문 - 그리드
   ========================================================================== */
#fd-main {
    font-size: 13px;
    color: var(--fd-text);
    padding-top: var(--fd-gap);
}
.fd-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--fd-gap);
}
.fd-col-6 { flex: 0 0 calc(50% - var(--fd-gap) / 2); max-width: calc(50% - var(--fd-gap) / 2); min-width: 0; }
.fd-col-12 { flex: 0 0 100%; max-width: 100%; min-width: 0; }

.fd-section-divider {
    margin: 10px 0 20px;
    border: 0;
    border-top: 1px solid var(--fd-line);
}
.fd-section-title {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: bold;
}

/* 패널 ------------------------------------------------------------------- */
.fd-panel {
    margin-bottom: var(--fd-gap);
    background: #fff;
    border: 1px solid var(--fd-line);
    border-radius: var(--fd-radius);
}
.fd-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--fd-head-bg);
    border-bottom: 1px solid var(--fd-line);
    border-radius: var(--fd-radius) var(--fd-radius) 0 0;
    font-size: 14px;
    color: var(--fd-text);
}
.fd-panel-head .fd-more { font-size: 13px; color: var(--fd-text); white-space: nowrap; }
.fd-panel-head .fd-more:hover { color: var(--fd-primary); }
.fd-panel-body { padding: 0; }

/* 최신글 표 -------------------------------------------------------------- */
.fd-list {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.fd-list td {
    padding: 8px;
    border-top: 1px solid var(--fd-line);
    font-size: 13px;
    line-height: 1.4;
}
.fd-list tr:first-child td { border-top: 0; }
.fd-list tr:hover td { background: #f5f5f5; }
.fd-list .fd-subject {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fd-list .fd-subject a { color: #000; }
.fd-list .fd-subject a:hover { text-decoration: underline; }
.fd-list .fd-cnt { color: #FF7700; font-size: 12px; margin-left: 6px; font-weight: 600;}
.fd-list .fd-date {
    width: 80px;
    color: var(--fd-muted);
    text-align: right;
    white-space: nowrap;
}

/* 자료실 패널 ------------------------------------------------------------ */
.fd-archive {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px;
}
.fd-archive-4 { grid-template-columns: repeat(4, 1fr); }
.fd-archive-col { min-width: 0; }
.fd-archive-head {
    display: block;
    padding: 5px 4%;
    margin-bottom: 5px;
    background: #dfdfdf;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.4px;
}
.fd-archive-head:hover { color: var(--fd-primary); }
.fd-archive-list { list-style: none; margin: 0; padding: 0; }
.fd-archive-list > li { line-height: 24px; }
.fd-archive-list > li > a {
    display: block;
    padding: 0 4px;
    color: var(--fd-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fd-archive-list > li > a:hover { background: #efefef; }
.fd-archive-list .fa { color: var(--fd-muted); margin-right: 4px; }
.fd-archive-list > li.fd-archive-sep {
    border-top: 1px dashed #ccc;
    margin: 5px 4px;
    line-height: 0;
    font-size: 0;
}

/* 최근댓글 --------------------------------------------------------------- */
.fd-comment {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.fd-comment td {
    padding: 8px;
    border-top: 1px solid var(--fd-line);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fd-comment tr:first-child td { border-top: 0; }
.fd-comment tr:nth-child(odd) td { background: #f9f9f9; }
.fd-comment tr:hover td { background: #f5f5f5; }
.fd-comment .fd-c-origin { width: 25%; color: var(--fd-text); }
.fd-comment .fd-c-body a { color: #000; }
.fd-comment .fd-c-body a:hover { text-decoration: underline; }
.fd-comment .fd-c-name { width: 90px; text-align: center; color: var(--fd-text); }
.fd-comment .fd-c-date { width: 140px; text-align: right; color: var(--fd-muted); }

/* ==========================================================================
   푸터
   ========================================================================== */
#ft {
    background: var(--fd-head-bg);
    color: var(--fd-text);
    text-align: center;
    border-top: 1px solid var(--fd-line);
}
#fd-ft-inner { padding: 25px 15px; font-size: 13px; line-height: 1.8; }
.fd-ft-link {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}
.fd-ft-link > li { padding: 0 10px; position: relative; }
.fd-ft-link > li + li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -6px;
    width: 1px;
    height: 12px;
    background: #ccc;
}
.fd-ft-link > li > a { color: var(--fd-text); font-weight: 500; }
.fd-ft-copy { color: var(--fd-muted); text-align: left;}
.fd-ft-copy span { margin: 0 5px; white-space: nowrap; display: inline-block; }
.fd-ft-copy b { color: var(--fd-text); font-weight: 500; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1199px) {
    :root { --fd-container: 970px; }
}

/* 991 이하 : 레거시 모바일 레이아웃 — 유틸바를 감추고 우측 드로어로 전환 */
@media (max-width: 991px) {
    .fd-col-6 { flex: 0 0 100%; max-width: 100%; }
    .fd-archive { grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 10px 5px;}

    #fd-util { display: none; }
    .fd-header-line { display: block; }

    .fd-gnb-inner { min-height: 0; }
    .fd-gnb-body { display: none; }   /* 메뉴·검색은 드로어로 넘어간다 */
    .fd-gnb-toggle { display: block; }
    #fd-side { display: block; }
}

@media (max-width: 767px) {
    .fd-comment .fd-c-name,
    .fd-comment .fd-c-date { display: none; }
    .fd-comment .fd-c-origin { width: 35%; }
}

@media (max-width: 479px) {
    .fd-list .fd-date { width: 60px; font-size: 12px; }
}
