/*
 * 활동소식 목록과 회원 참여 게시판에만 적용되는 추가 스타일입니다.
 * 기존 게시판/갤러리의 공통 CSS 선택자는 변경하지 않습니다.
 */
.activity-list-page {
    display: grid;
    gap: 18px;
}
.activity-list-card a {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
}
.activity-list-card img,
.activity-list-placeholder {
    display: block;
    width: 260px;
    height: 165px;
    background: #e5e5e5;
    object-fit: cover;
}
.activity-list-card h2 {
    overflow: hidden;
    margin: 8px 0 14px;
    font-size: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-list-card p {
    overflow: hidden;
    color: #666;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-list-card time { color: #999; }

.participation-board-head,
.participation-board-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 150px 90px 130px;
    align-items: center;
}
.participation-board-list {
    overflow: hidden;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}
.participation-board-head {
    min-height: 50px;
    border-bottom: 1px solid #e4e8ef;
    background: #f6f7f9;
    color: #49515c;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}
.participation-board-head span { padding: 0 10px; }
.participation-board-row {
    min-height: 66px;
    border-top: 1px solid #edf0f4;
    color: #20252c;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.participation-board-row:first-of-type { border-top: 0; }
.participation-board-row:hover,
.participation-board-row:focus {
    background: #fff6f4;
    color: #9f2d25;
    text-decoration: none;
    transform: translateX(2px);
}
.participation-board-row > * {
    padding: 14px 10px;
    text-align: center;
}
.participation-board-row strong {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.participation-board-row strong em {
    color: #027fff;
    font-style: normal;
    font-weight: 400;
}
.participation-board-row.depth-1 strong { padding-left: 32px; }
.participation-board-row.depth-2 strong { padding-left: 56px; }
.participation-board-row.depth-3 strong { padding-left: 80px; }
.participation-board-row.depth-4 strong,
.participation-board-row.depth-5 strong { padding-left: 96px; }

.board-member-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 50px;
}
.comment-box { margin-top: 55px; }
.comment-box > h3 {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #999;
}
.comment-form {
    padding: 12px;
    border: 1px solid #aaa;
}
.comment-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #ddd;
    resize: vertical;
}
.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.comment-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #ccc;
}
.comment-list li {
    padding: 18px 10px;
    border-bottom: 1px solid #ddd;
}
.comment-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.comment-meta time {
    color: #999;
    font-size: 13px;
}
.comment-delete {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #b0000c;
    cursor: pointer;
}

@media (max-width: 767px) {
    .activity-list-card a {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 14px;
    }
    .activity-list-card img,
    .activity-list-placeholder {
        width: 115px;
        height: 90px;
    }
    .activity-list-card h2 {
        margin: 0 0 8px;
        font-size: 17px;
    }
    .activity-list-card p { display: none; }
    .participation-board-head { display: none; }
    .participation-board-row {
        grid-template-columns: 45px minmax(0, 1fr) 90px;
    }
    .participation-board-row > :nth-child(4),
    .participation-board-row > :nth-child(5) {
        display: none;
    }
    .participation-board-row.depth-1 strong { padding-left: 18px; }
    .participation-board-row.depth-2 strong,
    .participation-board-row.depth-3 strong,
    .participation-board-row.depth-4 strong,
    .participation-board-row.depth-5 strong { padding-left: 30px; }
    .board-member-actions { flex-wrap: wrap; }
}
