/**
 * Contact 게시판 스타일
 * 테이블 레이아웃
 */

/* 기본 영역 스타일 */
.cont-wrap {
    margin-bottom: 0;
    padding-bottom: 110px;
    background: #f5f5f5;
}

/* 상단 비주얼 */
.is-sub-visual-area.info {
    background: center / cover no-repeat url(/assets/images/all/top_hero_001.png);
    height: 400px;
    display: flex;
    align-items: center;
}

.is-sub-visual-area .is-text p {
    font-size: 72px;
    font-weight: 700;
    color: #000;
    line-height: normal;
}

.is-sub-visual-area .is-text span {
    font-size: 32px;
    color: #000;
    display: inline-block;
    margin-top: 10px;
}

/* 타이틀 영역 */
.title-info-area {
    margin-top: -110px;
    text-align: center;
    padding: 60px 0;
}

.title-info-area h3 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.title-info-area p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 게시판 영역 */
.board-area {
    padding: 0 0 80px 0;
    background: #f5f5f5;
}

.board-area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.board-list-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.total-count {
    font-size: 16px;
    color: #666;
}

.total-count strong {
    color: #a0a3ff;
    font-weight: 600;
}

.btn-write {
    display: inline-block;
    padding: 10px 24px;
    background: #a0a3ff;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-write:hover {
    background: #8588e6;
}

/* PC 테이블 */
.board-table.pc-table {
    width: 100%;
    display: block;
}

.mobile-list {
    display: none;
}

.board-table table {
    width: 100%;
    border-collapse: collapse;
}

.board-table thead th {
    padding: 15px 10px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.board-table tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.board-table tbody td.subject {
    text-align: left;
}

.board-table tbody td.subject a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.board-table tbody td.subject a:hover {
    color: #a0a3ff;
}

.board-table tbody td.text-center {
    text-align: center;
}

.board-table tbody tr:hover {
    background: #f8f9fa;
}

/* 모바일 카드 리스트 */
.board-mobile-list {
    display: none;
}

.mobile-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.mobile-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-item a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.mobile-item-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.mobile-lock {
    color: #a0a3ff;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mobile-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

.mobile-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}

.mobile-author {
    color: #666;
}

.mobile-date {
    color: #999;
}

.mobile-hit {
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

.mobile-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 페이지네이션 */
.is-pagenation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.is-pagenation .ui-pagenate {
    display: flex;
    align-items: center;
    gap: 5px;
}

.is-pagenation .ui-pagenate .dir {
    display: flex;
    align-items: center;
}

.is-pagenation .ui-pagenate a,
.is-pagenation .ui-pagenate strong {
    font-size: 17px;
    padding: 8px 12px;
    margin: 0;
    height: auto;
    line-height: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.is-pagenation .ui-pagenate strong {
    color: #a0a3ff;
    font-weight: 700;
}

.is-pagenation .ui-pagenate a {
    border: none;
    color: #111;
}

.is-pagenation .ui-pagenate a:hover {
    color: #a0a3ff;
}

.is-pagenation .ui-pagenate a.txt {
    font-size: 15px;
}

/* ===================================================================
   반응형 디자인
   ================================================================ */

/* 태블릿 (992px 이하) */
@media (max-width: 992px) {
    .is-sub-visual-area {
        height: 350px;
    }

    .is-sub-visual-area .is-text p {
        font-size: 56px;
    }

    .is-sub-visual-area .is-text span {
        font-size: 26px;
    }

    .title-info-area {
        margin-top: -90px;
        padding: 50px 20px;
    }

    .title-info-area h3 {
        font-size: 32px;
    }

    .title-info-area p {
        font-size: 17px;
    }

    .board-area {
        padding: 0 0 60px 0;
    }

    .board-list-wrap {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .is-sub-visual-area {
        height: 300px;
    }

    .is-sub-visual-area .is-text p {
        font-size: 40px;
    }

    .is-sub-visual-area .is-text span {
        font-size: 20px;
        margin-top: 8px;
    }

    .title-info-area {
        margin-top: -80px;
        padding: 40px 20px;
    }

    .title-info-area h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .title-info-area p {
        font-size: 16px;
    }

    .board-area {
        padding: 0 0 50px 0;
    }

    .board-area .container {
        padding: 0 15px;
    }

    .board-list-wrap {
        padding: 20px 15px;
    }

    .board-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .total-count {
        font-size: 14px;
    }

    .board-write-btn {
        width: 100%;
    }

    .btn-write {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* PC 테이블 숨기고 모바일 리스트 표시 */
    .board-table.pc-table {
        display: none !important;
    }

    .board-mobile-list.mobile-list {
        display: block !important;
    }

    .is-pagenation {
        margin-top: 30px;
    }

    .is-pagenation .ui-pagenate a,
    .is-pagenation .ui-pagenate strong {
        font-size: 15px;
        padding: 6px 10px;
    }

    .is-pagenation .ui-pagenate a.txt {
        font-size: 13px;
    }
}

/* 스마트폰 (480px 이하) */
@media (max-width: 480px) {
    .is-sub-visual-area {
        height: 250px;
    }

    .is-sub-visual-area .is-text p {
        font-size: 32px;
    }

    .is-sub-visual-area .is-text span {
        font-size: 16px;
    }

    .title-info-area {
        margin-top: -70px;
        padding: 30px 15px;
    }

    .title-info-area h3 {
        font-size: 24px;
    }

    .title-info-area p {
        font-size: 15px;
    }

    .board-list-wrap {
        padding: 15px 10px;
    }

    .board-header {
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .total-count {
        font-size: 13px;
    }

    .btn-write {
        padding: 10px 16px;
        font-size: 13px;
    }

    .mobile-item a {
        padding: 12px;
    }

    .mobile-title {
        font-size: 14px;
    }

    .mobile-item-meta {
        font-size: 12px;
        gap: 8px;
    }
}
