﻿/*
    DEMO STYLE
*/

/* ---------------------------------------------------
    Navbar STYLE
----------------------------------------------------- */
.navbar {
    margin: 0.5rem 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: rgba(115, 134, 213, 0.25);
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

/* 메뉴 고정 (Core/MenuPin): the owner pinned the menu open - on wide screens it stays beside
   the content and the '메뉴' button goes. Phones keep the button (an open menu covers the page). */
@media (min-width: 769px) {
    .wrapper.is-pinned #sidebar,
    .wrapper.is-pinned #sidebar.active { margin-left: 0; }
    .wrapper.is-pinned #content > .navbar { display: none; }
}

/* the owner's checkbox under the menu */
.menu-pin { margin: 12px 10px; padding: 10px 12px; border-radius: 6px; background: #fff; color: #333; }
.menu-pin label { display: flex; align-items: flex-start; gap: 8px; margin: 0; cursor: pointer; font-size: 13px; }
.menu-pin input { margin-top: 3px; }
.menu-pin b { display: block; font-size: 14px; }
.menu-pin small { display: block; margin-top: 2px; color: #777; line-height: 1.4; }

/* About Us under the menu: white text on the menu's light blue could not be read - now a
   white card like 메뉴 고정's, the title with 'more +' on one line, the text dark and readable. */
#sidebar #RightMenuContainer { margin: 12px 10px; padding: 12px 14px 14px; border: 0 !important; border-radius: 6px; background: #fff; color: #333; }
#sidebar #RightMenuContainer .SmallTitle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid #e6e8ef; background: none; }
#sidebar #RightMenuContainer .SmallTitle .font_medium_bold { order: -1; }
#sidebar #RightMenuContainer .SmallTitle .font_medium_bold a { color: #222 !important; font-size: 15px; font-weight: 700; }
#sidebar #RightMenuContainer .SmallTitle a.TitleLink { float: none; color: #7386D5; font-size: 12px; }
#sidebar #RightMenuContainer .SmallContainer { display: block; padding: 0; color: #444; }
#sidebar #RightMenuContainer .SmallContainer > .font_medium_bold { display: block; color: #222; font-size: 14px; font-weight: 700; line-height: 1.4; }
#sidebar #RightMenuContainer .SmallDate { display: block; float: none; margin: 2px 0 8px; color: #999; font-size: 11.5px; text-align: left; }
#sidebar #RightMenuContainer .SmallContent, #sidebar #RightMenuContainer .SmallContent * { color: #444 !important; font-size: 13px !important; line-height: 1.6 !important; background: none !important; }
#sidebar #RightMenuContainer .SmallContent p { margin: 0 0 6px; }

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 0px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

/* 전화기: 메뉴는 닫힌 채로 시작하고, 열면 내용을 밀지 않고 위에 덮인다.
   페이지는 #sidebar 에 'active' 를 붙인 채로 나온다 - 데스크톱에서 그것은
   '닫힘'이다. 예전 규칙은 좁은 화면에서 그 뜻을 뒤집어 놓아서, 전화기에서는
   메뉴가 열린 채 시작해 내용을 화면 반쪽으로 밀어냈다. 이제 어디서나
   'active' = 닫힘. 메뉴 밖을 누르면 닫히는 것은 WebPage.aspx 의 스크립트. */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        margin-left: 0;
        background: #7386D5;          /* 투명 배경이면 덮인 내용이 비쳐 글이 안 읽힌다 */
        box-shadow: 2px 0 12px rgba(0, 0, 0, .25);
    }
    #sidebar.active {
        margin-left: -250px;
        box-shadow: none;
    }
    #content {
        min-height: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}