@charset "utf-8";

/* Notice Board Skin Styles */
.board-table-wrap {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: none !important;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.board-table th {
    background-color: #F8FAFC;
    color: var(--gray-800);
    font-size: 17px;
    font-weight: 600;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
}

.board-table td {
    padding: 18px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 17px;
    color: var(--gray-700);
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

.board-table tbody tr:hover td {
    background-color: #F8FBFE;
}

.board-table .notice-highlight td {
    background-color: #F0F7FD;
}

.board-title-cell {
    text-align: left;
    padding-left: 20px !important;
}

.board-title-link {
    color: var(--black);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.board-title-link:hover {
    color: var(--primary);
}

.board-badge-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

.board-new-dot {
    width: 6px;
    height: 6px;
    background-color: #E02424;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.mo-only-badge {
    display: none;
}

.board-mobile-meta {
    display: none;
}

/* Search Form Elements */
.select-input {
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    color: var(--black);
    outline: none;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.select-input:focus {
    border-color: var(--primary);
}

.search-input {
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    outline: none;
    width: 260px;
    color: var(--black);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary);
}

@media (max-width: 768px) {
    /* Filter & Search Bar Mobile */
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .board-search-form {
        width: 100% !important;
        display: flex !important;
        gap: 6px !important;
    }

    .select-input {
        height: 42px;
        padding: 0 8px;
        font-size: 15.5px;
        min-width: 76px;
        width: 82px;
        flex-shrink: 0;
    }

    .search-input {
        height: 42px;
        padding: 0 12px;
        font-size: 15.5px;
        width: auto !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .btn-search {
        height: 42px;
        padding: 0 14px !important;
        font-size: 13.5px !important;
        flex-shrink: 0 !important;
    }

    /* Board Table Mobile Transformation (Card/List Feed) */
    .board-table-wrap {
        border: none !important;
        border-top: 2px solid var(--primary) !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: transparent !important;
    }

    .board-table {
        display: block;
        width: 100%;
    }

    .board-table colgroup,
    .board-table thead {
        display: none !important;
    }

    .board-table tbody {
        display: block;
        width: 100%;
    }

    .board-table tr {
        display: block;
        width: 100%;
        padding: 16px 4px;
        border-bottom: 1px solid #E2E8F0;
        text-align: left;
        box-sizing: border-box;
    }

    .board-table tr:last-child {
        border-bottom: none;
    }

    .board-table tr.notice-highlight {
        background-color: #F8FBFE;
    }

    .board-table td.col-num,
    .board-table td.col-date,
    .board-table td.col-hit {
        display: none !important;
    }

    .board-table td.board-title-cell {
        display: block;
        width: 100%;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left;
    }

    .board-title-link {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        font-size: 18px !important;
        line-height: 1.45;
        color: #0F172A;
        word-break: keep-all;
    }

    .board-title-text {
        font-weight: 600;
        color: #0F172A;
        font-size: 18px !important;
        letter-spacing: -0.01em;
    }

    .mo-only-badge {
        display: inline-flex !important;
        margin-right: 2px;
    }

    .board-mobile-meta {
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #94A3B8;
        margin-top: 6px;
    }

    .board-mobile-meta .meta-dot {
        color: #CBD5E1;
    }
}

/* Notice Detail Responsive Layout
   - PC: 단정하고 고급스러운 화이트 카드 박스 레이아웃
   - Mobile: PC의 모든 구성요소가 유지되되 테두리/배경 박스만 자연스럽게 사라진 플랫 레이아웃
*/
.notice-view-container {
    padding-top: 48px;
    padding-bottom: 120px;
    max-width: 1440px;
    margin: 0 auto;
    font-family: 'Pretendard', sans-serif;
    box-sizing: border-box;
}

.notice-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notice-back-link {
    font-size: 14.5px;
    font-weight: 500;
}

.notice-admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 메인 카드 박스 (PC: 화이트 라운드 카드 / 모바일: 박스가 사라짐) */
.notice-card-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

/* 제목 및 메타 헤더 */
.notice-header-area {
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.notice-badge-wrap {
    margin-bottom: 12px;
}

.notice-subject-title {
    font-family: 'Paperlogy', 'Paperozi', 'Pretendard', sans-serif !important;
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
    margin: 0 0 16px;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

.notice-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.notice-meta-info .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 본문 영역 */
.notice-content-area {
    font-size: 20px;
    line-height: 1.85;
    color: #334155;
    min-height: 200px;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.notice-content-area p {
    margin-bottom: 1.25em;
}

.notice-img-view {
    margin-bottom: 24px;
    text-align: center;
}

.notice-img-view img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 첨부파일 영역 (연한 하늘색 라운드 카드) */
.notice-files-wrap {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-download-card {
    background-color: #F0F5FD;
    border: none;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.notice-download-card:hover {
    background-color: #E2EDFA;
    transform: translateY(-1px);
}

.notice-file-text {
    flex: 1;
    min-width: 0;
}

.file-name-line {
    font-size: 17px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.45;
    word-break: break-all;
}

.file-size-badge {
    font-weight: 500;
    color: #64748B;
    margin-left: 4px;
    font-size: 15.5px;
}

.file-meta-line {
    font-size: 15px;
    color: #8C98A8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.file-meta-pipe {
    color: #CBD5E1;
}

.notice-file-dl-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 80, 200, 0.08);
}

/* 이전글 / 다음글 */
.notice-prev-next-nav {
    margin-top: 44px;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.pn-item {
    display: flex;
    align-items: center;
    padding: 15px 4px;
    gap: 16px;
    font-size: 16.5px;
}

.pn-item:first-child:not(:only-child) {
    border-bottom: 1px solid #F1F5F9;
}

.pn-badge {
    color: #8C98A8;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 62px;
}

.pn-triangle {
    font-size: 10px;
    color: #A0AEC0;
}

.pn-subject {
    color: #1E293B;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-weight: 400;
    transition: color 0.2s ease;
}

.pn-subject:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* 하단 목록 버튼 */
.notice-bottom-btn-area {
    text-align: center;
    margin-top: 48px;
}

.notice-main-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 36px;
    border-radius: 10px;
    background-color: var(--primary);
    color: #FFFFFF !important;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(7, 129, 207, 0.2);
}

.notice-main-list-btn:hover {
    background-color: #026ca3;
    transform: translateY(-1px);
}

/* ==========================================================================
   Mobile Responsive - 박스만 쏙 사라진 자연스러운 플랫 레이아웃
   ========================================================================== */
@media (max-width: 768px) {
    .notice-view-container {
        padding-top: 18px;
        padding-bottom: 70px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .notice-top-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    .notice-top-nav > div:first-child {
        flex-shrink: 0 !important;
    }

    .notice-admin-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
    }

    .notice-top-nav .ui-btn {
        height: 34px !important;
        padding: 0 9px !important;
        font-size: 13px !important;
        gap: 4px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }

    .notice-top-nav .ui-btn i {
        font-size: 14px !important;
    }

    /* 카드 박스 테두리/그림자/배경 제거 */
    .notice-card-box {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .notice-header-area {
        border-bottom: 1px solid #F0F0F0;
        padding-bottom: 18px;
        margin-bottom: 24px;
    }

    .notice-badge-wrap {
        margin-bottom: 8px;
    }

    .notice-subject-title {
        font-size: 26px !important;
        margin: 0 0 14px;
        line-height: 1.38;
        letter-spacing: -0.02em;
    }

    .notice-meta-info {
        gap: 14px;
        font-size: 15.5px;
        color: #94A3B8;
    }

    .notice-content-area {
        font-size: 17px;
        line-height: 1.8;
        color: #222222;
        min-height: 120px;
    }

    .notice-download-card {
        padding: 16px 18px;
        border-radius: 14px;
    }

    .file-name-line {
        font-size: 16.5px;
    }

    .notice-file-dl-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .notice-prev-next-nav {
        margin-top: 36px;
        padding-top: 12px;
        border-top: 1px solid #F0F0F0;
        border-bottom: none;
    }

    .pn-item {
        padding: 8px 0;
        gap: 12px;
        font-size: 16px;
        border-bottom: none !important;
    }

    .pn-badge {
        font-size: 15.5px;
        min-width: 55px;
    }

    .notice-bottom-btn-area {
        margin-top: 36px;
    }

    /* 모바일에서는 참고 이미지처럼 단정한 화이트 라운드 사각 목록 버튼 */
    .notice-main-list-btn {
        height: 40px !important;
        min-width: 80px !important;
        padding: 0 24px !important;
        border-radius: 8px !important;
        background-color: #FFFFFF !important;
        border: 1px solid #E5E7EB !important;
        color: #374151 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
        transform: none !important;
    }

    .notice-main-list-btn i {
        display: none;
    }

    .notice-main-list-btn:active {
        background-color: #F9FAFB !important;
    }
}

/* Notice DHTML Editor Wrapper Styling */
.wr_content {
    width: 100%;
    box-sizing: border-box;
}

.wr_content iframe {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wr_content .smarteditor2,
.wr_content .cheditor,
.wr_content .ck-editor {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Notice Write Form Responsive Layout (PC: 카드 박스 / Mobile: 박스 제거) */
.notice-write-container {
    padding-top: 48px;
    padding-bottom: 120px;
    max-width: 1440px;
    margin: 0 auto;
    font-family: 'Pretendard', sans-serif;
    box-sizing: border-box;
}

.notice-write-header {
    margin-bottom: 32px;
}

.notice-write-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

.notice-write-author-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.notice-write-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    /* 모바일에서는 글쓰기 서브비주얼 배너 숨김 */
    .notice-write-subvisual {
        display: none !important;
    }

    .notice-write-container {
        padding-top: 20px !important;
        padding-bottom: 70px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .notice-write-header {
        margin-bottom: 20px !important;
    }

    .notice-write-title {
        font-size: 24px !important;
    }

    /* 모바일 글쓰기 카드 박스 제거 (플랫 레이아웃) */
    .notice-write-card {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        gap: 20px !important;
    }

    .notice-write-author-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .notice-write-btns {
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .notice-write-btns .ui-btn {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        height: 44px !important;
        font-size: 14.5px !important;
    }
}