@charset "utf-8";

/* ========================================
   게시판 전용 스타일시트
   - 메인 사이트와 완전 분리
   - 모든 클래스명에 board- prefix 사용
   - 절대 충돌 없는 독립 스타일
   ======================================== */

/* Body margin 제거 */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* 관리자 로그인 메시지 숨김 */
#hd_login_msg {
    display: none !important;
}

/* CSS Reset for Board Area */
.board-wrapper * {
    box-sizing: border-box;
}

/* ========================================
   게시판 전용 헤더
   ======================================== */
.board-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    width: 100%;
}

.board-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1150px;
    margin: 0 auto;
    padding: 15px 40px;
    box-sizing: border-box;
}

.board-logo a {
    display: block;
}

.board-logo img {
    height: 40px;
    width: auto;
}

.board-nav {
    display: flex;
}

.board-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.board-nav-item {
    position: relative;
}

.board-nav-link {
    display: block;
    padding: 8px 16px;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'SUIT', sans-serif;
}

.board-nav-link:hover {
    color: #6699cc;
}

.board-nav-admin {
    background: #6699cc;
    color: #ffffff !important;
    border-radius: 6px;
}

.board-nav-admin:hover {
    background: #5a8dc4;
}

/* 햄버거 메뉴 (모바일) */
.board-hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    z-index: 10001;
}

.board-hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   서브 페이지 히어로 섹션
   ======================================== */
.board-hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #1f2937;
}

.board-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.board-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.7;
}

.board-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.3), rgba(102, 153, 204, 0.2));
    z-index: 2;
}

.board-hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 3;
}

#board-container .board-hero-content {
    display: none;
}

#board-wrapper .board-hero-section {
    display: none !important;
}

.board-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.board-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #e5e7eb;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   게시판 컨테이너
   ======================================== */
.board-wrapper {
    min-height: calc(100vh - 80px);
    background: #f9fafb;
}

.board-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    box-sizing: border-box;
}

/* ========================================
   게시판 전용 푸터 (메인 푸터 스타일 복제)
   ======================================== */
.board-footer {
    background: #000000;
    color: white;
    margin-top: auto;
    overflow: hidden;
}

.board-footer-info-section {
    background: #000000;
    color: white;
    padding: 4vh 0 3vh;
    overflow: hidden;
}

.board-footer-content-wrapper {
    width: 100%;
    max-width: 71vw;
    margin: 0 auto;
}

.board-footer-info-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2vh;
    width: 100%;
}

.board-footer-info-column {
    flex: 0 0 auto;
}

.board-footer-info-column h4 {
    font-family: var(--font-family-korean), 'SUIT', sans-serif;
    font-size: 0.9vw;
    font-weight: 700;
    color: #6699cc;
    margin: 0 0 1.2vh 0;
}

.board-footer-info-column p {
    font-family: var(--font-family-korean), 'SUIT', sans-serif;
    font-size: 0.75vw;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 0.6vh 0;
}

.board-footer-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1.5vh;
    width: 100%;
    gap: 1.5vw;
}

.board-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.board-footer-bottom-links span {
    font-family: var(--font-family-korean), 'SUIT', sans-serif;
    font-size: 0.75vw;
    font-weight: 400;
    color: #ffffff;
}

.board-footer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.board-footer-link:hover {
    color: #6699cc;
    text-decoration: underline;
}

.board-footer-copyright-text {
    font-family: var(--font-family-korean), 'SUIT', sans-serif;
    font-size: 0.75vw;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.board-admin-login-btn {
    font-family: var(--font-family-korean), 'SUIT', sans-serif;
    font-size: 0.75vw;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5vh 1vw;
    border: 1px solid #ffffff;
    border-radius: 0.4vh;
    transition: all 0.3s ease;
}

.board-admin-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   반응형 (모바일)
   ======================================== */
@media (max-width: 1024px) {
    .board-header-container {
        padding: 15px 20px;
    }

    .board-nav {
        display: none;
    }

    .board-hamburger-menu {
        display: flex;
    }

    .board-container {
        padding: 30px 20px 60px;
    }

    /* 히어로 섹션 태블릿 대응 */
    .board-hero-section {
        height: 250px;
    }

    .board-hero-title {
        font-size: 40px;
    }

    .board-hero-subtitle {
        font-size: 16px;
    }

    /* 푸터 태블릿 대응 */
    .board-footer-content-wrapper {
        max-width: 90%;
        padding: 0 20px;
    }

    .board-footer-info-grid {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .board-logo img {
        height: 32px;
    }

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

    .board-container {
        padding: 20px 15px 40px;
    }

    /* 히어로 섹션 모바일 대응 */
    .board-hero-section {
        height: 200px;
    }

    .board-hero-title {
        font-size: 32px;
    }

    .board-hero-subtitle {
        font-size: 14px;
    }

    /* 푸터 모바일 대응 */
    .board-footer-info-section {
        padding: 40px 0 30px;
    }

    .board-footer-content-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }

    .board-footer-info-grid {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .board-footer-info-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #6699cc;
    }

    .board-footer-info-column p {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.5;
        color: #ffffff;
    }

    .board-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
        margin-top: 20px;
        border-top: 1px solid #333;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .board-footer-bottom-links {
        gap: 8px;
        order: -1;
    }

    .board-footer-bottom-links span {
        font-size: 12px;
        color: #ffffff;
    }

    .board-footer-copyright-text {
        font-size: 12px;
        color: #ffffff;
    }

    .board-admin-login-btn {
        font-size: 12px;
        color: #ffffff;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    /* 히어로 섹션 작은 모바일 대응 */
    .board-hero-section {
        height: 150px;
    }

    .board-hero-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .board-hero-subtitle {
        font-size: 13px;
    }
}

/* ========================================
   게시판/서브 페이지 모바일 메뉴
   ======================================== */
.board-mobile-menu {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    width: 100%;
    max-height: calc(100vh - 57px);
    overflow-y: auto;
}

.board-mobile-menu.active {
    display: block;
    pointer-events: auto;
}

.board-mobile-menu-content {
    padding: 20px;
}

.board-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-mobile-nav-list li {
    border-bottom: 1px solid #f3f4f6;
}

.board-mobile-nav-list li:last-child {
    border-bottom: none;
}

.board-mobile-nav-list a {
    display: block;
    padding: 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.board-mobile-nav-list a:hover {
    color: #6699cc;
}

/* 햄버거 메뉴 활성화 상태 */
.board-hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.board-hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.board-hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


@media (max-width: 768px) {
    .board-hamburger-menu {
        display: flex;
    }

    .board-nav {
        display: none;
    }
}
