@charset "utf-8";

/* ==========================================================================
   윤리강령 전문 (Code of Conduct - Full Text) Stylesheet
   /intro/ethics/code.jsp 전용
   ========================================================================== */

.ecode_wrap {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Page Header */
.ecode_header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 56px 20px 0;
    text-align: center;
}

.ecode_header h2 {
    font-size: 38px;
    font-weight: 900;
    color: #1c1c1c;
    margin: 0;
}

.ecode_header_line {
    height: 2px;
    background: #1c1c1c;
    max-width: 960px;
    margin: 36px auto 0;
}

/* Intro Summary */
.ecode_intro_box {
    max-width: 960px;
    margin: 32px auto 0;
    padding: 0 20px;
    text-align: center;
}

.ecode_intro_title {
    font-size: 19px;
    font-weight: 800;
    color: #1B5FC0;
}

.ecode_intro_sub {
    font-size: 15px;
    color: #888888;
    margin-top: 10px;
}

/* 전문(前文) : 윤리강령 선언문 */
.ecode_preamble {
    max-width: 960px;
    margin: 32px auto 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 30px;
    text-align: left;
}

.ecode_preamble p {
    font-size: 15.5px;
    color: #444444;
    line-height: 1.9;
    margin: 0 0 12px;
    word-break: keep-all;
}

.ecode_preamble p:last-child {
    margin-bottom: 0;
}

.ecode_divider {
    height: 1px;
    background: #ececec;
    max-width: 960px;
    margin: 32px auto 0;
}

/* Body Container */
.ecode_body {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 24px 40px;
    text-align: left;
}

/* Chapter Heading (I ~ VI) */
.ecode_chapter_head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 56px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1B5FC0;
}

.ecode_chapter_badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1B5FC0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ecode_chapter_title {
    font-size: 24px;
    font-weight: 800;
    color: #1c1c1c;
    word-break: keep-all;
}

/* Section Block (1. 2. 3. ...) */
.ecode_section {
    margin-bottom: 28px;
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}

.ecode_section:hover {
    border-color: #d7e4f7;
    box-shadow: 0 6px 18px rgba(27,95,192,0.06);
}

.ecode_section_title {
    font-size: 18px;
    font-weight: 800;
    color: #1c1c1c;
    margin-bottom: 12px;
}

/* Numbered item : (1) (2) ... */
.ecode_item {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
    word-break: keep-all;
}

.ecode_item_mark {
    position: absolute;
    left: 0;
    top: 0;
    color: #1B5FC0;
    font-weight: 700;
}

/* Dash item : 항목이 하나뿐인 절 */
.ecode_dash {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    word-break: keep-all;
}

.ecode_dash::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: #1B5FC0;
    font-weight: 700;
}

/* Sub list : ① ② ③ / 하위 - 항목 */
.ecode_sublist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 16px 30px;
    padding-left: 12px;
    border-left: 2px solid #eef3fb;
}

.ecode_sublist_item {
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    word-break: keep-all;
}

.ecode_sublist_mark {
    position: absolute;
    left: 0;
    top: 0;
    color: #1B5FC0;
    font-weight: 700;
}

/* 시행일 */
.ecode_date_box {
    margin-top: 56px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
}

.ecode_date_txt {
    font-size: 17px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: 1px;
}

.ecode_date_company {
    font-size: 15px;
    color: #666666;
    margin-top: 8px;
}

/* 하단 버튼 */
.ecode_btn_wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 120px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* basic.css 의 a:link{color:inherit} 보다 우선하도록 부모 클래스까지 함께 지정한다. */
.ecode_btn_wrap .ecode_btn_back,
.ecode_btn_wrap .ecode_btn_back:link,
.ecode_btn_wrap .ecode_btn_back:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 16px 32px;
    border-radius: 999px;
    background: #1B5FC0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ecode_btn_wrap .ecode_btn_back:hover {
    background: #164e9e;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(27,95,192,0.24);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ecode_header h2 {
        font-size: 28px;
    }

    .ecode_intro_title {
        font-size: 16px;
    }

    .ecode_preamble {
        padding: 20px 18px;
    }

    .ecode_preamble p {
        font-size: 14px;
    }

    .ecode_chapter_title {
        font-size: 20px;
    }

    .ecode_chapter_badge {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .ecode_section {
        padding: 18px 16px;
    }

    .ecode_section_title {
        font-size: 16px;
    }

    .ecode_item,
    .ecode_dash {
        font-size: 14px;
    }

    .ecode_item {
        padding-left: 26px;
    }

    .ecode_sublist {
        margin-left: 14px;
    }

    .ecode_sublist_item {
        font-size: 13.5px;
    }

    .ecode_btn_wrap {
        padding-bottom: 80px;
    }
}
