* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Spoqa Han Sans Neo', 'Spoqa Han Sans', 'SpoqaHanSansNeo',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Customer Service Main Content */
.cs-main {
    width: 100%;
    background: white;
    min-height: 100vh;
}

/* Customer Service Hero Section */
.cs-hero {
    width: 100%;
    padding: 50px 20px;
    background: #F0FEFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs-hero-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}

.cs-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cs-logo {
    width: 160px;
    height: 24px;
}

.cs-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 65px;
    color: #333333;
    margin: 0;
}

.cs-subtitle {
    font-size: 25px;
    font-weight: 400;
    line-height: 35px;
    color: #333333;
    text-align: center;
    margin: 0;
}

/* Container Section */
.cs-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 50px;
    display: flex;
    flex-direction: column;
}

/* Search Box */
.cs-search-box {
    width: 100%;
    padding: 25px 200px;
    background: #F9F9F9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.cs-search-label {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    white-space: nowrap;
}

.cs-search-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-select {
    width: 150px;
    height: 50px;
    padding: 3px 15px;
    background: white;
    border: 1px solid #E0E2E7;
    border-radius: 5px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 5L11 1' stroke='%23313131' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.cs-search-input {
    flex: 1;
    height: 50px;
    padding: 3px 15px;
    background: white;
    border: 1px solid #E0E2E7;
    border-radius: 5px;
    font-size: 14px;
    color: #333333;
}

.cs-search-input::placeholder {
    color: #8C8C8C;
}

.cs-search-input:focus {
    outline: none;
    border-color: #32C8C8;
}

.cs-search-btn {
    height: 50px;
    padding: 3px 15px;
    background: #262A2D;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cs-search-btn:hover {
    background: #1a1d1f;
}

.cs-search-btn svg {
    width: 24px;
    height: 24px;
}

/* Board Controls */
.cs-board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.cs-post-count {
    font-size: 16px;
    color: #8C8C8C;
}

.count-number {
    color: #32C8C8;
    font-weight: 500;
}

.cs-view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-per-page {
    width: 135px;
    height: 40px;
    padding: 3px 15px;
    background: white;
    border: 1px solid #E0E2E7;
    border-radius: 5px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 5L11 1' stroke='%23313131' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.cs-view-btn {
    width: 80px;
    height: 40px;
    padding: 0 15px;
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 5px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs-view-btn:hover {
    border-color: #32C8C8;
    color: #32C8C8;
}

/* Board Table - Desktop */
.desktop-table {
    display: block;
    width: 100%;
}

.mobile-cards {
    display: none;
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
}

.cs-table thead tr {
    border-top: 1px solid #32C8C8;
}

.cs-table th {
    padding: 20px;
    height: 52px;
    font-size: 16px;
    font-weight: 400;
    color: #8C8C8C;
    text-align: center;
}

.cs-table td {
    padding: 20px;
    height: 52px;
    font-size: 16px;
    color: #333333;
    text-align: center;
    border-top: 1px solid #DDDDDD;
}

.cs-table tbody tr:last-child td {
    border-bottom: 1px solid #DDDDDD;
}

.cs-table tbody tr {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cs-table tbody tr:hover {
    background: #f8f8f8;
}

.col-number {
    width: 120px;
}

.col-title {
    text-align: left !important;
    padding-left: 30px;
}

.col-date {
    width: 150px;
}

.col-views {
    width: 150px;
}

/* Notice Badge */
.badge-notice {
    display: inline-block;
    padding: 5px 15px;
    background: white;
    border: 1px solid #32C8C8;
    border-radius: 50px;
    color: #32C8C8;
    font-size: 15px;
    font-weight: 400;
}

/* Mobile Card Layout */
.cs-card {
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs-card:hover {
    border-color: #32C8C8;
    box-shadow: 0 2px 8px rgba(50, 200, 200, 0.1);
}

.cs-card.notice-card {
    background: #F0FEFF;
    border-color: #32C8C8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-number {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.card-date {
    font-size: 13px;
    color: #8C8C8C;
}

.card-title {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.card-views {
    font-size: 13px;
    color: #8C8C8C;
}

/* Pagination */
.cs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid #F2F2F2;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #32C8C8;
}

.page-num {
    font-size: 14px;
    color: #8C8C8C;
}

.page-num.active {
    background: #32C8C8;
    color: white;
    border-color: #32C8C8;
}

.page-prev,
.page-next {
    padding: 10px;
}

.page-prev:hover,
.page-next:hover {
    background: #F9F9F9;
}

/* Responsive Design */
@media screen and (max-width: 1440px) {
    .cs-search-box {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media screen and (max-width: 1200px) {
    .cs-search-box {
        padding: 25px 50px;
    }

    .cs-title {
        font-size: 40px;
        line-height: 50px;
    }

    .cs-subtitle {
        font-size: 20px;
        line-height: 28px;
    }
}

@media screen and (max-width: 768px) {
    .cs-container {
        padding: 0;
    }
    .cs-search-box {
        margin-top: 0;
    }
    .cs-board-controls {
        padding: 0 20px;
    }
    .desktop-table {
        padding: 0 20px;
    }
    .cs-search-label {
        display: none;
    }
    .cs-search-box {
        padding: 25px 14px;
    }
    .cs-select {
        width: 90px;
        height: 40px;
    }
    .cs-search-input {
        height: 40px;
    }
    .cs-search-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    .cs-view-controls {
        display: none;
    }
    thead {
        display: none;
    }
    .cs-table td.col-views {
        display: none;
    }
    /* 테이블 자체 */
    .cs-table {
        display: block;
    }

    /* thead 숨기기 (헤더는 보통 숨김) */
    .cs-table thead {
        display: none;
    }

    /* tbody도 블록으로 */
    .cs-table tbody {
        display: block;
    }

    /* tr을 블록으로 (각 행이 하나의 카드처럼) */
    .cs-table tbody tr {
        display: block;
        border-bottom: 1px solid #DDDDDD;
        padding: 15px;
    }
    .cs-table tbody tr:first-child {
        border-top: 2px solid #32C8C8;
    }

    /* td도 블록으로 (세로로 쌓이게) */
    .cs-table td {
        display: block;
        text-align: left !important;
        border: none;
        padding: 5px 0;
        position: relative;
        height: initial;
    }

    /* 각 td 앞에 라벨 추가 (선택사항) */
    .cs-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        font-weight: bold;
        color: #8C8C8C;
    }
    .cs-table tbody tr:last-child td {
        border: 0;
    }
}

/* 상세 페이지 컨테이너 */
.cs-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px 100px;
}

/* 상세 페이지 헤더 */
.cs-detail-header {
    margin-bottom: 20px;
}

.cs-detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

/* 상세 정보 테이블 */
.cs-detail-info {
    width: 100%;
    margin-bottom: 0;
}

.cs-info-table {
    width: 100%;
    border-collapse: collapse;
}

.cs-info-table tbody tr {
    border-top: 1px solid #32C8C8;
}

.cs-info-table th,
.cs-info-table td {
    height: 52px;
    padding: 20px;
}

.cs-info-table .info-label {
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8C8C8C;
    font-size: 16px;
    font-weight: 400;
}

.cs-info-table .info-label svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cs-info-table .info-value {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
}

/* 콘텐츠 영역 */
.cs-detail-content {
    padding: 50px 20px;
    min-height: 300px;
    border-bottom: 1px solid #DDDDDD;
}

.content-wrapper {
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
}

.content-wrapper p {
    margin-bottom: 20px;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
}

/* 첨부파일 영역 */
.cs-detail-attachment {
    width: 100%;
    display: flex;
    border-bottom: 1px solid #DDDDDD;
}

.attachment-label {
    width: 200px;
    height: 52px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8C8C8C;
    font-size: 16px;
    font-weight: 400;
    background: white;
}

.attachment-label svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.attachment-content {
    flex: 1;
    height: 52px;
    padding: 20px;
    display: flex;
    align-items: center;
}

.no-attachment {
    color: #8C8C8C;
    font-size: 16px;
}

.attachment-file {
    color: #32C8C8;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attachment-file:hover {
    text-decoration: underline;
}

/* 목록 버튼 */
.cs-detail-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.cs-btn-list {
    width: 100px;
    height: 50px;
    padding: 0 15px;
    background: #32C8C8;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs-btn-list:hover {
    background: #2AB8B8;
}

/* 반응형 디자인 - 태블릿 */
@media screen and (max-width: 1200px) {
    .cs-detail-container {
        padding: 40px 40px 80px;
    }
}

/* 반응형 디자인 - 모바일 */
@media screen and (max-width: 768px) {
    .cs-detail-container {
        padding: 30px 20px 60px;
    }

    .badge-notice {
        width: 45px;
        height: 22px;
        font-size: 11px;
        padding: 0;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cs-detail-title-wrap {
        align-items: flex-start;
        gap: 8px;
    }

    .cs-detail-title {
        line-height: 1.5;
        color: #333;
        font-size: 16px;
        font-weight: 400;
    }

    /* 정보 테이블 모바일 대응 */
    .cs-info-table {
        display: block;
    }

    .cs-info-table tbody {
        display: block;
    }

    .cs-info-table tr {
        display: flex;
        border-top: 1px solid #32C8C8;
        padding: 5px 10px;
    }

    .cs-info-table th,
    .cs-info-table td {
        display: block;
        height: initial;
        padding: 0;
    }
    .cs-info-table .info-label {
        font-size: 14px;
        display: flex;
    }
    .cs-info-table .info-label span {
        display: none;
    }

    .cs-info-table .info-value {
        width: 100%;
        font-size: 14px;
        display: flex;
        align-items: center;
        margin-left: 10px;
    }

    /* 첨부파일 모바일 대응 */
    .cs-detail-attachment {
        flex-direction: column;
    }

    .attachment-label {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #EEEEEE;
    }

    .attachment-content {
        padding: 15px;
    }

    /* 콘텐츠 영역 모바일 */
    .cs-detail-content {
        padding: 30px 15px;
    }

    .content-wrapper {
        font-size: 15px;
    }

    /* 버튼 모바일 */
    .cs-detail-footer {
        justify-content: center;
        margin-top: 20px;
    }

    .cs-btn-list {
        width: 100%;
        max-width: 200px;
    }
}

/* 반응형 디자인 - 소형 모바일 */
/*@media screen and (max-width: 480px) {*/
/*    .cs-detail-container {*/
/*        padding: 20px 15px 40px;*/
/*    }*/

/*    .cs-detail-title {*/
/*        font-size: 16px;*/
/*    }*/

/*    .badge-notice {*/
/*        padding: 3px 10px;*/
/*        font-size: 13px;*/
/*    }*/

/*    .cs-info-table th,*/
/*    .cs-info-table td {*/
/*        padding: 12px;*/
/*    }*/

/*    .cs-info-table .info-label {*/
/*        font-size: 13px;*/
/*    }*/

/*    .cs-info-table .info-value {*/
/*        font-size: 13px;*/
/*    }*/

/*    .cs-detail-content {*/
/*        padding: 20px 10px;*/
/*    }*/

/*    .content-wrapper {*/
/*        font-size: 14px;*/
/*        line-height: 1.7;*/
/*    }*/

/*    .attachment-label {*/
/*        font-size: 13px;*/
/*        padding: 12px;*/
/*    }*/

/*    .no-attachment {*/
/*        font-size: 13px;*/
/*    }*/

/*    .cs-btn-list {*/
/*        height: 45px;*/
/*        font-size: 13px;*/
/*    }*/
/*}*/