.notice-main {
    width: 100%;
    min-height: 70vh;
    padding: 70px 20px 90px;
    background: #f8fafc;
}

.notice-section {
    max-width: 1100px;
    margin: 0 auto;
}

/* 목록 */

.notice-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.notice-title-wrap h1 {
    margin: 0;
    font-size: 34px;
    color: #173b72;
}

.notice-write-btn {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #174c94;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.notice-table th {
    height: 54px;
    background: #173b72;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.notice-table td {
    height: 58px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.notice-table td.subject {
    text-align: left;
    padding: 0 20px;
}

.notice-table td.subject a {
    color: #222;
    text-decoration: none;
}

.notice-table td.subject a:hover {
    color: #174c94;
}

.notice-table tr:hover {
    background: #f7f9fc;
}

.empty {
    height: 120px;
    color: #999;
}

.notice-page {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* 상세 */

.notice-view-section {
    max-width: 980px;
}

.notice-view-box {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.notice-view-head {
    position: relative;
    padding: 42px 48px 32px;
    border-bottom: 1px solid #edf1f6;
    background:
        linear-gradient(135deg, rgba(23, 76, 148, .08) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.notice-view-label {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #173b72;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.notice-view-head h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.45;
    color: #17233c;
}

.notice-view-info {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    color: #7b8797;
    font-size: 14px;
}

.notice-view-info span {
    position: relative;
}

.notice-view-info span+span::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 11px;
    background: #d5dbe5;
    transform: translateY(-50%);
}

.notice-view-content {
    min-height: 520px;
    padding: 46px 48px 56px;
    line-height: 2;
    font-size: 16px;
    color: #333;
    word-break: break-all;
}

.notice-view-content p {
    margin-top: 0;
}

.notice-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.notice-view-btns {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    padding: 22px 48px;
    border-top: 1px solid #edf1f6;
    background: #fafcff;
}

.notice-list-btn,
.notice-edit-btn,
.notice-delete-btn {
    height: 41px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notice-list-btn {
    background: #334155;
}

.notice-edit-btn {
    background: #174c94;
}

.notice-delete-btn {
    background: #dc2626;
}

/* 레이어 */

.notice-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, .45);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.notice-layer.active {
    display: flex;
}

.notice-box {
    position: relative;
    width: 100%;
    max-width: 650px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 35px;
    background: #fff;
    border-radius: 18px;
}

.notice-box h2 {
    margin: 0 0 25px;
    text-align: center;
    color: #173b72;
}

.notice-close {
    position: absolute;
    right: 18px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.notice-form-group {
    margin-bottom: 18px;
}

.notice-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.notice-form-group input,
.notice-form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
}

.notice-form-group textarea {
    min-height: 220px;
    resize: vertical;
}

.notice-save-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #174c94;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ck-editor__editable {
    min-height: 260px;
}

.ck.ck-editor {
    width: 100%;
}

.ck-content {
    font-size: 15px;
    line-height: 1.8;
}

@media (min-width: 901px) {

    .notice-main {
        min-height: calc(100vh - 220px);
    }
}

/* 모바일 */

@media (max-width:900px) {
    .notice-main {
        padding: 30px 12px 60px;
    }

    .notice-title-wrap {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .notice-title-wrap h1 {
        font-size: 22px;
    }

    .notice-table colgroup {
        display: none;
    }

    .notice-table th:nth-child(1),
    .notice-table td:nth-child(1),
    .notice-table th:nth-child(4),
    .notice-table td:nth-child(4) {
        display: none;
    }

    .notice-table {
        table-layout: fixed;
    }

    .notice-table th:nth-child(2),
    .notice-table td:nth-child(2) {
        width: 70%;
    }

    .notice-table th:nth-child(3),
    .notice-table td:nth-child(3) {
        width: 30%;
    }

    .notice-table td.subject {
        padding: 0 10px;
    }

    .notice-table td.subject a {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .notice-table th,
    .notice-table td {
        font-size: 13px;
    }

    .notice-view-box {
        border-radius: 14px;
    }

    .notice-view-head {
        padding: 26px 20px 22px;
    }

    .notice-view-label {
        height: 26px;
        padding: 0 11px;
        margin-bottom: 14px;
        font-size: 11px;
    }

    .notice-view-head h1 {
        font-size: 22px;
    }

    .notice-view-info {
        margin-top: 14px;
        gap: 14px;
        font-size: 12px;
    }

    .notice-view-content {
        min-height: 420px;
        padding: 28px 20px 40px;
        font-size: 15px;
        line-height: 1.9;
    }

    .notice-view-btns {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .notice-list-btn,
    .notice-edit-btn,
    .notice-delete-btn {
        height: 39px;
        padding: 0 15px;
        font-size: 13px;
    }

    .notice-box {
        padding: 28px 18px;
    }
}

@media (max-width:900px) {
    .notice-table .notice-empty-row td {
        display: table-cell !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .notice-table .notice-empty-row .notice-empty-box {
        height: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 14px;
        text-align: center;
    }
}