/* Shared public subpages. The homepage and administration have their own styles. */
body.icg-subpage {
    --sub-ink: #152d4d;
    --sub-muted: #526681;
    --sub-blue: #245bad;
    --sub-bg: #f6f9fd;
    --sub-border: #e0e8f3;
    --sub-tint: #eef5ff;
    --sub-gutter: clamp(16px, 3vw, 32px);
    --sub-panel: clamp(16px, 3vw, 36px);
    color: var(--sub-ink);
    background: var(--sub-bg);
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.icg-subpage :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #3780d6;
    outline-offset: 3px;
}

.icg-subpage .sub-masthead {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    box-sizing: border-box;
    width: min(1180px, calc(100% - var(--sub-gutter) * 2));
    margin: 0 auto;
    padding: 26px 0 22px;
}

.icg-subpage .sub-brand img {
    display: block;
    width: 170px;
    height: auto;
    margin: 0 auto;
}

.icg-subpage .sub-masthead form {
    min-width: 0;
    margin: 0;
}

.icg-subpage #searchWraper {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
}

.icg-subpage .sub-search-label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.icg-subpage #searchContent {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.icg-subpage .searchInput {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 18px;
    border: 1px solid #bccfe6;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 3px 12px #1b477309;
}

.icg-subpage .searchInput:focus-within {
    border-color: var(--sub-blue);
    box-shadow: 0 0 0 3px #245bad14;
}

.icg-subpage .searchInputTXT {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 52px;
    padding: 12px 0;
    background: transparent;
    color: var(--sub-ink);
    font-size: 16px;
}

.icg-subpage #recentkeyWord {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    height: auto !important;
    max-height: none;
    overflow: visible;
    margin: 10px 0 0;
    padding: 0;
}

.icg-subpage #recentkeyWord > span {
    font-size: 14px !important;
    color: var(--sub-muted);
}

.icg-subpage .searchword {
    margin: 0;
    padding: 4px 9px;
    border-radius: 6px;
    background: #eaf0f8;
    color: var(--sub-muted);
    font-size: 14px;
}

.icg-subpage .searchword:hover {
    background: #dce9fc;
    color: var(--sub-blue);
}

.icg-subpage #icgheader {
    background: #183e70;
}

.icg-subpage #icgheader .topSmallmenu > a {
    display: inline-block;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
}

.icg-subpage #icgheader .topSmallmenu > a[href*="/member/login"] {
    border: 1px solid #96b0d3;
}

.icg-subpage #icgheader .topSmallmenu > a:hover {
    background: #ffffff1a;
}

.icg-subpage .shb {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: clamp(144px, 15vw, 208px);
    height: auto;
    padding: 26px var(--sub-gutter);
}

.icg-subpage .shb::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, #0d2c53db, #153d6bc7 56%, #1b5485ad);
}

.icg-subpage .shbtitle {
    margin: 0;
    padding: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.28;
    letter-spacing: -.04em;
}

.icg-subpage .shbtitle_desc {
    margin: 0;
    padding: 0;
    color: #f0f6ff;
    font-size: 16px;
    line-height: 1.55;
    word-break: keep-all;
}

.icg-subpage .shbtitle_desc:empty {
    display: none;
}

.icg-subpage .lnb {
    background: #fff;
    border-bottom: 1px solid var(--sub-border);
}

.icg-subpage .lnb > .container {
    box-sizing: border-box;
    width: min(1180px, calc(100% - var(--sub-gutter) * 2));
}

.icg-subpage .lnb ol {
    box-shadow: 0 8px 24px #17395a1c;
}

.icg-subpage .container:has(> #contents) {
    box-sizing: border-box;
    width: min(1180px, calc(100% - var(--sub-gutter) * 2));
}

.icg-subpage #contents {
    min-width: 0;
    color: var(--sub-ink);
    line-height: 1.65;
}

.icg-subpage #contents .subHeader1depth {
    margin: clamp(24px, 4vw, 46px) 0 18px;
    padding: 0;
    border: 0;
    color: var(--sub-ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.icg-subpage #contents .bbsOutline {
    box-sizing: border-box;
    padding: var(--sub-panel) !important;
    border: 1px solid var(--sub-border) !important;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 30px #152d4d07;
}

.icg-subpage #contents .sub-content-layout > tbody > tr > td > .marginT50 {
    margin-top: 16px !important;
}

.icg-subpage #contents .flex1colum80 {
    box-sizing: border-box;
    width: min(100%, 960px);
    padding-inline: 0;
}

.icg-subpage #contents .memberTextarea {
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid var(--sub-border);
    border-radius: 10px;
    background: var(--sub-bg);
    color: var(--sub-muted);
    font-size: 14px;
    line-height: 1.7;
}

.icg-subpage #contents .sub-board-list {
    table-layout: fixed;
}

.icg-subpage #contents .sub-board-list td {
    box-sizing: border-box;
    padding-inline: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.icg-subpage #contents .sub-board-search :is(.bbssearchbox, .bbsselectbox) {
    height: 42px;
}

.icg-subpage #contents .sub-board-search .ui.button {
    min-height: 42px;
    margin: 0;
    background: var(--sub-blue);
    color: #fff;
    font-size: 14px;
}

.icg-subpage .icgquickmenubottom {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: min(1180px, calc(100% - var(--sub-gutter) * 2));
    margin: 24px auto 32px;
}

.icg-subpage .icgquickmenubottom a {
    width: 100%;
    margin: 0;
}

.icg-subpage .icgquickmenubottom img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.icg-subpage #contents :is(.formRowWrap, .formRowRight) {
    box-sizing: border-box;
    min-width: 0;
}

.icg-subpage #contents .formRowWrap {
    padding-block: 14px;
    border-bottom: 1px solid #edf1f7;
    gap: 16px;
}

.icg-subpage #contents .formRowLeft {
    flex: 0 0 140px;
    width: auto;
    color: var(--sub-ink);
    font-weight: 600;
    text-align: left;
}

.icg-subpage #contents .formRowRight {
    flex: 1;
    width: auto;
}

.icg-subpage #contents :is(input[class*="commonInputBox"], .commonSelectBox, .bbssearchbox, .bbsselectbox) {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #c9d8eb;
    border-radius: 8px !important;
    background: #fff;
    color: var(--sub-ink);
    font-size: 16px;
}

.icg-subpage #contents .ui.button {
    border-radius: 8px;
}

.icg-subpage #contents .mtstable {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.icg-subpage #contents .mtstable td {
    padding: 12px;
    border: 1px solid var(--sub-border);
    overflow-wrap: anywhere;
}

.icg-subpage #contents .mtstable tr:first-child td {
    background: var(--sub-tint);
    color: var(--sub-ink);
    font-weight: 700;
}

.icg-subpage #contents .yearBox {
    width: auto;
    border: 1px solid var(--sub-border);
    border-radius: 14px;
    background: var(--sub-tint);
    color: var(--sub-blue);
}

.icg-subpage #contents :is(#bbs_subject, #bbs_subject_normal) {
    display: grid;
    align-content: center;
    box-sizing: border-box;
    height: auto;
    min-height: 136px;
    padding: 24px;
    border-radius: 16px;
    background: var(--sub-tint);
    color: var(--sub-ink);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.icg-subpage #contents #bbs_subject {
    background-color: #183e70;
    color: #fff;
}

.icg-subpage #contents #bbs_content .bbs_content_padding {
    padding-inline: clamp(0px, 3vw, 40px) !important;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.icg-subpage #contents #bbs_content img {
    height: auto;
}

.icg-subpage #contents :is(.content_header, .content_header2, .content_subheader) {
    color: var(--sub-ink);
    letter-spacing: -.025em;
    line-height: 1.4;
}

.icg-subpage #contents :is(.content_desc, .content_subTXT) {
    color: var(--sub-muted);
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.icg-subpage #contents .flex2colum_half {
    gap: 24px;
    overflow: visible;
}

.icg-subpage #contents .flex2colum_half > :is(.flexleft, .flexright) {
    box-sizing: border-box;
    width: calc(50% - 12px);
    padding: 0;
}

.icg-subpage #contents .flex2colum_half + .flex2colum_half {
    margin-top: 28px;
}

.icg-subpage #contents .etcheader1 {
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--sub-blue);
    color: var(--sub-ink);
    font-size: 20px;
    font-weight: 700;
}

.icg-subpage #contents .findWrap {
    box-sizing: border-box;
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--sub-border);
    border-radius: 16px;
    background: var(--sub-bg);
}

.icg-subpage #contents .findIDPWguide {
    margin-top: 22px;
    color: var(--sub-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.icg-subpage #contents .loginInputBox {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border: 1px solid #c9d8eb;
    border-radius: 9px;
    background: #fff;
    color: var(--sub-ink);
    font-size: 16px;
}

.icg-subpage #contents :is(.flexleft, .flexright) {
    min-width: 0;
}

.icg-subpage #contents img {
    max-width: 100%;
}

.icg-subpage #contents .searchkeywordWrap {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--sub-border);
    border-radius: 12px;
    background: var(--sub-tint);
    color: var(--sub-ink);
}

.icg-subpage #contents .searchresultWrap {
    margin-top: 10px;
    padding: 16px 18px;
    border: 1px solid var(--sub-border);
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.icg-subpage #contents .searchresult_subject {
    color: var(--sub-ink);
    line-height: 1.5;
}

.icg-subpage #contents :is(.searchresult_url, .searchresult_regdate, .bbs_listname, .bbs_listdate, .bbs_listno) {
    color: var(--sub-muted);
    font-size: 14px;
}

.icg-subpage #contents :is(.bbs_listheader, .bbs_listheader_reg, .bbs_listheader_hit) {
    background: var(--sub-tint);
    color: var(--sub-ink);
    font-size: 14px;
    font-weight: 700;
}

.icg-subpage #contents .bbs_listSubject {
    padding-block: 12px;
    color: var(--sub-ink);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.icg-subpage #contents :is(.bbs_listSubject, .searchresult_subject) a:hover {
    color: var(--sub-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.icg-subpage #contents .loginWrap {
    width: min(100%, 860px);
    padding-block: 0;
}

.icg-subpage #contents .loginWrap :is(.flexleft, .flexright) {
    box-sizing: border-box;
    padding: clamp(16px, 2.5vw, 28px);
    border: 1px solid var(--sub-border);
    border-radius: 16px;
    background: var(--sub-bg);
}

.icg-subpage #contents :is(.loginWrap, .searchresultWrap) :is(input[type="text"], input[type="password"], select) {
    max-width: 100%;
    border-color: #c9d8eb;
    border-radius: 8px;
}

.icg-subpage #contents .loginWrap .btn-login {
    background: var(--sub-blue);
    border-radius: 10px;
}

.icg-subpage #footer {
    padding: 0 var(--sub-gutter) 24px;
    border-top: 1px solid var(--sub-border);
    background: #edf3fa;
    color: var(--sub-muted);
    text-align: center;
}

.icg-subpage #footer nav {
    height: auto;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--sub-border) !important;
    background: transparent;
}

.icg-subpage #footer .container {
    width: min(100%, 960px);
}

.icg-subpage #footer nav .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 22px;
}

.icg-subpage #footer nav ul li a {
    padding: 0;
    color: var(--sub-ink);
    font-size: 14px;
    line-height: 44px;
}

.icg-subpage #footer nav ul li a.text_blue {
    color: var(--sub-blue);
    font-weight: 700;
}

.icg-subpage #footer nav ul li a::after {
    display: none;
}

.icg-subpage #footer > .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icg-subpage #footer .container .footerlogo {
    flex-basis: auto;
}

.icg-subpage #footer .footerlogo img {
    width: 128px;
    height: auto;
}

.icg-subpage #footer address {
    max-width: 100%;
    font-size: 14px;
    overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
    .icg-subpage #icgheader .m_menu_open .gnb ul > li:focus-within > div {
        display: block;
    }

    .icg-subpage #icgheader .m_menu_open .gnb {
        background: #fff;
        box-shadow: 0 3px 12px #142d4e14;
    }

    .icg-subpage #icgheader .m_menu_open .gnb .ul-wrap {
        width: min(1180px, 100%) !important;
    }

    .icg-subpage #icgheader .m_menu_open .gnb ul > li > a span {
        color: var(--sub-ink);
        font-size: 15px;
        font-weight: 650;
    }

    .icg-subpage #icgheader .m_menu_open .gnb ul > li:hover > a span {
        color: var(--sub-blue);
    }
}

@media (max-width: 720px) {
    .icg-subpage #contents .sub-board-list,
    .icg-subpage #contents .sub-board-list > tbody {
        display: block;
        width: 100%;
    }

    .icg-subpage #contents .sub-board-list tr {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) 60px;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 48px;
    }

    .icg-subpage #contents .sub-board-list td {
        min-width: 0;
    }

    .icg-subpage #contents .sub-board-list tr:has(> td[colspan]) {
        display: block;
        min-height: 1px;
    }

    .icg-subpage #contents .sub-board-list td[colspan] {
        display: block;
        width: 100%;
        padding: 0;
    }

    .icg-subpage #contents .sub-board-search {
        width: 100%;
    }

    .icg-subpage #contents .sub-board-search tr {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
    }

    .icg-subpage #contents .sub-board-search td {
        display: block;
        min-width: 0;
        padding: 0 !important;
    }

    .icg-subpage #contents .sub-board-search td:nth-child(2) {
        flex: 1;
    }

    .icg-subpage #contents .sub-board-search .bbsselectbox {
        width: 80px;
    }

    .icg-subpage #contents .sub-board-search .bbssearchbox {
        width: 100%;
    }

    .icg-subpage .icgquickmenubottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .icg-subpage .icgquickmenubottom a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 5px);
    }
    .icg-subpage .lnb .container {
        display: flex;
        align-items: stretch;
        width: 100%;
    }

    .icg-subpage .lnb .container > .home {
        flex: 0 0 44px;
        width: 44px;
    }

    .icg-subpage .lnb .container > ul {
        display: flex;
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .icg-subpage .lnb .container > ul > li {
        flex: 1;
        min-width: 0;
        width: auto !important;
    }

    .icg-subpage .lnb .container > ul > li > a {
        padding-left: 10px;
        padding-right: 24px;
        font-size: 14px;
    }

    .icg-subpage #contents .formRowWrap {
        flex-direction: column;
        gap: 8px;
    }

    .icg-subpage #contents .formRowLeft {
        flex-basis: auto;
        padding-top: 0;
    }

    .icg-subpage #contents .sub-board-list td:first-child {
        width: 32px;
        padding-inline: 3px;
    }

    .icg-subpage #contents .sub-board-list td.bbs_listname,
    .icg-subpage #contents .sub-board-list td.bbs_listheader:nth-child(3) {
        width: 60px;
        padding-inline: 3px;
    }

    .icg-subpage #contents .mtstable td {
        padding: 8px 5px;
        font-size: 14px;
    }
    .icg-subpage .sub-masthead {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 0;
    }

    .icg-subpage .sub-brand img {
        width: 128px;
    }

    .icg-subpage #contents .flex2colum_half > :is(.flexleft, .flexright) {
        width: 100%;
        margin: 0;
    }

    .icg-subpage #contents .findWrap {
        padding: 16px;
    }
    .icg-subpage #contents .bbsOutline {
        border-radius: 16px;
    }

    .icg-subpage #contents .loginWrap .flex2colum_half {
        display: grid;
        gap: 12px;
    }

    .icg-subpage #contents .loginWrap :is(.flexleft, .flexright) {
        width: 100%;
        margin: 0;
    }

    .icg-subpage #contents :is(.bbs_listname, .bbs_listdate, .bbs_listno) {
        width: auto;
        overflow-wrap: anywhere;
    }

    .icg-subpage #contents .searchresultWrap {
        padding: 12px;
    }
}

/* The shared masthead is in normal flow; no offset for the retired navigation. */
.icg-subpage #scontent { padding-top: 0; }
