@charset "utf-8";

/* ==========================================================================
   윤리경영 & 사이버 제보센터 (Ethics Management & Cyber Reporting)
   ========================================================================== */

/* Main Container */
.ethics_wrap {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

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

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

/* Tab Navigation */
.ethics_tab_wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.ethics_tab_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
}

.ethics_tab_btn {
    padding: 24px 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    color: #777777;
    background: #ffffff;
    transition: all 0.25s ease;
    user-select: none;
}

.ethics_tab_btn + .ethics_tab_btn {
    border-left: 1px solid #e2e2e2;
}

.ethics_tab_btn.active {
    color: #ffffff;
    background: #1B5FC0;
}

.ethics_tab_btn:hover:not(.active) {
    background: #f8fafc;
    color: #1B5FC0;
}

/* Tab Content Visibility */
.ethics_tab_content {
    display: none;
}

.ethics_tab_content.active {
    display: block;
}

/* --------------------------------------------------------------------------
   1. 윤리경영 (Ethics Management) Section
   -------------------------------------------------------------------------- */
.ethics_hero_section {
    position: relative;
    margin: 40px 0;
    background-color: #0b1d38;
    overflow: hidden;
}

.ethics_hero_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ethics_hero_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.ethics_hero_inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.ethics_hero_intro {
    flex: 0 0 360px;
    text-align: left;
    padding-top: 40px;
}

.ethics_hero_intro h3 {
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.ethics_hero_intro .subtitle {
    font-size: 17px;
    font-weight: 600;
    color: #8fb8f0;
    margin-top: 10px;
}

.ethics_hero_intro .desc_text {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 24px;
    word-break: keep-all;
}

.ethics_hero_diagram {
    flex: 1;
    min-width: 0;
}

.ethics_pyramid_wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 800 / 780;
    margin: 0 auto;
}

.ethics_pyramid_svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pyramid_center_label {
    position: absolute;
    left: 50%;
    top: 53%;
    width: 340px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pyramid_center_title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.pyramid_center_sub {
    font-size: 15px;
    font-weight: 600;
    color: #bcd8ff;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.pyramid_node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pyramid_node_top {
    left: 50%;
    top: 13.5%;
    width: 280px;
    transform: translate(-50%, -50%);
}

.pyramid_node_left {
    left: 15.35%;
    top: 74.36%;
    width: 270px;
    transform: translate(-50%, -52px);
}

.pyramid_node_right {
    left: 84.65%;
    top: 74.36%;
    width: 270px;
    transform: translate(-50%, -52px);
}

.node_icon_box {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #eaf1fb);
    border: 1px solid #dbe4f2;
    box-shadow: 0 10px 26px rgba(27,95,192,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* 위쪽(경제적 책임) 노드만 아이콘이 글 아래에 놓인다. */
.pyramid_node_top .node_icon_box {
    margin-top: 16px;
}

.node_title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.node_desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    word-break: keep-all;
}

/* Chapter Grid Section */
.chapter_section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.chapter_section_title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1c1c1c;
    margin-bottom: 50px;
}

.chapter_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.chapter_card {
    min-width: 0;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.chapter_card:hover {
    box-shadow: 0 14px 34px rgba(15,47,92,0.10);
    border-color: #d7e4f7;
    transform: translateY(-4px);
}

.chapter_card_header {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.chapter_card_title {
    font-size: 19px;
    font-weight: 800;
    color: #1c1c1c;
    line-height: 1.3;
    word-break: keep-all;
}

.chapter_card_divider {
    height: 1px;
    background: #ececec;
}

.chapter_card_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapter_card_item {
    font-size: 16px;
    color: #555555;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

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

/* 윤리강령 전문 링크 (/intro/ethics/code.jsp) */
.chapter_more_wrap {
    margin-top: 56px;
    text-align: center;
}

/* basic.css 의 a:link{color:inherit} 보다 우선하도록 부모 클래스까지 함께 지정한다. */
.chapter_more_wrap .chapter_more_link,
.chapter_more_wrap .chapter_more_link:link,
.chapter_more_wrap .chapter_more_link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 280px;
    padding: 20px 44px;
    box-sizing: border-box;
    border: 1px solid #1B5FC0;
    border-radius: 999px;
    background: #1B5FC0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(27,95,192,0.20);
    transition: all 0.25s ease;
}

.chapter_more_wrap .chapter_more_link::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.chapter_more_wrap .chapter_more_link:hover {
    background: #164e9e;
    border-color: #164e9e;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(27,95,192,0.30);
    transform: translateY(-2px);
}

.chapter_more_wrap .chapter_more_link:hover::after {
    transform: translateX(4px);
}

.chapter_more_wrap .chapter_more_link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(27,95,192,0.24);
}

/* --------------------------------------------------------------------------
   2. 제보하기 (Cyber Reporting) Section
   -------------------------------------------------------------------------- */
.report_section_wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 20px 0;
}

.report_intro_title {
    font-size: 32px;
    font-weight: 900;
    color: #1c1c1c;
    margin-bottom: 12px;
}

.report_intro_desc {
    font-size: 17px;
    color: #555555;
    line-height: 1.7;
    max-width: 760px;
}

.report_cards_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.report_card {
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.report_card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: #d7e4f7;
}

.report_card_img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.report_card_body {
    padding: 24px 22px;
}

.report_card_title {
    font-size: 18px;
    font-weight: 800;
    color: #1c1c1c;
}

.report_card_divider {
    height: 1px;
    background: #ececec;
    margin: 14px 0;
}

.report_card_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report_card_item {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
}

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

.report_card_text {
    font-size: 15px;
    color: #555555;
    line-height: 1.65;
    word-break: keep-all;
}

/* Report Form Outer Container */
.report_form_outer {
    width: 100%;
    background: #f6f6f7;
    padding: 56px 20px;
    box-sizing: border-box;
    margin-top: 56px;
}

.report_form_heading {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #1c1c1c;
    margin-bottom: 36px;
}

.report_form_inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_group {
    display: flex;
    flex-direction: column;
}

.form_label {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.form_label .req {
    color: #c0392b;
}

.form_control {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1c1c1c;
    background: #ffffff;
    transition: border-color 0.2s;
}

.form_control:focus {
    outline: none;
    border-color: #1B5FC0;
}

textarea.form_control {
    min-height: 160px;
    resize: vertical;
}

/* File Upload Controls */
.file_upload_row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn_file_select {
    padding: 10px 18px;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    background: #ffffff;
    color: #555555;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn_file_select:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.file_name_txt {
    font-size: 13px;
    color: #999999;
}

/* Captcha Controls */
.captcha_row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 자동등록방지 : 서버(/intro/ethics/captcha.jsp)에서 생성한 이미지 */
.captcha_code_box {
    width: 130px;
    height: 48px;
    flex: 0 0 130px;
    border-radius: 8px;
    border: 1px solid #e2e6ec;
    object-fit: cover;
    display: block;
    user-select: none;
}

.btn_captcha_refresh {
    width: 44px;
    height: 44px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #ffffff;
    color: #777777;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn_captcha_refresh:hover {
    background: #f1f5f9;
    color: #1B5FC0;
}

/* Privacy Box */
.privacy_policy_box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 22px;
    font-size: 13px;
    color: #555555;
    line-height: 1.8;
    border: 1px solid #e2e2e2;
}

.privacy_policy_title {
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 6px;
}

/* 개인정보처리방침 전문 링크 (/member/policy.jsp - 관리자 약관관리 연동) */
.privacy_policy_more {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
}
.privacy_policy_more a {
    color: #f26522;
    font-weight: 600;
    text-decoration: underline;
}
.privacy_policy_more a:hover {
    opacity: 0.8;
}

/* Checkbox Label Row */
.agree_checkbox_row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-top: 4px;
}

.custom_checkbox {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1.5px solid #c7cdd6;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.agree_checkbox_row.checked .custom_checkbox {
    border-color: #1B5FC0;
    background: #1B5FC0;
}

.custom_checkbox_check {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    display: none;
}

.agree_checkbox_row.checked .custom_checkbox_check {
    display: block;
}

.agree_label_txt {
    font-size: 16px;
    color: #555555;
}

.agree_label_txt .highlight {
    color: #1B5FC0;
    font-weight: 700;
}

/* Submit Action Button */
.submit_btn_wrap {
    text-align: center;
    margin-top: 16px;
}

.btn_submit_report {
    padding: 16px 72px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    background: #c3cee0;
    cursor: not-allowed;
    transition: all 0.25s ease;
}

.btn_submit_report.enabled {
    background: #1B5FC0;
    cursor: pointer;
}

.btn_submit_report.enabled:hover {
    background: #154ca0;
    box-shadow: 0 6px 18px rgba(27,95,192,0.3);
}

/* --------------------------------------------------------------------------
   Responsive Layout Styles
   -------------------------------------------------------------------------- */
/* 도형(삼각형)이 들어가는 폭이 좁아지면 글 영역과 위아래로 나눠 놓는다.
   좌·우 노드는 도형 폭의 15.35% / 84.65% 지점에 놓이므로, 도형 폭이 860px 아래로
   내려가면 노드가 화면 밖으로 밀려 잘리기 시작한다. */
@media screen and (max-width: 1360px) {
    .ethics_hero_inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 60px;
    }

    .ethics_hero_intro {
        flex: 0 0 auto;
        width: 100%;
        max-width: 820px;
        text-align: center;
        padding-top: 0;
    }

    /* 세로로 쌓이면 교차축(가로)이 컨텐츠 크기로 줄어드는데,
       도형 영역은 자식이 전부 absolute 라 폭이 0 이 되어 통째로 사라진다.
       폭을 직접 잡아 줘야 aspect-ratio 로 높이도 살아난다. */
    .ethics_hero_diagram {
        flex: 0 0 auto;
        width: 100%;
        max-width: 900px;
    }

    .pyramid_center_label {
        width: 300px;
    }

    .pyramid_center_title {
        font-size: 27px;
    }

    .pyramid_node_top,
    .pyramid_node_left,
    .pyramid_node_right {
        width: 240px;
    }

    .node_title {
        font-size: 18px;
    }

    .node_desc {
        font-size: 14px;
    }
}

@media screen and (max-width: 1200px) {
    .chapter_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .report_cards_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* 태블릿·모바일
   PC 와 같은 배치(위 / 좌하 / 우하)를 유지하되, 절대배치로는 서로 겹치므로
   [위] / [도형] / [좌하 | 우하] 세 줄짜리 그리드 칸에 나눠 담는다.
   좁은 폭에서 도형이 너무 작아지지 않도록 viewBox 의 좌우 여백도 잘라 낸다. */
@media screen and (max-width: 900px) {
    .ethics_hero_diagram {
        max-width: 460px;
    }

    .ethics_pyramid_wrap {
        max-width: 460px;
        aspect-ratio: auto;
        display: grid;
        /* minmax(0,1fr) : 도형이 칸보다 넓어도 칸이 따라 늘어나지 않게 한다. */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "top   top"
            "shape shape"
            "left  right";
        column-gap: 12px;
        row-gap: 10px;
    }

    /* 노드로 이어지던 점선은 잘려 나가므로 감춘다. */
    .pyramid_links {
        display: none;
    }

    /* viewBox 800x780 중 도형이 실제로 그려진 x 160~640 / y 200~570 만 남긴다.
       잘라 낸 만큼 음수 마진으로 당겨서, 칸 높이가 도형 높이(폭의 77.08%)와 같아진다. */
    .ethics_pyramid_svg {
        grid-area: shape;
        position: static;
        min-width: 0;
        width: 166.667%;
        height: auto;
        margin: -41.67% 0 -43.75% -33.333%;
        clip-path: inset(25.64% 20% 26.92% 20%);
    }

    /* 도형 한가운데보다 조금 아래(viewBox y=413)에 놓는다.
       가운데 정렬이라 위 마진의 절반만큼 내려간다. */
    .pyramid_center_label {
        grid-area: shape;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        align-self: center;
        justify-self: center;
        width: 58%;
        margin-top: 11.67%;
    }

    .pyramid_center_title {
        font-size: clamp(15px, 4.4vw, 21px);
    }

    .pyramid_center_sub {
        font-size: clamp(9px, 2.4vw, 12px);
        margin-top: 4px;
        letter-spacing: 0;
    }

    .pyramid_node,
    .pyramid_node_top,
    .pyramid_node_left,
    .pyramid_node_right {
        position: static;
        left: auto;
        top: auto;
        width: auto;
        transform: none;
    }

    .pyramid_node_top {
        grid-area: top;
        max-width: 300px;
        justify-self: center;
    }

    /* 하단 두 노드는 바깥쪽으로 붙여, 아이콘 중심이 삼각형 밑변 꼭짓점
       (도형 폭의 13.9% / 86.1% 지점) 바로 아래에 오도록 맞춘다.
       칸 폭이 도형 폭의 절반이므로 13.9% → 28.5%, 여기서 아이콘 절반(28px)을 뺀다. */
    /* 꼭짓점과의 간격을 위쪽 노드와 같게 맞춘다.
       도형 칸은 밑변 아래로 그림자 영역(도형 폭의 10.42%)을 품고 있는데
       위쪽은 꼭짓점 위 여백이 4.17% 뿐이라, 차액 6.25% 만큼 끌어올린다.
       (칸 폭이 도형 폭의 절반이므로 6.25% → 12.5%) */
    .pyramid_node_left,
    .pyramid_node_right {
        margin-top: calc(-12.5% - 0.75px);
    }

    .pyramid_node_left {
        grid-area: left;
        align-items: flex-start;
        text-align: left;
        padding-left: calc(28.5% - 28px);
    }

    .pyramid_node_right {
        grid-area: right;
        align-items: flex-end;
        text-align: right;
        padding-right: calc(28.5% - 28px);
    }

    .node_icon_box {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .pyramid_node_top .node_icon_box {
        margin-top: 10px;
        margin-bottom: 0;
    }

    .node_icon_box svg {
        width: 28px;
        height: 28px;
    }

    .node_title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .node_desc {
        font-size: 12.5px;
        line-height: 1.5;
    }
}

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

    .ethics_tab_btn {
        padding: 18px 0;
        font-size: 15px;
    }

    .ethics_hero_inner {
        padding: 48px 20px 44px;
        gap: 30px;
    }

    .ethics_hero_intro h3 {
        font-size: 32px;
    }

    .ethics_hero_intro .desc_text {
        font-size: 14px;
    }

    .chapter_grid {
        grid-template-columns: 1fr;
    }

    .chapter_section_title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .chapter_more_wrap {
        margin-top: 36px;
    }

    .chapter_more_wrap .chapter_more_link,
    .chapter_more_wrap .chapter_more_link:link,
    .chapter_more_wrap .chapter_more_link:visited {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        padding: 17px 24px;
        font-size: 15px;
    }

    .report_cards_grid {
        grid-template-columns: 1fr;
    }

    .report_intro_title {
        font-size: 24px;
    }

    .report_intro_desc {
        font-size: 14px;
    }

    .report_form_heading {
        font-size: 22px;
    }

    .btn_submit_report {
        width: 100%;
        padding: 16px 0;
    }
}
