@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&display=swap');

.board-list {
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}

/* 기본 설정 버튼 */
.board-list .board-setup {
    position: relative;
    border: 1px solid #d5d5d5;
    height: 38px;
    margin-bottom: 20px;
    background: #fff;
}

.board-list .board-setup .select {
    position: absolute;
    top: -1px;
    left: -1px;
    display: inline-block;
    width: 200px
}

.board-list .board-setup-btn-box {
    position: absolute;
    top: -1px;
    right: -1px;
    display: inline-block;
    width: 420px
}

.board-list .board-setup-btn {
    float: left;
    width: 25%;
    height: 38px;
    line-height: 38px;
    color: #fff;
    text-align: center;
    font-size: .8125rem;
    background-color: #555;
}

.board-list .board-setup-btn:hover {
    opacity: 0.9
}

/* 리스트 스타일 */
.board-list .bl-wrap {
    border: 0;
    background: transparent;
}

.board-list .bl-head {
    display: none !important
}

.board-list .bl-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px 30px;
    margin-bottom: 20px;
    overflow: visible;
    transition: border-color 0.3s, box-shadow 0.3s;
    gap: 25px;
}

.board-list .bl-card:hover {
    border-color: #bbaba0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.board-list .bl-card.bl-notice {
    background-color: #faf9f7;
    border: 1px solid #ebe5dd;
}

.board-list .bl-card .checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

/* 왼쪽 프로필 영역 */
.board-list .card-left {
    flex: 0 0 auto;
    width: 60px;
    text-align: center;
    padding-top: 5px;
}

.board-list .profile-circle {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f8f8;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-list .profile-circle:hover {
    border-color: #aaa;
}

.board-list .profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.board-list .profile-circle i {
    font-size: 24px;
    color: #ddd;
}

/* 오른쪽 본문 영역 */
.board-list .card-right {
    flex: 1;
    min-width: 0;
}

/* 제목 */
.board-list .card-subject {
    display: block;
    margin-bottom: 12px;
    padding-right: 20px;
}

.board-list .card-subject a {
    font-family: 'Noto Serif KR', 'Batang', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.board-list .card-subject a:hover {
    color: #000;
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-color: #ddd;
}

.board-list .notice-icon {
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 1px 5px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 5px;
}

.board-list .new-icon {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #d32f2f;
    border-radius: 50%;
    vertical-align: top;
    margin-top: 8px;
    margin-left: 5px;
}

/* 본문 */
.board-list .card-content {
    margin-bottom: 15px;
}

.board-list .card-content a {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 400;
}

/* 하단 정보 */
.board-list .card-bottom {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: #aaa;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}

.board-list .info-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.board-list .info-item i {
    margin-right: 4px;
    font-size: 11px;
}

/* 이름 스타일 (아이콘 제거됨) */
.board-list .mb-name .sv_wrap>a {
    color: #555;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

/* 관심게시판 버튼형 (글쓰기 버튼과 동일 크기) */
.admin-favorite {
    margin-right: 5px;
}

.admin-favorite .btn-favo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5 !important;
    color: #444 !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-favorite .btn-favo i {
    margin-right: 5px;
    color: #aaa !important;
}

.admin-favorite .btn-favo.active {
    background: #f39c12 !important;
    /* 선명한 주황색 */
    color: #fff !important;
    border-color: #e67e22 !important;
}

.admin-favorite .btn-favo.active i {
    color: #fff !important;
}

.admin-favorite .btn-favo:hover {
    background: #e9e9e9 !important;
}

.admin-favorite .btn-favo.active:hover {
    background: #e67e22 !important;
}

@media (max-width: 768px) {
    .board-list .bl-card {
        padding: 20px;
        gap: 15px;
    }

    .board-list .card-left {
        width: 45px;
    }

    .board-list .profile-circle {
        width: 45px;
        height: 45px;
    }

    .board-list .card-subject a {
        font-size: 1.15rem;
    }

    .board-list .card-content a {
        font-size: 0.875rem;
    }
}