/* 공지사항 카드 전용 컨테이너 */
.notice_card_list1 {
    padding: 20px 0;
    width: 100%;
}

.notice_card_list1 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* 카드 사이 간격 */
}

/* 3개 배열 계산 */
.notice_card_list1 li {
    width: calc(33.333% - 16px);
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

/* 카드 디자인 */
.n_card_item1 {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border: 1px solid #e9e9e9;
    text-decoration: none !important;
    color: #333;
    border-radius: 15px;
    height: 100%;
    min-height: 343px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.n_card_item1:hover {
    transform: translateY(-7px);
    border-color: #333; /* 호버 시 테두리 색상 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* 상단 영역 */
.n_card_top1 {
    margin-bottom: 20px;
}

.n_card_subject1 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: #111;
    /* 제목 2줄 제한 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

/* 본문 영역 */
.n_card_content1 {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* 푸터를 하단으로 밀어냄 */
    /* 본문 3줄 제한 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 푸터 영역 (날짜 + 화살표) */
.n_card_footer1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
}

.n_card_date1 {
    font-size: 14px;
    color: #bbb;
}

.n_card_more1 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* 게시물 없음 */
.n_empty1 {
    width: 100%;
    text-align: center;
    padding: 80px 0;
    color: #999;
    border: 1px dashed #ddd;
    border-radius: 15px;
    list-style: none;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
    .notice_card_list1 li {
        width: calc(50% - 12px); /* 태블릿 2단 */
    }
}

@media screen and (max-width: 640px) {
    .notice_card_list1 li {
        width: 100%; /* 모바일 1단 */
    }
}