/* ===== 공지 상단 ===== */
.notice-page .notice-header {
    margin-bottom: 16px;
}

.notice-title-main {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.notice-desc {
    font-size: 14px;
    color: #666;
}

/* ===== 필터 / 검색 ===== */
.notice-filters {
    margin-bottom: 16px;
}

.notice-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-filter-label {
    font-size: 14px;
    color: #555;
}

.notice-select {
    min-width: 120px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.notice-search-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-search-input {
    width: 260px;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ===== 리스트 ===== */
.notice-list-wrapper {
    margin-bottom: 24px;
}

/* ===== table-like 리스트 (WEB Notice/List.cshtml에서 사용) ===== */
.notice-table {
    width: 100%;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.notice-table__row {
    display: grid;
    grid-template-columns: 160px 1fr 120px 90px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f6;
    color: inherit;
    text-decoration: none;
}

.notice-table__row:last-child {
    border-bottom: none;
}

.notice-table__row:hover {
    background: #fafbfc;
}

.notice-table__row--head {
    background: #f7f8fa;
    font-weight: 600;
    color: #444;
}

.notice-table__cell {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
}

.notice-table__cell--flag {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.notice-table__cell--title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.notice-table__row:hover .notice-table__cell--title {
    color: #e53935;
}

.notice-table__cell--date,
.notice-table__cell--views {
    text-align: right;
    color: #666;
    font-size: 13px;
}

@media (max-width: 768px) {
    .notice-table__row {
        grid-template-columns: 120px 1fr;
    }

    .notice-table__cell--date,
    .notice-table__cell--views {
        text-align: left;
        color: #888;
        font-size: 12px;
    }
}

.notice-card-list {
    list-style: none;
}

.notice-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .notice-item:last-child {
        border-bottom: none;
    }

.notice-thumb {
    width: 100%;
    border-radius: 8px;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
}

/* 썸네일 없는 경우 높이만 최소 확보 */
.notice-item.no-thumb .notice-thumb {
    min-height: 80px;
}

.notice-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notice-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #777;
}

.notice-category {
    font-size: 12px;
    color: #777;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
}

.notice-badge-pin {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.notice-badge-new {
    background-color: #ffebee;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

.notice-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

    .notice-title:hover {
        text-decoration: underline;
        color: #e53935;
    }

.notice-meta-bottom {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}

/* 고정 공지 하이라이트 */
.notice-item.is-pinned {
    background-color: #fffaf3;
    border-radius: 8px;
    padding: 12px 12px;
}

/* ===== 페이징 ===== */
.notice-pagination {
    margin-top: 12px;
    text-align: center;
}

.page-btn {
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 13px;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 4px;
    cursor: pointer;
}

    .page-btn.is-active {
        border-color: #e53935;
        background-color: #e53935;
        color: #fff;
    }

@media (max-width: 768px) {
    /* 필터 영역: 세로 정렬 */
    .notice-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-search-group {
        margin-left: 0;
        width: 100%;
    }

    .notice-search-input {
        flex: 1;
        width: 100%;
    }

    .notice-search-btn {
        height: 40px;
        padding: 0 14px;
    }

    /* 리스트: 썸네일 위, 내용 아래로 쌓기 */
    .notice-item {
        grid-template-columns: 1fr;
    }

    .notice-thumb {
        min-height: 140px;
    }
}
/* ===========================
   공지사항 상세 페이지
   =========================== */

.notice-view {
    margin-bottom: 24px;
}

.notice-view-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.notice-view-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #777;
}

.notice-view-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-view-meta-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

/* 대표 이미지 */
.notice-view-thumb {
    width: 100%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    height: 220px;
    margin-bottom: 18px;
}

/* 본문 */
.notice-view-content {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

    .notice-view-content p + p {
        margin-top: 10px;
    }

.notice-view-list {
    padding-left: 20px;
    margin: 8px 0 12px;
}

/* 첨부 파일 */
.notice-view-attachments {
    border-top: 1px solid #f5f5f5;
    margin-top: 20px;
    padding-top: 14px;
}

.notice-view-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.notice-view-attachments ul {
    list-style: none;
    font-size: 13px;
}

.notice-view-attachments li + li {
    margin-top: 4px;
}

.notice-view-attachments a {
    color: #1e88e5;
}

/* 이전/다음 글 */
.notice-view-nav {
    border-top: 1px solid #f5f5f5;
    margin-top: 20px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
}

.notice-view-nav-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .notice-view-nav-item .nav-label {
        color: #999;
    }

    .notice-view-nav-item .nav-link {
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .notice-view-nav-item .nav-link:hover {
            color: #e53935;
            text-decoration: underline;
        }

/* 목록 버튼 */
.notice-view-actions {
    margin-top: 20px;
    text-align: center;
}

/* 약관(이용약관/개인정보/마케팅) HTML 콘텐츠 스타일 */
.terms-content-html h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #111827;
}

.terms-content-html h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 14px 0 8px 0;
    color: #111827;
}

.terms-content-html p {
    margin: 0 0 10px 0;
}

.terms-content-html ul,
.terms-content-html ol {
    margin: 0 0 12px 18px;
}

.terms-content-html li + li {
    margin-top: 4px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .notice-view-title {
        font-size: 18px;
    }

    .notice-view-thumb {
        height: 180px;
    }

    .notice-view-nav {
        grid-template-columns: 1fr;
    }
}
