/**
 * 통합 게시판 CSS
 * 공지사항, 뉴스, 이벤트, TV 등 모든 커뮤니티 페이지에서 공통 사용
 * 원본 momoprs.com 스타일 기반
 */

/* ==========================================================
   CSS 변수 정의 (원본 테마 색상)
   ========================================================== */
:root {
    --board-color-primary: #2E1566;
    --board-color-secondary: #29203B;
    --board-color-bg: #F2F2F2;
    --board-color-border: rgba(46, 21, 102, 0.15);
    --board-color-text: #333;
    --board-color-text-light: #666;
    --board-color-link-hover: #0066cc;
}

/* ==========================================================
   서브 비주얼 (공통)
   ========================================================== */
.board-module .sub_visual {
    padding: 130px 0;
    text-align: center;
    position: relative;
    margin-bottom: 64px;
}
.board-module .sub_visual::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 80%;
    height: 2px;
    background: #000;
}
.board-module .sub_visual h1 {
    font-size: 44px;
    line-height: 1em;
    letter-spacing: -1px;
    margin: 0;
    font-weight: 700;
    color: var(--board-color-secondary);
}

/* ==========================================================
   컨테이너 - 원본 momoprs.com 스타일
   ========================================================== */
.board-module .board-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 16.66% 160px;
}

/* ==========================================================
   카테고리 탭 (공통) - 원본 momoprs.com 스타일
   ========================================================== */
.board-module .category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
}
.board-module .category-tabs li a,
.board-module .category-tabs li button {
    display: block;
    border: 1px solid #B9BAC1;
    background-color: #fff;
    box-sizing: border-box;
    height: 48px;
    line-height: 46px;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -1px;
    border-radius: 24px;
    padding: 0 34px;
    text-decoration: none;
    color: var(--board-color-text);
    transition: all 0.3s ease;
    cursor: pointer;
}
.board-module .category-tabs li a:hover,
.board-module .category-tabs li button:hover {
    border-color: var(--man-color-02);
    color: var(--man-color-02);
}
.board-module .category-tabs li.active a,
.board-module .category-tabs li.active button {
    background-color: var(--man-color-02);
    color: #fff !important;
    border-color: var(--man-color-02);
}

/* ==========================================================
   검색 폼 (공통)
   ========================================================== */
.board-module .search-form {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}
.board-module .search-form .search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 20px;
    width: 100%;
    max-width: 400px;
}
.board-module .search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 5px 10px;
}
.board-module .search-form input[type="text"]::placeholder {
    color: #999;
}
.board-module .search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.board-module .search-form button svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* ==========================================================
   목록형 게시판 (공지사항 스타일) - 원본 momoprs.com 스타일
   ========================================================== */
.board-module .board-list {
    margin-top: 64px;
}

/* 리스트 헤더 */
.board-module .board-list .list-header {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--board-color-border);
    border-bottom: 1px solid var(--board-color-border);
}
.board-module .board-list .list-header .col-title {
    width: 75%;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    padding: 22px 20px;
    box-sizing: border-box;
}
.board-module .board-list .list-header .col-date {
    width: 25%;
    text-align: right;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    padding: 22px 20px;
    box-sizing: border-box;
}
.board-module .board-list .list-header .col-views {
    display: none;
}

/* 리스트 아이템 */
.board-module .board-list .list-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--board-color-border);
}
.board-module .board-list .list-item:hover {
    background: transparent;
}
.board-module .board-list .list-item .col-title {
    width: 75%;
    padding: 0 20px;
    box-sizing: border-box;
}
.board-module .board-list .list-item .col-title a {
    display: block;
    padding: 22px 0;
    font-weight: 300;
    font-size: 20px;
    line-height: 28px;
    color: var(--board-color-text);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.board-module .board-list .list-item .col-title a:hover {
    color: var(--man-color-03);
}
.board-module .board-list .list-item .col-date {
    width: 25%;
    text-align: right;
    font-weight: 250;
    font-size: 16px;
    line-height: 22px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #2E1566;
}
.board-module .board-list .list-item .col-views {
    display: none;
}

/* 뱃지 - 원본 momoprs.com 스타일 */
.board-module .badge {
    display: inline-block;
    border-width: 1px;
    border-style: solid;
    border-radius: 100px;
    padding: 8px 12px;
    margin-right: 12px;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    flex-shrink: 0;
    background: transparent;
}
.board-module .badge-notice {
    border-color: #FF3535;
    color: #FF3535;
}
.board-module .badge-event {
    border-color: var(--man-color-02);
    color: var(--man-color-02);
}
.board-module .badge-general {
    border-color: #888;
    color: #888;
}
.board-module .badge-ended {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-color: transparent;
}

/* ==========================================================
   카드형 게시판 (뉴스, 이벤트 스타일) - 원본 momoprs.com 스타일
   ========================================================== */
.board-module .board-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 80px 0 120px;
}

.board-module .board-cards .card-item {
    position: relative;
    background: #fff;
    padding: 16px 16px 25px;
    border: 1px solid #DCDCDC;
    border-radius: 12px;
    transition: box-shadow 0.3s;
}
.board-module .board-cards .card-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.board-module .board-cards .card-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 카드 이미지 */
.board-module .board-cards .card-image {
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}
.board-module .board-cards .card-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
    aspect-ratio: 330/220;
    object-fit: cover;
}
.board-module .board-cards .card-item:hover .card-image img {
    transform: scale(1.03);
}
.board-module .board-cards .card-image .badge {
    display: inline-block;
    line-height: 29px;
    height: 29px;
    box-sizing: border-box;
    padding: 0 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    position: absolute;
    top: 20px;
    left: 5%;
    color: #fff;
    background: rgba(113, 63, 255, .75);
    border: 1px solid #490AFF;
}

/* 이미지 없음 */
.board-module .board-cards .no-image {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 16px;
}
.board-module .board-cards .no-image svg {
    width: 50px;
    height: 50px;
    fill: #ccc;
}

/* 카드 내용 - 원본 text_box 스타일 */
.board-module .board-cards .card-content {
    padding: 0;
    margin-top: 16px;
    text-align: center;
}
.board-module .board-cards .card-content .card-title {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.16px;
    color: var(--board-color-text);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.board-module .board-cards .card-item:hover .card-title {
    color: var(--man-color-02);
}
.board-module .board-cards .card-content .card-meta {
    font-size: 14px;
    color: var(--board-color-text-light);
    margin-top: 8px;
}

/* 이벤트 종료 스타일 */
.board-module .board-cards .card-item.is-ended .card-image,
.board-module .board-cards .card-item.is-ended .card-content {
    opacity: 0.3;
}
.board-module .board-cards .card-item .ended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}
.board-module .board-cards .card-item .ended-overlay span {
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 30px;
    font-weight: bold;
}

/* ==========================================================
   비디오 갤러리 (TV 스타일)
   ========================================================== */
.board-module .board-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.board-module .board-videos .video-item {
    position: relative;
}
.board-module .board-videos .video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 비디오 썸네일 */
.board-module .board-videos .video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 비율 */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.board-module .board-videos .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.board-module .board-videos .video-item:hover .video-thumbnail img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* 재생 버튼 오버레이 */
.board-module .board-videos .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}
.board-module .board-videos .play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}
.board-module .board-videos .video-item:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 비디오 제목 */
.board-module .board-videos .video-title {
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--board-color-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.board-module .board-videos .video-item:hover .video-title {
    color: var(--board-color-link-hover);
}

/* ==========================================================
   빈 상태
   ========================================================== */
.board-module .empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--board-color-text-light);
    grid-column: 1 / -1;
}
.board-module .empty-state svg {
    width: 60px;
    height: 60px;
    fill: #ddd;
    margin-bottom: 20px;
}
.board-module .empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ==========================================================
   페이지네이션 (공통)
   ========================================================== */
.board-module .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
}
.board-module .pagination a,
.board-module .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--board-color-text-light);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.board-module .pagination a:hover {
    border-color: var(--board-color-secondary);
    color: var(--board-color-secondary);
}
.board-module .pagination .current {
    background: var(--board-color-secondary);
    border-color: var(--board-color-secondary);
    color: #fff;
    font-weight: 600;
}
.board-module .pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}
.board-module .pagination .prev,
.board-module .pagination .next {
    font-weight: 500;
}

/* ==========================================================
   게시글 상세 보기 (View) - 원본 momoprs.com 스타일
   ========================================================== */

/* 서브 비주얼 (상세 페이지) */
.board-view-page .sub_visual {
    padding: 130px 0;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}
.board-view-page .sub_visual::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 80%;
    height: 2px;
    background: #000;
}
.board-view-page .sub_visual h1 {
    font-size: 44px;
    line-height: 1em;
    letter-spacing: -1px;
    margin: 0;
    font-weight: 700;
    color: var(--board-color-secondary);
}

/* 제목 영역 (title_box) - 원본과 동일 */
.board-view-page .title_box {
    padding: 32px 16.66% 40px;
}
.board-view-page .title_box .inner {
    padding: 32px 5%;
    background: #F9F9F9;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.board-view-page .title_box .inner p {
    display: inline-block;
    font-weight: 300;
    font-size: 32px;
    line-height: 40px;
    color: #161718;
    margin: 0;
}
.board-view-page .title_box .inner span {
    display: inline-block;
    font-weight: 250;
    font-size: 20px;
    line-height: 25px;
    color: #161718;
}

/* 본문 영역 (viewer) - 원본과 동일 */
.board-view-page .viewer .inner {
    padding: 0 16.66%;
    text-align: center;
}
.board-view-page #bo_v_con {
    min-height: 200px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}
.board-view-page #bo_v_con img,
.board-view-page #bo_v_img img {
    max-width: 64%;
    height: auto;
}

/* 전후사진 상세 — 원본 동일(before/after 바 + 본문 텍스트) */
.board-view-page .title_box .inner p.title_text {
    font-size: 26px;
    line-height: 1.4;
    text-align: left;
}
.board-view-page #bo_v_img.before-after-view {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}
.board-view-page #bo_v_img.before-after-view .bf_con,
.board-view-page #bo_v_img.before-after-view .af_con {
    flex: 1;
    max-width: 50%;
}
.board-view-page #bo_v_img.before-after-view img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}
.board-view-page #bo_v_img.before-after-view p {
    font-size: 16px;
    color: #FFF;
    text-align: center;
    height: 44px;
    line-height: 44px;
    background-color: #8A8D9F;
    margin: 0;
}
.board-view-page #bo_v_img.before-after-view .af_con p {
    background-color: #676A7D;
}
.board-view-page .viewer .content_text {
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: #333;
    margin: 24px 0 32px;
}
.board-view-page #bo_v_con p {
    margin-bottom: 1em;
}
/* 이전 약관 보기(평문 약관) 상세: 본문 좌측정렬 — .viewer .inner 가운데정렬 오버라이드(이미지는 가운데 유지). terms 전용 스코프라 다른 보드 영향 없음 */
.board-view-page.board-view-terms .viewer .inner { text-align: left; }
.board-view-page.board-view-terms #bo_v_con img { display: block; margin: 0 auto; }
.board-view-page #bo_v_con table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.board-view-page #bo_v_con table th,
.board-view-page #bo_v_con table td {
    border: 1px solid #ddd;
    padding: 10px;
}
.board-view-page #bo_v_con table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* 비디오 임베드 (TV) */
.board-view-page .video-embed {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.board-view-page .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.board-view-page .video-description {
    padding: 20px 0;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    text-align: left;
}

/* 이전글/다음글 (other) - 원본과 동일 */
.board-view-page .other .inner {
    padding: 100px 16.66%;
}
.board-view-page .other .inner > ul {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 22px;
    line-height: 36px;
    letter-spacing: -0.02em;
    color: #161718;
    padding: 16px 0;
    border-top: 1px solid #B7B7B7;
    border-bottom: 1px solid #B7B7B7;
    list-style: none;
    margin: 0;
}
.board-view-page .other .inner > ul li:first-child {
    font-weight: 600;
}
.board-view-page .other .inner > ul li a {
    color: #161718;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.board-view-page .other .inner > ul li a:hover {
    color: var(--man-color-02);
}
.board-view-page .other .inner > ul li a span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/images/common/ico_more.png') no-repeat center;
    background-size: contain;
}
.board-view-page .other .inner > p {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #B7B7B7;
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: -0.02em;
    color: #161718;
}
.board-view-page .other .inner > p span.purple {
    display: inline-block;
    width: 80px;
    color: #161718;
    font-weight: 600;
    flex-shrink: 0;
}
.board-view-page .other .inner > p a {
    color: #161718;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.board-view-page .other .inner > p a:hover {
    color: var(--man-color-02);
}

/* 버튼 영역 (btns) - 원본과 동일 */
.board-view-page .btns {
    padding: 0 16.66% 100px;
}
.board-view-page .btns ul {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.board-view-page .btns ul li a {
    display: block;
    background: var(--man-color-02, #1C3BA2);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 11px 32px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: background 0.2s;
}
.board-view-page .btns ul li a:hover {
    background: var(--man-color-main, #0D1D3D);
    color: #fff;
}

/* ==========================================================
   반응형 - PC (1540px 이하)
   ========================================================== */
@media screen and (max-width: 1540px) {
    .board-module .board-container {
        padding: 0 12% 100px;
    }
    /* View 페이지 */
    .board-view-page .title_box {
        padding: 32px 12% 40px;
    }
    .board-view-page .viewer .inner {
        padding: 0 12%;
    }
    .board-view-page .other .inner {
        padding: 100px 12%;
    }
    .board-view-page .btns {
        padding: 0 12% 100px;
    }
}
/* ==========================================================
   반응형 - PC (1440px 이하)
   ========================================================== */
@media screen and (max-width: 1440px) {
    .board-module .board-container {
        padding: 0 8% 100px;
    }
    /* View 페이지 */
    .board-view-page .title_box {
        padding: 32px 8% 40px;
    }
    .board-view-page .viewer .inner {
        padding: 0 8%;
    }
    .board-view-page .other .inner {
        padding: 80px 8%;
    }
    .board-view-page .btns {
        padding: 0 8% 80px;
    }
}

/* ==========================================================
   반응형 - 태블릿 (1024px 이하)
   ========================================================== */
@media screen and (max-width: 1024px) {
    .board-module .sub_visual {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    .board-module .sub_visual h1 {
        font-size: 36px;
    }
    .board-module .sub_visual::after {
        width: 100%;
    }
    .board-module .board-container {
        padding: 0 5% 80px;
    }
    .board-module .category-tabs li a,
    .board-module .category-tabs li button {
        height: 40px;
        line-height: 38px;
        font-size: 18px;
        padding: 0 20px;
    }
    .board-module .board-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 80px 0;
    }
    .board-module .board-cards .card-item {
        padding: 12px 12px 20px;
    }
    .board-module .board-cards .card-content .card-title {
        font-size: 15px;
    }
    .board-module .board-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .board-module .board-list .list-header .col-views,
    .board-module .board-list .list-item .col-views {
        display: none;
    }

    /* View 페이지 - 태블릿 */
    .board-view-page .sub_visual {
        padding: 60px 0;
    }
    .board-view-page .sub_visual h1 {
        font-size: 36px;
    }
    .board-view-page .sub_visual::after {
        width: 100%;
    }
    .board-view-page .title_box {
        padding: 25px 8% 30px;
    }
    .board-view-page .title_box .inner {
        padding: 24px 4%;
    }
    .board-view-page .title_box .inner p {
        font-size: 26px;
        line-height: 34px;
    }
    .board-view-page .title_box .inner span {
        font-size: 16px;
    }
    .board-view-page .viewer .inner {
        padding: 0 8%;
    }
    .board-view-page #bo_v_con img,
    .board-view-page #bo_v_img img {
        max-width: 80%;
    }
    .board-view-page .other .inner {
        padding: 60px 8%;
    }
    .board-view-page .other .inner > ul {
        font-size: 18px;
        line-height: 28px;
    }
    .board-view-page .other .inner > p {
        font-size: 16px;
    }
    .board-view-page .btns {
        padding: 0 8% 60px;
    }
}

/* ==========================================================
   반응형 - 모바일 (768px 이하)
   ========================================================== */
@media screen and (max-width: 768px) {
    .board-module .sub_visual {
        padding: 40px 0;
        margin-bottom: 0;
    }
    .board-module .sub_visual h1 {
        font-size: 34px;
    }
    .board-module .board-container {
        padding: 32px 5% 50px;
    }
    .board-module .category-tabs {
        gap: 8px;
    }
    .board-module .category-tabs li a,
    .board-module .category-tabs li button {
        height: 40px;
        line-height: 38px;
        font-size: 16px;
        padding: 0 16px;
    }
    .board-module .search-form {
        justify-content: center;
    }
    .board-module .search-form .search-box {
        max-width: 100%;
    }
    .board-module .board-cards {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 50px 0;
    }
    .board-module .board-cards .card-item {
        padding: 12px 12px 24px;
        border-radius: 8px;
    }
    .board-module .board-cards .card-image {
        margin-bottom: 0;
    }
    .board-module .board-cards .card-image img {
        border-radius: 8px;
    }
    .board-module .board-cards .card-content {
        margin-top: 12px;
    }
    .board-module .board-cards .card-content .card-title {
        font-size: 15px;
    }
    .board-module .board-cards .card-image .badge {
        height: 22px;
        line-height: 20px;
        padding: 0 8px;
        top: 12px;
        left: 4%;
    }
    .board-module .board-videos {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .board-module .board-list .list-header {
        display: none;
    }
    .board-module .board-list .list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 15px;
    }
    .board-module .board-list .list-item .col-title {
        width: 100%;
        margin-bottom: 8px;
    }
    .board-module .board-list .list-item .col-title a {
        white-space: normal;
    }
    .board-module .board-list .list-item .col-date {
        width: auto;
        text-align: left;
    }
    .board-module .pagination {
        margin-top: 30px;
    }
    .board-module .pagination a,
    .board-module .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    /* View 페이지 - 모바일 */
    .board-view-page .sub_visual {
        padding: 40px 0;
    }
    .board-view-page .sub_visual h1 {
        font-size: 28px;
    }
    .board-view-page .title_box {
        padding: 20px 5% 24px;
    }
    .board-view-page .title_box .inner {
        padding: 20px 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .board-view-page .title_box .inner p {
        font-size: 20px;
        line-height: 28px;
    }
    .board-view-page .title_box .inner span {
        font-size: 14px;
    }
    .board-view-page .viewer .inner {
        padding: 0 5%;
    }
    .board-view-page #bo_v_con {
        font-size: 15px;
    }
    .board-view-page #bo_v_con img,
    .board-view-page #bo_v_img img {
        max-width: 100%;
    }
    .board-view-page .other .inner {
        padding: 40px 5%;
    }
    .board-view-page .other .inner > ul {
        flex-direction: column;
        gap: 8px;
        font-size: 16px;
        line-height: 24px;
    }
    .board-view-page .other .inner > ul li a span {
        width: 18px;
        height: 18px;
    }
    .board-view-page .other .inner > p {
        font-size: 14px;
        line-height: 22px;
    }
    .board-view-page .other .inner > p span.purple {
        width: 60px;
        font-size: 14px;
    }
    .board-view-page .btns {
        padding: 0 5% 50px;
    }
    .board-view-page .btns ul li a {
        padding: 10px 24px;
        font-size: 16px;
        line-height: 22px;
    }
}

/* 페이지네이션 = 원본 momoprs/gnuboard pg_wrap 스킨(평문 숫자, 현재=볼드, 화살표=텍스트). handwritten 갤러리와 동일 */
.board-module .pg_wrap { clear: both; margin: 40px 0 80px; text-align: center; }
.board-module .pg_wrap:after { display: block; visibility: hidden; clear: both; content: ""; }
.board-module .pg_wrap .pg { display: inline-block; }
.board-module .pg_page,
.board-module .pg_current { display: inline-block; vertical-align: middle; width: 30px; height: 30px; line-height: 30px; font-size: 16px; font-weight: 300; text-align: center; margin: 0; padding: 0; box-sizing: border-box; background: none; border: none; border-radius: 100px; color: #555; text-decoration: none; }
.board-module .pg_page:hover { background: none; font-weight: 700; color: #000; }
.board-module .pg_current { background: none; font-weight: 700; color: #000; }
.board-module .pg_wrap .pg_arrow { text-indent: 0 !important; background-image: none !important; font-weight: bold; }
@media screen and (max-width:768px) {
    .board-module .pg_wrap { margin: 30px 0 60px; }
}

/* 리스트 = 원본 momoprs/gnuboard list_box 스킨(news/tv 공용). 카드 테두리·썸네일·제목 가운데정렬 그대로 */
.board-module .board_gallery ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.board-module .board_gallery > ul > li { padding: 16px 16px 25px; box-sizing: border-box; border: 1px solid #DCDCDC; border-radius: 12px; min-width: 0; }
.board-module .board_gallery > ul > li .img_box img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; aspect-ratio: 330/220; display: block; }
/* 이벤트 포스터는 정사각(원본 480x480) → 가로 크롭 없이 정사각으로 노출 */
.board-module .board_gallery.board-event > ul > li .img_box img { aspect-ratio: 1/1; }
.board-module .board_gallery > ul > li .text_box { margin-top: 16px; text-align: center; }
.board-module .board_gallery > ul > li .text_box a { margin: 0 auto; display: block; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.board-module .board_gallery > ul > li .text_box a p { font-size: 16px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-module .board_gallery > ul > li .text_box .event_date { display: block; margin-top: 8px; font-size: 14px; color: #777C81; }
/* 종료/비공개 이벤트: 이미지 블러+흐림, 텍스트 흐림, 클릭 불가, 중앙 "이벤트 종료" */
.board-module .board_gallery > ul > li.event-ended .img_box { position: relative; }
.board-module .board_gallery > ul > li.event-ended .img_box img { opacity: 0.3; }
.board-module .board_gallery > ul > li.event-ended .text_box { opacity: 0.3; }
.board-module .board_gallery > ul > li.event-ended a { pointer-events: none; cursor: default; }
.board-module .board_gallery > ul > li.event-ended .ended-label {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none;
}
.board-module .board_gallery > ul > li.event-ended .ended-label span {
    color: #fff; padding: 10px 20px; border-radius: 5px; font-size: 30px; font-weight: bold;
}
@media screen and (max-width:1024px) {
    .board-module .board_gallery > ul > li.event-ended .ended-label span { font-size: 20px; }
}
@media screen and (max-width:1024px) {
    .board-module .board_gallery > ul { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .board-module .board_gallery > ul > li { border-radius: 10px; }
    .board-module .board_gallery > ul > li .text_box a p { font-size: 20px; }
}
@media screen and (max-width:768px) {
    .board-module .board_gallery > ul { grid-template-columns: repeat(1, 1fr); gap: 24px; }
    .board-module .board_gallery > ul > li { padding: 12px 12px 24px; }
    .board-module .board_gallery > ul > li .text_box { margin-top: 12px; }
}

/* ==========================================================
   공지사항(notice) = 원본 momoprs notice 스킨 그대로
   좌측 세로 카테고리 탭 + 상단 검색 + 좌측 세로선 들여쓰기 테이블(제목75%/날짜25%)
   ========================================================== */
.board-notice { position: relative; }
.board-notice .top_title { position: relative; padding: 0 16.66%; margin-bottom: 40px; min-height: 60px; }
.board-notice .top_title form { width: 45%; display: flex; justify-content: flex-end; align-items: center; margin-left: auto; }
.board-notice .top_title form > div { display: flex; align-items: center; width: 90%; margin-right: 2%; border: 1px solid #DFDFDF; border-radius: 100px; padding: 9px 3%; box-sizing: border-box; }
.board-notice .top_title form input { border: none; background: none; }
.board-notice .top_title form .search { flex: 1; min-width: 0; outline: none; font-weight: 300; font-size: 18px; line-height: 26px; letter-spacing: -0.02em; color: #242424; }
.board-notice .top_title form .search_btn1 { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: none; background: none; cursor: pointer; flex-shrink: 0; }
.board-notice .top_title form .search_btn1 svg { width: 20px; height: 20px; fill: #888; }
.board-notice .top_title form .search_btn2 { display: block; font-family: inherit; font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -0.02em; color: #fff; background: var(--man-color-02); border-radius: 30px; padding: 11px 30px; cursor: pointer; border: none; white-space: nowrap; }
.board-notice .top_title .tab_area { position: absolute; top: 80px; left: 16.66%; }
.board-notice .top_title .tab_area ul { list-style: none; margin: 0; padding: 0; }
.board-notice .top_title .tab_area li { margin-bottom: 24px; }
.board-notice .top_title .tab_area a { display: inline-block; font-weight: 700; font-size: 16px; line-height: 26px; padding: 0 16px; text-align: center; border-radius: 14px; background: var(--man-color-05, #ECF1FA); text-decoration: none; color: #1C3BA2 !important; }
.board-notice .top_title .tab_area a.on { color: #fff !important; background: var(--man-color-02, #1C3BA2); }
.board-notice .list_box { position: relative; padding: 0 16.66% 100px 48px; margin-left: calc(16.66% + 120px); }
.board-notice .list_box::before { content: ''; display: block; width: 1px; height: 82%; background: rgba(46, 21, 102, 0.15); position: absolute; left: 0; top: 0; }
.board-notice .list_box .list_title { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(46, 21, 102, 0.15); border-bottom: 1px solid rgba(46, 21, 102, 0.15); }
.board-notice .list_box .list_title li { font-weight: 500; font-size: 20px; line-height: 28px; padding: 22px 20px; box-sizing: border-box; }
.board-notice .list_box .list_title li:nth-child(1) { width: 75%; padding-right: 0; }
.board-notice .list_box .list_title li:nth-child(2) { width: 25%; text-align: right; padding-left: 0; white-space: nowrap; }
.board-notice .list_box .list_content .list_item { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(46, 21, 102, 0.15); }
.board-notice .list_box .list_content .list_item li { padding: 0 20px; color: #2E1566; box-sizing: border-box; }
.board-notice .list_box .list_content .list_item li:nth-child(1) { width: 75%; padding-right: 0; }
.board-notice .list_box .list_content .list_item li:nth-child(1) a { display: block; padding: 22px 0; font-weight: 300; font-size: 20px; line-height: 28px; color: #2E1566; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-notice .list_box .list_content .list_item li:nth-child(2) { width: 25%; text-align: right; font-weight: 250; font-size: 16px; line-height: 22px; padding-left: 0; }
.board-notice .list_box .list_content .list_item .badge { border-radius: 20px !important; }
.board-notice .empty-state { padding: 60px 0; text-align: center; color: #888; }
@media screen and (max-width:1024px) {
    .board-notice .top_title { padding: 0 8%; }
    .board-notice .top_title .tab_area { left: 8%; }
    .board-notice .list_box { padding: 0 8% 100px 48px; margin-left: calc(8% + 120px); }
}
@media screen and (max-width:768px) {
    .board-notice { position: static; }
    .board-notice .top_title { padding: 0 5%; margin-bottom: 20px; }
    .board-notice .top_title form { width: 100%; }
    .board-notice .top_title .tab_area { position: relative; top: 0; left: 0; margin: 20px 0; }
    .board-notice .top_title .tab_area ul { display: flex; flex-wrap: wrap; gap: 8px; }
    .board-notice .top_title .tab_area li { margin-bottom: 0; }
    .board-notice .list_box { padding: 0 5% 60px; margin-left: 0; }
    .board-notice .list_box::before { display: none; }
    .board-notice .list_box .list_title li, .board-notice .list_box .list_content .list_item li { padding: 0 8px; }
    .board-notice .list_box .list_content .list_item li:nth-child(1) a { font-size: 16px; line-height: 22px; padding: 14px 0; }
}

/* 게시글 본문 유튜브 임베드 (원본 .youtube_area, 반응형 16:9) — wr_link1 동영상 마이그분 */
.youtube_area { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto 24px; max-width: 860px; }
.youtube_area iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
