/* home */
.section1 {padding-top: 2rem;padding-bottom: 3rem;}
.section1 .main_header{display: flex;justify-content: space-between;align-items: center;margin-bottom: 2rem;}
.section1 .main_header h2{font-size: 2rem;font-weight: bold;}
.section1 .menu0 {display: flex;justify-content: space-between;align-items: center;gap: 3rem;}
.section1 .menu0 li{width: calc((100% - 3rem) / 2);border-radius: 1rem;height: 14rem;}
.section1 .menu0 li:nth-child(1){background: #f7f7f7 url(../img/main-icon-1.png) no-repeat right 2rem bottom 2rem;}
.section1 .menu0 li:nth-child(2){background: #f7f7f7 url(../img/main-icon-2.png) no-repeat right 2rem bottom 2rem;}
.section1 .menu0 li p{font-size: 2rem;font-weight: 600;margin-bottom: 0.5rem;}
.section1 .menu0 li a{font-size: 1.8rem;width: 100%;height: 100%;padding: 3rem;}
.section1 > a{display: flex;justify-content: space-between;align-items: center;background: #FB852E;border-radius: 1rem;color: #fff;height: 70px;font-size: 1.8rem;padding: 0 3rem;margin-top: 3rem;}

.section2 h2{font-size: 2rem;font-weight: bold;margin-bottom: 2rem;}
.section2 .menu1 {display: flex;gap: 1rem;margin-bottom: 2rem;}
.section2 .menu1 li {width: calc((100% - 2rem) / 3);border-radius: 1rem;box-sizing: border-box;height: 10rem;background: #F7F7F7;display: flex;align-items: center;justify-content: center;}
.section2 .menu1 li a{font-size: 1.5rem;font-weight: 600;line-height: 2rem;display: flex;align-items: center;justify-content: center;flex-direction: column;gap:1rem;padding: 1rem;width: 100%;height: 100%;}

.section2 .menu2 li{border-radius: 1rem;padding: 2rem 2.5rem;margin-bottom: 2rem;}
.section2 .menu2 li a{display: flex;align-items: center;justify-content: space-between;}
.section2 .menu2 li .txt{display: flex;flex-direction: column;}
.section2 .menu2 li .txt span{font-size: 1.4rem;color: #464646;margin-bottom: 1rem;}
.section2 .menu2 li .txt strong{font-size: 1.8rem;color: #161616;font-weight: 500;}
.section2 .menu2 li:nth-child(1){background: #daebe3;}
.section2 .menu2 li:nth-child(2){background: #cbe0ff;}
.section2 .menu2 li p{font-size: 1.4rem;border-radius: 2rem;color: #fff;padding: 0.5rem 1.5rem;}
.section2 .menu2 li:nth-child(1) p{background: #5abd8e;}
.section2 .menu2 li:nth-child(2) p{background: #4f94f9;}

.section3 h2{font-size: 2rem;font-weight: bold;margin-bottom: 2rem;}
.section3> a{display: flex;background: #FB852E;justify-content: center;align-items: center;color: #fff;font-size: 1.8rem;height: 5.5rem;border-radius: 1rem;}
.section3 ul{display: flex;justify-content: space-between;align-items: center;gap: 2.5rem;margin-bottom: 2rem;}
.section3 ul li{width: calc((100% - 2.5rem) / 2 );}
.section3 ul li .news_txt{margin-top: 1rem;}
.section3 ul li figure{height: 10rem;width: 100%;margin-bottom: 2rem;}
.section3 ul li figure img{border-radius: 1rem;width: 100%;height: 100%;object-fit: cover;display: block;border-radius: 1rem;}
.section3 ul li a{display: block;}
.section3 ul li h3{font-size: 1.7rem;font-weight: 500;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.section3 ul li p{font-size: 1.5rem;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;margin: 0.8rem 0;}
.section3 ul li span{font-size: 1.4rem;color: #686868;margin-top: 1.8rem;display: block;}

.page_header {position: sticky;top: 0;z-index: 100;display: flex;align-items: center;justify-content: center;height: 8rem;padding: 0 2rem;background-color: #ffffff;border-bottom: 1px solid #e8eaed;}
.page_header a {position: absolute;left: 30px;display: flex;align-items: center;justify-content: center;width: 2rem;height: 2rem;}
.page_header a img {height: 1.5rem;object-fit: contain;}
.page_header h1 {font-size: 17px;font-weight: 600;letter-spacing: -0.3px;color: #1a1a2e;}

.sub_header{display: flex;justify-content: space-between;align-items: center;margin-top: 3rem;}
.sub_header h3{font-size: 1.8rem;font-weight: 600;}
.sub_header span{font-size: 1.4rem;color: #818181;}

.metal_price{margin-top: 2rem;}
.metal_price li{margin-bottom: 2rem;display: flex;justify-content: space-between;align-items: center;padding: 2.5rem;background: #F7F7F7;border-radius: 1rem;}
.metal_price strong{font-size: 1.8rem;}
.metal_price p{font-size: 1.4rem;color: #818181;}
.metal_price span{font-size: 2.3rem;color: #FB852E;margin-left: 0.5rem;}

.content{margin-top: 2rem;}
    .calc_list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 3rem;
    }

    .calc_list li h4 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #222;
        margin: 0 0 1rem 0;
    }

    /* 커스텀 셀렉트 */
    .custom_select {
        position: relative;
        user-select: none;
    }

    .cs_selected {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.7rem 1.6rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        font-size: 14px;
        color: #222;
        transition: border-color 0.15s;
    }

    .cs_selected span {
        color: #999;
        font-size: 1.5rem;
    }

    .cs_selected span.selected {
        color: #222;
        font-size: 1.5rem;
    }

    .cs_selected.open {
        border-color: #f5a623;
        border-radius: 8px 8px 0 0;
    }

    .cs_arrow {
        width: 1.3rem;
        height: 0.8rem;
        transition: transform 0.2s;
        filter: brightness(0) saturate(100%) invert(60%);
    }

    .cs_selected.open .cs_arrow {
        transform: rotate(180deg);
    }

    .cs_options {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border: 1px solid #f5a623;
        border-top: none;
        border-radius: 0 0 8px 8px;
        background: #fff;
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 100;
        max-height: 220px;
        overflow-y: auto;
    }

    .cs_options.open {
        display: block;
    }

    .cs_options li {
        padding: 13px 16px;
        font-size: 14px;
        color: #222;
        cursor: pointer;
        border-bottom: 1px solid #f5f5f5;
        transition: background 0.1s;
    }

    .cs_options li:last-child {
        border-bottom: none;
    }

    .cs_options li:hover {
        background: #fff8ee;
    }

    .cs_options li.active {
        color: #f5a623;
        font-weight: 600;
    }

    /* 비활성 셀렉트 */
    .custom_select.disabled .cs_selected {
        background: #f9f9f9;
        cursor: default;
        color: #bbb;
    }

    /* 중량 입력 */
    .calc_list input[type="number"] {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        color: #222;
        background: #fff;
        outline: none;
        box-sizing: border-box;
    }

    .calc_list input[type="number"]:focus {
        border-color: #f5a623;
    }

    .calc_list input[type="number"]::placeholder {
        color: #999;
    }

    .calc_list input[type="number"]::-webkit-inner-spin-button,
    .calc_list input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
    }

    /* 예상금액 */
    .result_box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f5a623;
        border-radius: 8px;
        padding: 16px 20px;
    }

    .result_box p {
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        margin: 0;
    }

    .result_box span {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        opacity: 0.85;
    }

.chart1, .chart2{margin-top: 2rem;}

.intro h5{font-size: 1.5rem;color: #f5a623;font-weight: 500;margin-bottom: 1rem;}
.intro p{background: #fff5ef;padding: 2rem;border-radius: 0.5rem;line-height: 2rem;font-size: 1.3rem;color:#464646;margin-bottom: 3rem;}

.feature{margin-bottom: 3rem;}
.feature h5{font-size: 1.5rem;font-weight: 500;margin-bottom: 1.5rem;}
.feature h6{font-size: 1.4rem;margin-bottom: 0.5rem;font-weight: 500;}
.feature p{line-height: 2.5rem;font-size: 1.3rem;color:#464646;margin-bottom: 1rem;}

.categories h5{font-size: 1.5rem;font-weight: 500;margin-bottom: 1.5rem;}
.categories h6{font-size: 1.4rem;margin-bottom: 0.5rem;font-weight: 500;}
.categories p{line-height: 2.5rem;font-size: 1.3rem;color:#464646;margin-bottom: 1rem;}

/* 분류기준 표 */
.category_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 1.4rem;
}

.category_table th {
    background: #d6d6d6;
    color: #3f3f3f;
    padding: 1.2rem 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.4rem;
}

.category_table td {
    padding: 1.2rem 0.4rem;
    border: 1px solid #e8eaed;
    vertical-align: middle;
    text-align: center;
    line-height: 2rem;
    font-size: 1.2rem;
    color: #3f3f3f;
}

.category_table td:last-child {
    text-align: left;
}

.category_table td ul li {
    list-style: none;
    padding-left: 1rem;
    position: relative;
    line-height: 2.2rem;
    color: #3f3f3f;
    font-size: 1.2rem;
}

.category_table td ul li::before {
    content: '·';
    position: absolute;
    left: 0;
}

/* 뉴스 */

.news_container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.03rem;
    margin-top: 3rem;
    margin-bottom: 1.6rem;
}

/* 뉴스 리스트 */
.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.news-list li a {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    text-decoration: none;
    padding: 1.8rem 0;
    border-bottom: 1px solid #f0f2f5;
}

.news-list li:last-child a {
    border-bottom: none;
}

/* 썸네일 */
.news-list figure {
    width: 16rem;
    height: 10rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #eef0f3;
    flex-shrink: 0;
    margin: 0;
}

.news-list figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 텍스트 영역 */
.news-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.2rem;
    position: relative;
    padding-bottom: 2.4rem;
}

.news-txt h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    letter-spacing: -0.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-txt p {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-txt span {
    font-size: 1.3rem;
    color: #aab0bc;
    position: absolute;   
    bottom: -3rem;             
    right: 0;           
    display: block;
}

.news-empty {
    text-align: center;
    padding: 6rem 0;
    color: #8a909e;
    font-size: 1.4rem;
}

/* 페이지네이션 */
.pagenation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin: 3rem 0;
}

.pagenation .page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pagenation .page-num:hover {
    background: #fff0e5;
    color: #FB852E;
}

.pagenation .page-num.active {
    background: #FB852E;
    color: #fff;
    font-weight: 700;
}

.pagenation .page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.6rem;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.pagenation .page-arrow:hover {
    background: #fff0e5;
    color: #FB852E;
}

.pagenation .page-arrow.disabled {
    color: #ccc;
    pointer-events: none;
}

.pagenation .page-arrow img {
    width: 0.8rem;
    object-fit: contain;
}

/* FAQ */
.faq_content{margin-top: 0;}
.faq_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.faq_list li {
    border: 1px solid #e8eaed;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.faq_list li .question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
}

.faq_list li .question::before {
    content: 'Q';
    color: #FB852E;
    font-size: 1.6rem;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.faq_list li .question p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a2e;
    flex: 1;
    line-height: 2.1rem;
}

.faq_list li .question::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    margin-left: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq_list li.open .question::after {
    transform: rotate(-135deg);
}

.faq_list li .answer {
    display: none;
    padding: 1.8rem 2.2rem;
    background: #fafafa;
    border-top: 1px solid #f0f2f5;
}

.faq_list li.open .answer {
    display: block;
}

.faq_list li .answer p {
    font-size: 1.4rem;
    color: #464646;
    line-height: 2.4rem;
}