@charset "utf-8";

/* ============================== */
/* 사이드바 공지사항 최신글 스타일 */
/* ============================== */

/* 공지사항 박스 */
.sidebar-notice {
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(74, 74, 90, 0.10);
    box-shadow: 0 4px 24px rgba(74, 74, 90, 0.10);
    overflow: hidden;
    margin-bottom: 12px;
}

/* 공지사항 제목 */
.sidebar-notice-title {
    background: #E0E0E8;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4A4A5A;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-notice-title a {
    font-size: 0.68rem;
    color: #6A6A82;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-notice-title a:hover {
    color: #4A4A5A;
    text-decoration: underline;
}

/* 공지사항 리스트 */
.sidebar-notice-list {
    padding: 6px 0;
}

.sidebar-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 14px;
    border-bottom: 1px dashed #f0f0f0;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar-notice-item:last-child {
    border-bottom: none;
}

.sidebar-notice-item:hover {
    background: #F5F5F7;
}

/* 공지 배지 */
.sidebar-notice-badge {
    font-size: 0.72rem;
    background: #FFE4EA;
    color: #FF6B8A;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
    flex-shrink: 0;
    font-weight: 600;
}

/* 공지 텍스트 */
.sidebar-notice-text {
    font-size: 0.78rem;
    color: #1A1A2E;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.sidebar-notice-text i {
    font-size: 0.7rem;
    color: #999;
}

.sidebar-notice-text .cmt_cnt {
    font-size: 0.7rem;
    color: #FF6B8A;
    margin-left: 3px;
}

/* 날짜 */
.sidebar-notice-date {
    font-size: 0.65rem;
    color: #bbb;
    margin-top: 2px;
}

/* 빈 상태 */
.sidebar-notice-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.78rem;
}

/* ========== 반응형 ========== */
@media(max-width: 768px) {
    .sidebar-notice {
        border-radius: 12px;
    }
    
    .sidebar-notice-title {
        font-size: 0.78rem;
        padding: 8px 12px;
    }
    
    .sidebar-notice-item {
        padding: 6px 12px;
    }
    
    .sidebar-notice-text {
        font-size: 0.75rem;
        max-width: 150px;
    }
}
