/* ==========================================================
   Community 섹션 — main.css 맨 아래에 추가
   기존 Community 관련 CSS 전부 삭제 후 이것으로 교체
   ========================================================== */

/* ── 섹션 전체 ── */
#gw-theme05-main-menu {
    background: #fff;
}

/* ── 최상위: 좌우 2열 ── */
#gw-theme05-main-menu > .gw-sec-container {
    display: flex;
    flex-direction: column;        /* ← row → column 으로 변경 */
    width: 100%;
    max-width: 1500px;
    padding: 0 60px;
    margin: 0 auto;
    gap: 0;
    align-items: stretch;
    height: 100%;
    justify-content: center;
}
#gw-theme05-main-menu > .gw-sec-container .row {
    display: flex;
    gap:40px;
    width: 100%;
    justify-content: center;

}
#gw-theme05-main-menu .tit {
    width: 100%;
    margin-bottom: 30px;
    font-family: 'NEXON Lv1 Gothic OTF', sans-serif;
    font-weight: 700;
    font-size: 50px;
    color: #111;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
/* ── 좌/우 패널 ── */
.main-notice-left,
.main-notice-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── 내부 section 래퍼 (swiper-slide 리셋) ── */
#gw-theme05-main-notice01,
#gw-theme05-main-notice02 {
    width: 100%;
    height: auto;
    position: static;
    flex: 1;
    display: block;
}

/* ── 스킨이 출력하는 .cm-board-wrap ── */
.cm-board-wrap {
    padding: 35px 0px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* ── 게시판 헤더 ── */
.cm-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3A43AC;
    flex-shrink: 0;
}
.cm-board-name {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}
.cm-board-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #3A43AC;
    font-size: 30px;
    text-decoration: none;
    flex-shrink: 0;
}
/* ── 카드 리스트 ── */
.cm-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* 기존 flex 리셋 */
    flex-wrap: unset;
    width: auto;
}
.cm-card-list > li {
    width: auto;
    margin: 0;
    overflow: hidden;
}
/* ── 카드 링크 ── */
a.cm-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    /* 기존 테마 스타일 전부 리셋 */
    padding: 0;
    border: none;
    background: none;
    position: static;
}
/* 기존 테마 ::before 완전 비활성화 */
a.cm-card::before {
    display: none;
    content: none;
}
a.cm-card:hover::before {
    display: none;
    border-width: 0;
}

/* ── 이미지 영역 ── */
.cm-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #c8cce8 0%, #dde0f4 100%);
    flex-shrink: 0;
}
.cm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.cm-card-list > li:hover .cm-card-img img {
    transform: scale(1.05);
}
.cm-card-no-img {
    width: 100%;
    height: 100%;
    background:url(img/notice.jpg) no-repeat center center;
    background-size:cover;
}

/* ── 뱃지 ── */
.cm-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #3A43AC;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.5;
}
.cm-badge-new {
    background: #e8385a;
}

/* ── 카드 바디: 제목 1줄 + 날짜 1줄 고정 ── */
.cm-card-body {
    padding: 10px 0px 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.cm-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    /* 1줄 고정 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 기존 테마 min-height 리셋 */
    min-height: auto;
}
.cm-card-date {
    font-size: 16px;
    color: #999;
    font-weight: 300;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* ── 빈 목록 ── */
.cm-card-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 0;
    color: #bbb;
    font-size: 13px;
    width: auto;
    margin: 0;
}


/* ── 반응형 ── */
@media (max-width: 1024px) {
    #gw-theme05-main-menu > .gw-sec-container {
        flex-direction: column;
        padding:0px;
    }
    #gw-theme05-main-menu > .gw-sec-container .row {
        flex-direction: column;
    }
    .main-notice-left {
        border-right: none;
        border-bottom: 1px solid #e8eaf2;
    }
    /*.cm-board-wrap {
        padding: 28px 24px;
    }*/
}
@media (max-width: 768px) {
    .cm-card-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .cm-card-list > li:nth-child(3) {
        display: none;
    }
}
@media (max-width: 480px) {
    /*.cm-board-wrap {
        padding: 20px 16px;
    }*/
    .cm-card-list {
        grid-template-columns: 1fr;
    }
    .cm-card-list > li:nth-child(3) {
        display: list-item;
    }
}

