/* ==========================================================================
   News Section (소식)
   ========================================================================== */
.news-section {
    padding: 200px 0;
}

.news-main-title {
    font-size: 40px;
    font-family: var(--font-point);
    font-weight: 700;
    margin-bottom: 130px;
    letter-spacing: -0.02em;
    text-align: left;
}

.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 71px;
    flex-wrap: wrap;
}

.news-tab-btn {
    padding: 10px 28px;
    border-radius: 40px;
    border: none;
    background-color: #F3F3F3;
    color: var(--color-text-main);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab-btn.active {
    background-color: #222;
    color: var(--color-white);
}

/* 카드 그리드 영역 (3열) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

/* 메인 화면과 동일한 뉴스 카드 스타일 */
.news-card {
    width: 100%; /* 그리드 환경이므로 가변 너비 */
    background-color: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* 카드 상단 이미지 */
.news-card-img {
    width: 100%;
    height: 220px;
    position: relative;
    background-color: var(--color-border);
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 종료된 이벤트 어둡게 처리 */
.news-card.closed .closed-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.closed-badge {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
}

.news-card.closed .news-card-content {
    opacity: 0.5;
}

/* 카드 하단 텍스트 영역 */
.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    white-space: normal;
}

.news-category {
    font-size: 18px;
    font-weight: 600;
    color: #0055FF;
    margin-bottom: 14px;
}

.news-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.4;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    margin-top: auto;
    font-size: 18px;
    color: #A9A9A9;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-arrow, .page-num {
    background: none;
    border: none;
    font-size: 20px;
    color: #929BA7;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.page-arrow{
    width: 20px;
    height: 20px;
}

.page-num.active {
    font-weight: 700;
    color: var(--color-text-main);
    background-color: #E5E8EB;
}

.page-arrow:hover, .page-num:not(.active):hover {
    color: var(--color-text-main);
}

.page-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   News Detail Section (소식 상세페이지)
   ========================================================================== */
.news-detail-section {
    padding: 250px 0 200px;
}

.news-detail-inner {
    max-width: 800px; /* 상세페이지는 가독성을 위해 너비를 좀 더 좁게 설정 */
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 85px;
    padding-bottom: 85px;
    border-bottom: 1px solid #F4F4F4;
}

.news-detail-date {
    font-size: 22px;
    color: #8E9FB6;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-detail-title {
    font-family: var(--font-point);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.news-detail-content {
    font-size: 22px;
    line-height: 1.8; /* 넉넉한 줄 간격 */
    color: #333;
    margin-bottom: 85px;
    letter-spacing: -0.02em;
}

.news-detail-content p {
    margin-bottom: 24px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 16px;
}

/* 목록으로 버튼 */
.news-detail-btn-area {
    text-align: center;
    border-top: 1px solid #F4F4F4;
    padding-top: 85px;
}

.btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    padding: 18px 40px;
    background-color: #f1f3f5;
    color: var(--color-text-main);
    font-size: 20px;
    font-weight: 500;
    border-radius: 8px; /* 살짝 둥근 모서리 */
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-list:hover {
    background-color: #e2e8f0;
}