@charset "UTF-8";

/* =============================== */
/* pac-news KBoard Skin            */
/* news.css 디자인 동일             */
/* =============================== */

#pac-news-list,
#pac-news-document {
    width: 100%;
}

/* =============================== */
/* Sub Header (title + filter)     */
/* =============================== */
#pac-news-list .nw-sub-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 40px;
}

#pac-news-list .nw-sub-title {
    font-size: 32px;
    font-weight: 600;
    color: #1f1f1f;
}

#pac-news-list .nw-filter {
    display: flex;
    gap: 8px;
}

#pac-news-list .nw-filter form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#pac-news-list .nw-filter-btn {
    padding: 7px 18px;
    border: 1px solid #DED8D0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #957E62;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pac-news-list .nw-filter-btn:hover,
#pac-news-list .nw-filter-btn.active {
    border-color: #957E62;
    background: #fff;
    color: #957E62;
}

/* =============================== */
/* Grid                            */
/* =============================== */
#pac-news-list .nw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px 24px;
    margin-bottom: 60px;
}

#pac-news-list .nw-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

#pac-news-list .nw-card-img {
    width: 100%;
    aspect-ratio: 1.42 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

#pac-news-list .nw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#pac-news-list .nw-card:hover .nw-card-img img {
    transform: scale(1.04);
}

#pac-news-list .nw-card-no-img {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

#pac-news-list .nw-card-info {
    padding-top: 20px;
}

#pac-news-list .nw-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.4;
    margin-bottom: 12px;
}

#pac-news-list .nw-card-desc {
    font-size: 16px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.6);
    line-height: 1.65;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#pac-news-list .nw-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-size: 16px;
    color: rgba(35, 35, 35, 0.4);
}

/* =============================== */
/* Pagination                      */
/* =============================== */
#pac-news-list .nw-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

#pac-news-list .nw-pagination .kboard-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#pac-news-list .nw-pagination a,
#pac-news-list .nw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: rgba(35, 35, 35, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

#pac-news-list .nw-pagination a:hover {
    color: #1f1f1f;
}

#pac-news-list .nw-pagination .current,
#pac-news-list .nw-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
}

/* 글쓰기 버튼 */
#pac-news-list .pac-kboard-control {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

#pac-news-list .pac-kboard-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #1f1f1f;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#pac-news-list .pac-kboard-btn-write:hover {
    opacity: 0.75;
}

/* =============================== */
/* View Page                       */
/* =============================== */
#pac-news-document .nw-view-header {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 48px;
}

#pac-news-document .nw-view-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #957e62;
    margin-bottom: 16px;
}

#pac-news-document .nw-view-title {
    font-size: 40px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.35;
    margin-bottom: 20px;
}

#pac-news-document .nw-view-date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.45);
}

#pac-news-document .nw-view-body {
    font-size: 17px;
    font-weight: 400;
    color: #2d2d2d;
    line-height: 1.85;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 40px;
}

#pac-news-document .nw-view-body img {
    max-width: 100%;
    height: auto;
}

#pac-news-document .nw-view-files {
    margin-bottom: 40px;
}

#pac-news-document .nw-view-files-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(35, 35, 35, 0.5);
    margin-bottom: 12px;
}

#pac-news-document .nw-view-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#pac-news-document .nw-view-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f1f1f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#pac-news-document .nw-view-file-link:hover {
    color: #957e62;
}

#pac-news-document .nw-view-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-bottom: 40px;
}

#pac-news-document .nw-btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #1f1f1f;
    border: 1px solid rgba(35, 35, 35, 0.3);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#pac-news-document .nw-btn-list:hover {
    background: #1f1f1f;
    color: #fff;
    border-color: #1f1f1f;
}

#pac-news-document .nw-btn-edit,
#pac-news-document .nw-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.5);
    border: 1px solid rgba(35, 35, 35, 0.2);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#pac-news-document .nw-btn-edit:hover {
    color: #1f1f1f;
    border-color: #1f1f1f;
}

#pac-news-document .nw-btn-delete:hover {
    color: #c0392b;
    border-color: #c0392b;
}

/* =============================== */
/* Editor                          */
/* =============================== */
#pac-news-editor .pac-editor-form {
    width: 100%;
}

#pac-news-editor .kboard-attr-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(35, 35, 35, 0.1);
}

#pac-news-editor .attr-name {
    flex-shrink: 0;
    width: 130px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(35, 35, 35, 0.6);
    padding-top: 10px;
}

#pac-news-editor .attr-value,
#pac-news-editor .kboard-content {
    flex: 1;
}

#pac-news-editor .attr-value input[type="text"],
#pac-news-editor .attr-value input[type="email"],
#pac-news-editor .attr-value input[type="password"],
#pac-news-editor .attr-value textarea,
#pac-news-editor .attr-value select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    color: #1f1f1f;
    border: 1px solid rgba(35, 35, 35, 0.25);
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#pac-news-editor .attr-value input:focus,
#pac-news-editor .attr-value textarea:focus,
#pac-news-editor .attr-value select:focus {
    outline: none;
    border-color: #1f1f1f;
}

#pac-news-editor .attr-required-text {
    color: #957e62;
}

#pac-news-editor .pac-editor-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
}

#pac-news-editor .pac-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

#pac-news-editor .pac-editor-btn--cancel,
#pac-news-editor .pac-editor-btn--list {
    color: rgba(35, 35, 35, 0.6);
    border: 1px solid rgba(35, 35, 35, 0.2);
    background: #fff;
    margin-right: 8px;
}

#pac-news-editor .pac-editor-btn--cancel:hover,
#pac-news-editor .pac-editor-btn--list:hover {
    color: #1f1f1f;
    border-color: #1f1f1f;
}

#pac-news-editor .pac-editor-btn--submit {
    color: #fff;
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
}

#pac-news-editor .pac-editor-btn--submit:hover {
    opacity: 0.75;
}

/* =============================== */
/* Responsive                      */
/* =============================== */
@media (max-width: 1024px) {
    #pac-news-list .nw-sub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #pac-news-list .nw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    #pac-news-list .nw-sub-title {
        font-size: 26px;
    }

    #pac-news-list .nw-card-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    #pac-news-list .nw-sub-title {
        font-size: 20px;
    }

    #pac-news-list .nw-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    #pac-news-list .nw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    #pac-news-list .nw-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    #pac-news-list .nw-card-desc {
        font-size: 13px;
    }

    #pac-news-document .nw-view-title {
        font-size: 26px;
    }

    #pac-news-document .nw-view-body {
        font-size: 15px;
    }
}
