@charset "utf-8";

.notice-container {
    width: 100%;
    max-width: 900px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 제목 스타일링 */
.notice-section-title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* 메인 뉴스 레이아웃 */
.notice-main {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.notice-image {
    flex: 1;
}

.notice-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.notice-content {
    flex: 1.5;
}

.notice-title {
    font-size: 22px;
    font-weight: 500;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.3;
}

.notice-title a {
    color: #111;
    text-decoration: none;
}

.notice-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* 텍스트 줄 제한 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 하단 뉴스 리스트 */
.notice-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid #eee;
}

.notice-list li {
    border-bottom: 1px solid #eee;
}

.notice-list li a {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.notice-list li a:hover {
    background-color: #fcfcfc;
}

.notice-list-title {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}

.notice-list-date {
    font-size: 14px;
    color: #aaa;
    white-space: nowrap;
}

/* 모바일 대응 반응형 디자인 */
@media (max-width: 768px) {
    .notice-main {
        flex-direction: column;
    }

    .notice-content {
        margin-top: 15px;
    }

    .notice-list-title {
        font-size: 14px;
    }
}