/* =========================================================================
   삼우건축 고객센터 - 공지사항 스킨 스타일
   ========================================================================= */

/* Accessibility */
.sound_only {
    display: none !important;
}

/* ===== Hero Banner Section ===== */
.cs_hero_section {
    width: 100%;
    height: 400px;
    background-image: url('/theme/samwoo/images/pc/customer/main.png');
    background-size: auto;
    background-position: center top;
    background-repeat: no-repeat;
}

.cs_hero_section picture {
    display: none; /* Hide default responsive picture on PC */
}

.cs_hero_label {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #c9a96e;
    background: rgba(201, 169, 110, 0.15);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.cs_hero_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ===== Tab Navigation ===== */
.cs_tab_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 0;
}

.cs_tab_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #222;
    margin: 0 0 30px 0;
    letter-spacing: -0.03em;
}

.cs_tab_nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.cs_tab_link {
    flex: 1;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.cs_tab_link:hover {
    color: #555;
}

.cs_tab_link.active {
    color: #927554;
    font-weight: 700;
    border-bottom-color: #927554;
}

/* ===== Content Container ===== */
.cs_content_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 100px;
}

.cs_section_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 40px 0 30px 0;
    letter-spacing: -0.02em;
}

/* ===== Count + Search Row ===== */
.cs_toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cs_total_count {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.cs_search_form {
    display: flex;
    align-items: center;
}

.cs_search_box {
    position: relative;
    width: 320px;
}

.cs_search_input {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: none;
    border-radius: 30px;
    outline: none;
    color: #333;
    box-sizing: border-box;
    background: #f5f5f5;
    transition: all 0.2s;
}

.cs_search_input::placeholder {
    color: #999;
}

.cs_search_input:focus {
    background: #eaeaea;
}

.cs_search_btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* ===== Notice List Table ===== */
.cs_notice_table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #3d3532; /* Match the FAQ header border color */
}

.cs_notice_table thead {
    background: #faf9f7; /* Subtle warm light gray background for header row */
}

.cs_notice_table thead th {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    padding: 20px 12px;
    border-bottom: 1px solid #e5dfd9;
    text-align: center;
}

.cs_notice_table thead th.th_subject {
    text-align: left; /* Subject aligns left in the design */
    padding-left: 20px;
}

.cs_notice_table tbody tr {
    border-bottom: 1px solid #e5dfd9;
    transition: background 0.15s;
    cursor: pointer;
}

.cs_notice_table tbody tr:hover {
    background: #faf8f6;
}

.cs_col_num {
    width: 8%;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    padding: 20px 12px;
}

.cs_col_num.is_notice {
    color: #927554;
    font-weight: 700;
}

.cs_col_subject {
    width: 56%;
    padding: 20px 12px 20px 20px;
    text-align: left;
}

.cs_subject_link {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.cs_subject_link:hover {
    color: #927554;
}

.cs_col_name {
    width: 16%;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    padding: 20px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs_col_date {
    width: 20%;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    padding: 20px 12px;
}

/* ===== Pagination ===== */
.cs_pagination_wrap {
    margin-top: 50px;
}

.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.pg_wrap .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #927554;
    color: #fff;
    border-radius: 50%;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 3px;
}

.pg_wrap .pg_page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #888;
    border-radius: 50%;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0 3px;
}

.pg_wrap .pg_page:hover {
    background: #f5f0eb;
    color: #333;
}

.pg_wrap .pg_start,
.pg_wrap .pg_prev,
.pg_wrap .pg_next,
.pg_wrap .pg_end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 34px;
    line-height: 34px;
    border-radius: 17px !important;
    padding: 0 12px !important;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    background: #f5f0eb;
    border: 1px solid #e8e2dc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.pg_wrap .pg_start:hover,
.pg_wrap .pg_prev:hover,
.pg_wrap .pg_next:hover,
.pg_wrap .pg_end:hover {
    background: #927554;
    color: #fff;
    border-color: #927554;
}

/* ===== Admin Write Button ===== */
.cs_admin_write_wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.cs_admin_write_btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #927554;
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    text-decoration: none;
    transition: all 0.2s;
}

.cs_admin_write_btn:hover {
    background: #7a5f43;
}

/* =========================================================================
   View Page (상세보기)
   ========================================================================= */
.cs_view_header {
    border-top: 2px solid #333;
    padding-top: 24px;
    margin-bottom: 40px;
}

.cs_view_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs_view_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.cs_view_date {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #888;
}

.cs_view_content {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
    word-break: break-all;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.cs_view_content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px 0;
}

/* Previous / Next Navigation */
.cs_view_nav_list {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.cs_view_nav_list .nav_item {
    display: flex;
    align-items: center;
    padding: 18px 12px;
}

.cs_view_nav_list .nav_item + .nav_item {
    border-top: 1px solid #f5f5f5;
}

.cs_view_nav_list .nav_label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    width: 70px;
    flex-shrink: 0;
}

.cs_view_nav_list .nav_link {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.cs_view_nav_list .nav_item:hover .nav_link {
    color: #927554;
}

/* View Actions */
.cs_view_actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.cs_back_list_btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #927554;
    text-decoration: none;
    border-radius: 6px;
    padding: 14px 60px;
    transition: all 0.2s;
}

.cs_back_list_btn:hover {
    background: #7a5f43;
}

.cs_view_admin_opts {
    display: flex;
    gap: 8px;
}

.cs_admin_opt_btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.cs_admin_opt_btn:hover {
    border-color: #927554;
    color: #927554;
}

/* =========================================================================
   Write Page (글쓰기)
   ========================================================================= */
.cs_write_wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 44px 40px;
    box-sizing: border-box;
}

.cs_write_wrap .write_div {
    margin-bottom: 22px;
}

.cs_write_wrap .write_label {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.cs_write_wrap .write_label strong {
    color: #e74c3c;
    margin-left: 2px;
}

.cs_write_wrap .frm_input {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 13px 18px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #faf8f6;
    color: #333;
}

.cs_write_wrap .frm_input:focus {
    background: #fff;
    border-color: #927554;
}

.cs_write_wrap .wr_content {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #faf8f6;
    box-sizing: border-box;
}

.cs_write_wrap .wr_content:focus-within {
    background: #fff;
    border-color: #927554;
}

.cs_file_upload_box {
    background: #faf8f6;
    border: 1px dashed #d0ccc6;
    border-radius: 6px;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs_file_upload_box input[type="file"] {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.cs_write_wrap .btn_confirm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.cs_write_wrap .btn_confirm .btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 44px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cs_write_wrap .btn_confirm .btn_cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    text-align: center;
}

.cs_write_wrap .btn_confirm .btn_cancel:hover {
    background: #f5f0eb;
}

.cs_write_wrap .btn_confirm .btn_submit {
    background: #927554;
    border: 1px solid #927554;
    color: #fff;
}

.cs_write_wrap .btn_confirm .btn_submit:hover {
    background: #7a5f43;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
    .cs_hero_inner {
        padding: 0 30px;
    }
    .cs_tab_wrap {
        padding: 50px 30px 0;
    }
    .cs_content_wrap {
        padding: 40px 30px 80px;
    }
}

@media (max-width: 1024px) {
    .cs_hero_section {
        height: auto;
        background-image: none;
    }

    .cs_hero_section picture {
        display: block;
    }

    .cs_hero_section picture img {
        width: 100%;
        height: auto;
        display: block;
    }

    .cs_tab_wrap {
        padding: 40px 20px 0;
    }

    .cs_tab_title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .cs_tab_link {
        font-size: 15px;
        padding: 14px 0;
    }

    .cs_content_wrap {
        padding: 30px 20px 60px;
    }

    .cs_section_title {
        font-size: 24px;
        margin: 30px 0 20px 0;
    }

    .cs_toolbar {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .cs_search_input {
        padding: 10px 44px 10px 18px;
        font-size: 13px;
    }

    .cs_total_count {
        font-size: 13px;
        color: #666;
    }

    .cs_search_box {
        width: 100%;
    }

    .cs_col_num {
        width: 16%;
        padding: 16px 6px;
        font-size: 13px;
    }

    .cs_col_subject {
        width: 54%;
        padding: 16px 6px;
    }

    .cs_subject_link {
        font-size: 14px;
    }

    .cs_col_date {
        width: 30%;
        padding: 16px 6px;
        font-size: 13px;
    }

    .cs_notice_table thead th {
        font-size: 13px;
        padding: 12px 6px;
    }

    .cs_view_title {
        font-size: 17px;
    }

    .cs_view_content {
        font-size: 15px;
    }

    .cs_write_wrap {
        padding: 28px 20px;
    }

    .cs_write_wrap .btn_confirm .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}
