/* ===================================
   BOARD PAGES COMMON STYLES
   Notice, Notice Detail, FAQ
=================================== */

/* 공지사항 페이지 스타일 - 전문적이고 모던한 느낌 */
.board-container {
    min-height: 100vh;
    background: #ffffff;
    margin-top: 12.5rem;
}

/* Breadcrumb Navigation - 카테고리 페이지와 동일 */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #6c757d;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* 반응형 - 카테고리 페이지와 동일 */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 10px 0;
        margin-bottom: 5px;
    }
    
    .breadcrumb-item a {
        font-size: 0.8rem;
    }
    .breadcrumb-item.active {
        color: #6c757d;
        font-weight: 500;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item a {
        font-size: 0.7rem;
    }
    .breadcrumb-item.active {
        color: #6c757d;
        font-weight: 500;
        font-size: 0.7rem;
    }    
}

.page-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(51, 65, 85, 0.9) 100%), 
                url('../images/earth-background.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.inquiry-page-header{
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(51, 65, 85, 0.9) 100%), 
                url('../images/contacts-images.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}



.breadcrumb-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #e2e8f0;
}

.breadcrumb-separator {
    color: #64748b;
}

.breadcrumb-current {
    color: #cbd5e1;
    font-weight: 500;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: white;
}
.page-title p{
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
    display: inline-block;
    color: white;
}
.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 100%;
    color: white;
}
.page-subtitle strong {color: white;}
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 90px;
}

.board-content {
    padding: 20px 0;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}


.menu-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

/* WhatsApp 문의 배너 */
.whatsapp-board-banner {
    display: block;
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-board-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.whatsapp-board-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .whatsapp-board-banner {
        max-width: 360px;
    }
}

.menu-header {
    background: #f8fafc;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.menu-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}



.menu-item:last-child {
    border-bottom: none;
}

.menu-link {
    display: block;
    padding: 20px 24px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.menu-link:hover {
    background: #f8fafc;
    color: #1e293b;
}

.menu-link.active {
    background: #3b82f6;
    color: white;
}



/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    min-width: 0;
}

/* 공지사항 테이블 */
.board-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.table-header {
    background: #f8fafc;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.table-stats {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.board-table th {
    background: #f8fafc;
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.board-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.board-table tbody tr:hover {
    background: #f8fafc;
    transition: background-color 0.2s ease;
}

/* 컬럼별 스타일 */
.col-number {
    width: 80px;
    text-align: center;
    font-weight: 500;
    color: #64748b;
}

.col-title {
    min-width: 300px;
    max-width: 400px;
}

.col-date {
    width: 100px;
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

.col-views {
    width: 100px;
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

/* NEW 배지 */
.new-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* 제목 링크 */
.title-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.title-link:hover {
    color: #3b82f6;
}

/* 첨부파일 아이콘 */
.attachment-icon {
    color: #94a3b8;
    flex-shrink: 0;
    opacity: 0.7;
}

/* 빈 상태 */
.empty-row {
    height: auto;
}

.empty-message {
    text-align: center;
    color: #94a3b8;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top:5rem;
}

.empty-content svg {
    color: #cbd5e1;
}

.empty-content p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.empty-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* 페이지네이션 - 카테고리 리스트와 동일한 스타일 */
.pagination-wrapper {
    padding: 1.5rem 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    user-select: none;
}

/* 일반 페이지 링크 */
.pagination a {
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    color: #1f2937;
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 현재 페이지 */
.pagination .current {
    color: #ffffff;
    background: #3b82f6;
    border: 1px solid #3b82f6;
    font-weight: 600;
}

/* 비활성 상태 */
.pagination .disabled {
    color: #9ca3af;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 점프 버튼들 */
.pagination .jump-btn {
    color: #6b7280;
    background: transparent;
    border: none;
    font-weight: 600;
}

.pagination .jump-btn:hover {
    color: #3b82f6;
    background: #eff6ff;
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    .pagination-wrapper {
        padding: 1rem 0;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.125rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0px;
    }
}

/* 검색 섹션 (하단) */
.search-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.search-header {
    text-align: center;
    margin-bottom: 24px;
}

.search-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.search-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-type-select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #475569;
    outline: none;
    transition: all 0.2s ease;
    min-width: 120px;
    font-weight: 500;
}

.search-type-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* ===================================
   NOTICE DETAIL PAGE STYLES
=================================== */

.notice-detail-container {
    min-height: 100vh;
    background: #ffffff;
    padding: 40px 0;
    margin-top:11rem;
}

.notice-detail-container .container {
    max-width: 900px;
}

/* 뒤로가기 버튼 */
.back-section {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.back-btn:hover {
    color: #2563eb;
    transform: translateX(-4px);
}

/* 공지사항 상세 */
.notice-detail {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* 헤더 */
.notice-header {
    padding: 40px;
    border-bottom: 1px solid #f1f5f4;
}

.notice-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.notice-category {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.notice-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

/* 내용 */
.notice-content {
    padding: 40px;
}

.content-body {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #334155;
}

.content-body h1, .content-body h2, .content-body h3,
.content-body h4, .content-body h5, .content-body h6 {
    color: #1e293b;
    margin: 1.8em 0 0.8em 0;
    font-weight: 600;
    line-height: 1.3;
}

.content-body h1 { font-size: 1.375rem; }
.content-body h2 { font-size: 1.25rem; }
.content-body h3 { font-size: 1.125rem; }
.content-body h4 { font-size: 1rem; }
.content-body h5 { font-size: 0.95rem; }
.content-body h6 { font-size: 0.875rem; }

.content-body p {
    margin: 0 0 1.1em 0;
}

/* 에디터 색상 상속 문제 해결 */
/* color가 설정된 span 내부의 모든 요소가 color를 상속받도록 */
.content-body span[style*="color"] * {
    color: inherit !important;
}

/* background-color만 있는 span도 부모의 color를 상속받도록 */
.content-body span[style*="background-color"]:not([style*="color"]) {
    color: inherit !important;
}

.content-body ul, .content-body ol {
    margin: 1.1em 0;
    padding-left: 1.4em !important;
    list-style-position: outside;
}

.content-body ul {
    list-style-type: disc !important;
    list-style: disc outside none !important;
}

.content-body ol {
    list-style-type: decimal !important;
    list-style: decimal outside none !important;
}

.content-body ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.content-body ul ul ul {
    list-style-type: square;
}

.content-body li {
    margin: 0.4em 0;
    line-height: 1.6;
    display: list-item !important;
    list-style-position: outside !important;
}

.content-body blockquote {
    border-left: 3px solid #3b82f6;
    padding-left: 1.2em;
    margin: 1.4em 0;
    font-style: italic;
    color: #475569;
    background: #f8fafc;
    padding: 1.2em;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
}

.content-body code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8em;
    color: #dc2626;
}

.content-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.2em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.4em 0;
    font-size: 0.8rem;
}

.content-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
    margin: 1.4em 0;
}

.content-body table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 1.4em 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    border: 1px solid #e2e8f0 !important;
}

.content-body th,
.content-body td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e2e8f0 !important;
}

.content-body table[border] {
    border: 1px solid #e2e8f0 !important;
}

.content-body table[border] th,
.content-body table[border] td {
    border: 1px solid #d1d5db !important;
}

.content-body table[border] {
    border: 1px solid #e2e8f0 !important;
}

.content-body table[border] th,
.content-body table[border] td {
    border: 1px solid #d1d5db !important;
}

.content-body th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
}

.content-body tr:hover {
    background: #f8fafc;
}

.content-body hr {
    display: block;
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2em 0;
    height: 0;
}

.content-body th,
.content-body td {
    border: 1px solid #e2e8f0;
}

.content-body tr:nth-child(even) {
    background: #f8fafc;
}

/* 글꼴 스타일 - 에디터에서 설정한 font-family를 그대로 적용 */
/* .content-body [style*="font-family"] {
    font-family: inherit !important;
} */

.content-body font[face] {
    font-family: inherit;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .content-body {
        font-size: 0.8rem;
    }
    
    .content-body h1 { font-size: 1.25rem; }
    .content-body h2 { font-size: 1.125rem; }
    .content-body h3 { font-size: 1rem; }
    .content-body h4 { font-size: 0.95rem; }
    .content-body h5 { font-size: 0.9rem; }
    .content-body h6 { font-size: 0.85rem; }
    
    .content-body table {
        font-size: 0.75rem;
    }
    
    .content-body th,
    .content-body td {
        padding: 8px 10px;
    }
}

/* 첨부파일 (하단) */
.notice-attachments {
    padding: 30px 40px;
    border-top: 1px solid #f1f5f4;
    background: #f8fafc;
}

.attachments-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.attachment-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.875rem;
}

.download-icon {
    color: #3b82f6;
}

/* 하단 네비게이션 */
.notice-navigation {
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f4;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
}

.nav-link:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.nav-link.next {
    justify-content: space-between;
}

.nav-link.prev {
    justify-content: space-between;
}

.nav-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
}

/* ===================================
   FAQ PAGE STYLES
=================================== */

.faq-item {
    border-bottom: 1px solid #f1f5f4;
    transition: all 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question.active {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.question-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.question-icon {
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-question.active .question-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-answer.active {
    padding: 24px;
    max-height: 1000px;
}



.answer-text h1, .answer-text h2, .answer-text h3,
.answer-text h4, .answer-text h5, .answer-text h6 {
    color: #1e293b;
    margin: 1.5em 0 0.7em 0;
    font-weight: 600;
    line-height: 1.3;
    font-family: inherit;
}

.answer-text h1 { font-size: 1.5rem; }
.answer-text h2 { font-size: 1.25rem; }
.answer-text h3 { font-size: 1.125rem; }
.answer-text h4 { font-size: 1rem; }
.answer-text h5 { font-size: 0.95rem; }
.answer-text h6 { font-size: 0.875rem; }

.answer-text p {
    margin: 0 0 1em 0;
}

/* 에디터 색상 상속 문제 해결 */
/* color가 설정된 span 내부의 모든 요소가 color를 상속받도록 */
.answer-text span[style*="color"] * {
    color: inherit !important;
}

/* background-color만 있는 span도 부모의 color를 상속받도록 */
.answer-text span[style*="background-color"]:not([style*="color"]) {
    color: inherit !important;
}

.answer-text ul, .answer-text ol {
    margin: 1em 0;
    padding-left: 1.4em;
    list-style-position: outside;
}

.answer-text ul {
    list-style-type: disc;
}

.answer-text ol {
    list-style-type: decimal;
}

.answer-text ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.answer-text ul ul ul {
    list-style-type: square;
}

.answer-text li {
    margin: 0.3em 0;
    line-height: 1.6;
    display: list-item !important;
    list-style-position: outside !important;
}

.answer-text blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1em;
    margin: 1.2em 0;
    font-style: italic;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
}

.answer-text hr {
    display: block;
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 1.5em 0;
    height: 0;
}

.answer-text table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 1.2em 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    border: 1px solid #e2e8f0 !important;
}

.answer-text th,
.answer-text td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #e2e8f0 !important;
}

.answer-text table[border] {
    border: 1px solid #e2e8f0 !important;
}

.answer-text table[border] th,
.answer-text table[border] td {
    border: 1px solid #d1d5db !important;
}

.answer-text th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.answer-text tr:nth-child(even) {
    background: #f8fafc;
}

.answer-text tr:hover {
    background: #f1f5f9;
}

.answer-text img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
    margin: 1.2em 0;
}

.answer-text code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    color: #dc2626;
}

.answer-text pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.2em 0;
    font-size: 0.8rem;
}

.answer-text pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 에디터에서 설정한 font-family를 그대로 적용 */
/* .answer-text [style*="font-family"] {
    font-family: inherit !important;
} */

.answer-text font[face] {
    font-family: inherit;
}

/* ===================================
   1:1 INQUIRY PAGE STYLES
=================================== */

/* 문의하기 액션 섹션 */
.inquiry-action-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    margin-bottom: 40px;
}

.action-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.action-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.create-inquiry-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.create-inquiry-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.create-inquiry-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.create-inquiry-btn.disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.inquiry-action-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-required-message {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
}

.login-required-message svg {
    color: #dc2626;
    flex-shrink: 0;
}

/* 문의 테이블 */
.inquiry-table-wrapper {
    overflow-x: auto;
}

/* PC에서 스크롤 제거 */
@media (min-width: 1024px) {
    .inquiry-table-wrapper {
        overflow-x: visible;
    }
    
    .inquiry-table {
        min-width: auto;
    }
}

.inquiry-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.inquiry-table th {
    background: #f8fafc;
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.inquiry-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.inquiry-table tbody tr:hover {
    background: #f8fafc;
    transition: background-color 0.2s ease;
}

/* 컬럼별 스타일 */
.col-status {
    width: 100px;
    text-align: center;
}

.col-answer {
    width: 100px;
    text-align: center;
}

/* 상태 배지 */
.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge.answered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.status-badge.closed {
    background: linear-gradient(135deg, #cbd5f5 0%, #94a3b8 100%);
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.3);
}

.inquiry-table .title-text {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0;
}

.inquiry-table .number-primary {
    display: block;
    font-weight: 600;
    color: #475569;
}

.inquiry-table .number-value {
    display: block;
}

.inquiry-table .number-meta {
    display: none;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.2;
}

.inquiry-table .number-meta span {
    display: block;
}

/* 답변 링크 */
.view-answer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.view-answer-link:hover {
    color: #2563eb;
}

.no-answer {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ===================================
   1:1 INQUIRY FORM STYLES
=================================== */

.inquiry-form-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.form-header {
    background: #f8fafc;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.form-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.inquiry-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-file {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    background: white;
    cursor: pointer;
}

.form-file:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

.error-message {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.cancel-btn {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* ===================================
   1:1 INQUIRY DETAIL STYLES
=================================== */

.inquiry-detail {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.inquiry-header {
    padding: 40px;
    border-bottom: 1px solid #f1f5f4;
}

.inquiry-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.inquiry-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.inquiry-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.inquiry-content {
    padding: 40px;
    border-bottom: 1px solid #f1f5f4;
}

.content-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.inquiry-attachments {
    padding: 30px 40px;
    border-bottom: 1px solid #f1f5f4;
    background: #f8fafc;
}

.admin-answer {
    padding: 40px;
    background: #f0f9ff;
    border-bottom: 1px solid #e0f2fe;
}

.answer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

/* 문의 답변 영역 스타일 */

.answer-content h1, .answer-content h2, .answer-content h3,
.answer-content h4, .answer-content h5, .answer-content h6 {
    color: #1e293b;
    margin: 1.5em 0 0.7em 0;
    font-weight: 600;
    line-height: 1.3;
    font-family: inherit;
}

.answer-content h1 { font-size: 1.5rem; }
.answer-content h2 { font-size: 1.25rem; }
.answer-content h3 { font-size: 1.125rem; }
.answer-content h4 { font-size: 1rem; }
.answer-content h5 { font-size: 0.95rem; }
.answer-content h6 { font-size: 0.875rem; }

.answer-content p {
    margin: 0 0 1em 0;
}

/* 에디터 색상 상속 문제 해결 */
/* color가 설정된 span 내부의 모든 요소가 color를 상속받도록 */
.answer-content span[style*="color"] * {
    color: inherit !important;
}

/* background-color만 있는 span도 부모의 color를 상속받도록 */
.answer-content span[style*="background-color"]:not([style*="color"]) {
    color: inherit !important;
}

.answer-content ul, .answer-content ol {
    margin: 1em 0;
    padding-left: 1.4em !important;
    list-style-position: outside;
}

.answer-content ul {
    list-style-type: disc !important;
    list-style: disc outside none !important;
}

.answer-content ol {
    list-style-type: decimal !important;
    list-style: decimal outside none !important;
}

.answer-content ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.answer-content ul ul ul {
    list-style-type: square;
}

.answer-content li {
    margin: 0.3em 0;
    line-height: 1.6;
    display: list-item !important;
    list-style-position: outside !important;
}

.answer-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1em;
    margin: 1.2em 0;
    font-style: italic;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
}

.answer-content hr {
    display: block;
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 1.5em 0;
    height: 0;
}

.answer-content table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 1.2em 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    border: 1px solid #e2e8f0 !important;
}

.answer-content th,
.answer-content td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #e2e8f0 !important;
}

.answer-content table[border] {
    border: 1px solid #e2e8f0 !important;
}

.answer-content table[border] th,
.answer-content table[border] td {
    border: 1px solid #d1d5db !important;
}

.answer-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.answer-content tr:nth-child(even) {
    background: #f8fafc;
}

.answer-content tr:hover {
    background: #f1f5f9;
}

.answer-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
    margin: 1.2em 0;
}

.answer-content code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    color: #dc2626;
}

.answer-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.2em 0;
    font-size: 0.8rem;
}

.answer-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 에디터에서 설정한 font-family를 그대로 적용 */
/* .answer-content [style*="font-family"] {
    font-family: inherit !important;
} */

.answer-content font[face] {
    font-family: inherit;
}

.no-answer-section {
    padding: 40px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f4;
}

.no-answer-content {
    text-align: center;
    color: #64748b;
}

.no-answer-content svg {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.no-answer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px 0;
}

.no-answer-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ===================================
   LOGIN REQUIRED PAGE STYLES
=================================== */

.login-required-container {
    margin-top:13rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-required-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid #f1f5f9;
}

.login-required-icon {
    margin-bottom: 24px;
    color: #64748b;
}

.login-required-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.login-required-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.login-required-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.register-btn {
    background: white;
    color: #3b82f6;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid #3b82f6;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.back-link:hover {
    color: #475569;
    transform: translateX(-4px);
}


@media (min-width: 1024px) {
/* 좌측 메뉴 */
.left-menu {
    width: 280px;
    flex-shrink: 0;
    position: sticky !important;
    top: 220px !important; /* 헤더 높이 + 여백 */
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto;
    z-index: 10;
}

.scroll-follow-page .board-content {
    align-items: flex-start;
}
}
/* 반응형 디자인 */
@media (max-width: 1024px) {
    .board-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .left-menu {
        width: 100% !important;
        position: static !important; /* 모바일에서는 sticky 비활성화 */
        top: auto !important;
        max-height: none !important;
        left: auto !important;
    }
    
    .menu-list {
        display: flex;
        border-radius: 0;
        justify-content: space-between;
    }
    
    .menu-item {
        border-bottom: none;
        border-right: 1px solid #f1f5f4;
        flex-shrink: 0;
        width: 50%;
    }
    
    .menu-item:last-child {
        border-right: none;
    }
    
    .menu-link {
        padding: 16px 20px;
        white-space: nowrap;
    }
    
    .action-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .inquiry-form {
        padding: 24px 8px;
    }
    
    .inquiry-form-wrapper {
        margin: 0 4px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .inquiry-header,
    .inquiry-content,
    .inquiry-attachments,
    .admin-answer,
    .no-answer-section {
        padding: 24px;
    }
    
    .login-required-content {
        padding: 40px 24px;
    }
    
    .login-required-actions {
        flex-direction: column;
        gap: 12px;
    }
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    .page-title p {
        font-size: 1.1rem;
    }
    
    .board-content {
        padding: 30px 0;
        gap: 25px;
    }
    
    .table-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .board-table th,
    .board-table td {
        padding: 16px 20px;
        font-size: 0.8rem;
    }
    
    .col-title {
        min-width: auto;
    }
    
    .col-number,
    .col-date,
    .col-views {
        width: auto;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-type-select,
    .search-input,
    .search-btn {
        width: 100%;
    }
    
    .notice-detail-container {
        padding: 20px 0;
    }
    
    .notice-header,
    .notice-content,
    .notice-attachments,
    .notice-navigation {
        padding: 24px 20px;
    }
    
    .notice-title {
        font-size: 1.5rem;
    }
    
    .notice-info {
        gap: 16px;
    }
    
    .content-body {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .content-body h1 { font-size: 1.25rem; }
    .content-body h2 { font-size: 1.125rem; }
    .content-body h3 { font-size: 1rem; }
    .board-container {
        margin-top: 207px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .board-table th,
    .board-table td {
        padding: 14px 16px;
        font-size: 0.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .inquiry-form {
        padding: 20px 4px;
    }
    
    .inquiry-form-wrapper {
        margin: 0 2px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .search-section {
        padding: 24px 20px;
    }
    
    .table-header {
        padding: 16px 20px;
    }
    .board-container{
        margin-top:187px;
    }
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}


/* 공지사항 테이블 */
.notice-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #f1f5f9;
}

.table-header {
    background: #f8fafc;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.table-stats {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.notice-table th {
    background: #f8fafc;
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notice-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.notice-table tbody tr:hover {
    background: #f8fafc;
    transition: background-color 0.2s ease;
}

.notice-row--pinned {
    background-color: #eff7ff;
}

.notice-row--pinned:hover {
    background-color: #fff2dd;
}
.pin-icon{ max-width:25px;}
.pin-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #b45309;
    background: #ffedd5;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(180, 83, 9, 0.15);
    margin-right: 8px;
}

.notice-table .title-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.notice-table .title-text {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0;
}

.notice-table .number-primary {
    display: block;
    font-weight: 600;
    color: #475569;
}

.notice-table .number-value {
    display: block;
}

.notice-table .number-meta {
    display: none;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.2;
}

/* 컬럼별 스타일 */
.col-number {
    width: 80px;
    text-align: center;
    font-weight: 500;
    color: #64748b;
}

.col-title {
    min-width: 300px;
    max-width: 400px;
}

.col-date {
    width: 100px;
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

.col-views {
    width: 100px;
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

/* NEW 배지 */
.new-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* 제목 링크 */
.title-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.title-link:hover {
    color: #3b82f6;
}

/* 첨부파일 아이콘 */
.attachment-icon {
    color: #94a3b8;
    flex-shrink: 0;
    opacity: 0.7;
}

/* 빈 상태 */
.empty-row {
    height: 200px;
}

.empty-message {
    text-align: center;
    color: #94a3b8;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-content svg {
    color: #cbd5e1;
}

.empty-content p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.empty-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* 페이지네이션 - 카테고리 리스트와 동일한 스타일 */
.pagination-wrapper {
    padding: 1.5rem 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    user-select: none;
}

/* 일반 페이지 링크 */
.pagination a {
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    color: #1f2937;
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 현재 페이지 */
.pagination .current {
    color: #ffffff;
    background: #3b82f6;
    border: 1px solid #3b82f6;
    font-weight: 600;
}

/* 비활성 상태 */
.pagination .disabled {
    color: #9ca3af;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 점프 버튼들 */
.pagination .jump-btn {
    color: #6b7280;
    background: transparent;
    border: none;
    font-weight: 600;
}

.pagination .jump-btn:hover {
    color: #3b82f6;
    background: #eff6ff;
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    .pagination-wrapper {
        padding: 1rem 0;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.125rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0px;
    }
}

/* 검색 섹션 (하단) */
.search-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.search-header {
    text-align: center;
    margin-bottom: 24px;
}

.search-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.search-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-type-select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #475569;
    outline: none;
    transition: all 0.2s ease;
    min-width: 120px;
    font-weight: 500;
}

.search-type-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* 모바일 숨김 클래스 */
.mobile-hide {
    display: none !important;
}

@media (min-width: 769px) {
    .mobile-hide {
        display: block !important;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 !important;
    }
    
    .page-title {
        font-size: 2rem !important;
    }
    
    .notice-content {
        padding: 30px 0 !important;
    }
    
    .table-header {
        padding: 20px 24px !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    
    .notice-table th,
    .notice-table td {
        padding: 16px 20px !important;
        font-size: 0.8rem !important;
    }

    .notice-table thead .col-date,
    .notice-table tbody .col-date {
        display: none !important;
    }

    .notice-table .col-number {
        text-align: left !important;
        width: 1% !important;
        white-space: nowrap !important;
        padding-left: 12px !important;
        padding-right: 8px !important;
    }

    .notice-table .number-meta {
        display: block !important;
    }

    .notice-table .title-text {
        max-width: 100% !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        max-height: 2.8em !important;
    }

    .inquiry-table {
        min-width: 100%;
    }

    .inquiry-table thead .col-author,
    .inquiry-table tbody .col-author,
    .inquiry-table thead .col-date,
    .inquiry-table tbody .col-date,
    .inquiry-table thead .col-answer,
    .inquiry-table tbody .col-answer {
        display: none;
    }

    .inquiry-table .col-number {
        text-align: left;
        width: 1%;
        white-space: nowrap;
        padding-left: 12px;
        padding-right: 8px;
    }
    
    .inquiry-table .col-status {
        width: 1%;
        white-space: nowrap;
        padding-left: 8px;
        padding-right: 12px;
    }
    
    .inquiry-table .col-title {
        width: auto;
        min-width: 0;
    }

    .inquiry-table .number-meta {
        display: block;
    }

    .inquiry-table .title-link {
        display: flex;
        align-items: center;
        max-width: 100%;
    }
    
    .inquiry-table .title-text {
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        line-height: 1.4;
        max-height: 2.8em;
    }
    
    .inquiry-table .number-primary.mobile-hide {
        display: none;
    }
    
    .inquiry-table .meta-author.mobile-hide {
        display: none;
    }

    .inquiry-table .col-status {
        width: auto;
        text-align: right;
        padding-left: 12px;
        padding-right: 12px;
    }

    .inquiry-table .status-badge {
        display: inline-block;
        padding: 3px 6px;
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }
    
    .inquiry-table .status-badge.answered {
        font-size: 0.58rem;
        padding: 3px 6px;
    }
    
    .col-title {
        min-width: auto;
    }
    
    .col-number,
    .col-date,
    .col-views {
        width: auto;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-type-select,
    .search-input,
    .search-btn {
        width: 100%;
    }
    .menu-link{text-align: center;}
    .menu-item.detail {
        width: 50%;
    }
    .menu-list.detail {
        overflow: hidden;
    }
    .action-buttons {
        margin: 0px;
    }
    .content-body p{padding:10px;}
    .breadcrumb-nav {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }    
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .notice-table th,
    .notice-table td {
        padding: 14px 16px;
        font-size: 0.75rem;
    }

    .notice-table .title-text {
        max-width: 100%;
    }
    
    .notice-table .col-number {
        width: 1%;
        white-space: nowrap;
        padding-left: 8px;
        padding-right: 6px;
    }
    
    .notice-table .col-title {
        width: auto;
        min-width: 0;
    }

    .inquiry-table .col-number {
        width: 1%;
        white-space: nowrap;
        padding-left: 8px;
        padding-right: 6px;
    }
    
    .inquiry-table .col-status {
        width: 1%;
        white-space: nowrap;
        padding-left: 6px;
        padding-right: 8px;
    }
    
    .inquiry-table .col-title {
        width: auto;
        min-width: 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 24px 20px;
    }
    
    .table-header {
        padding: 16px 20px;
    }
    .board-container{
        margin-top:187px;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

/* ===== Mobile refinements (append) ===== */
@media (max-width: 768px) {
	/* Notices: hide pinned badge, strengthen ellipsis, prevent horizontal scroll */
	.notice-table {
		width: 100% !important;
		table-layout: auto !important;
	}
	.notice-table th, .notice-table td {
		word-break: break-word !important;
		vertical-align: middle !important;
	}
	
	.notice-table .col-number {
		width: 1% !important;
		white-space: nowrap !important;
		padding-left: 12px !important;
		padding-right: 8px !important;
	}
	
	.notice-table .col-title {
		width: auto !important;
		min-width: 0 !important;
	}
	.notice-table .pin-badge,
	.notice-table .pinned-badge,
	.notice-table .badge-pinned,
	.notice-table .PINNED,
	.notice-table .pinned {
		display: none !important;
	}
	.notice-table .col-title .title-link {
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
		max-width: 100% !important;
	}
	
	.notice-table .col-title .pin-icon {
		flex-shrink: 0 !important;
		width: 16px !important;
		height: 16px !important;
		object-fit: contain !important;
	}
	
	.notice-table .col-title .title-text {
		flex: 1 !important;
		min-width: 0 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: normal !important;
		line-height: 1.4 !important;
		max-height: 2.8em !important;
		color: inherit !important;
	}
	
	.notice-table .col-title .attachment-icon {
		flex-shrink: 0 !important;
		width: 16px !important;
		height: 16px !important;
	}
	
	.notice-table .col-views.mobile-hide,
	.notice-table th.col-views.mobile-hide {
		display: none !important;
	}
	
	/* Inquiries: title with 2-line ellipsis (PC length maintained) */
	.inquiry-table {
		width: 100%;
		table-layout: auto;
	}
	.inquiry-table th, .inquiry-table td {
		word-break: break-word;
		vertical-align: middle;
	}
	
	.inquiry-table .col-number {
		width: 1%;
		white-space: nowrap;
		padding-left: 12px;
		padding-right: 8px;
	}
	
	.inquiry-table .col-status {
		width: 1%;
		white-space: nowrap;
		padding-left: 8px;
		padding-right: 12px;
	}
	
	.inquiry-table .col-title {
		width: auto;
		min-width: 0;
	}
	.inquiry-table .col-title .title-link {
		display: flex;
		align-items: center;
		gap: 6px;
		max-width: 100%;
	}
	
	.inquiry-table .col-title .title-text {
		flex: 1;
		min-width: 0;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: normal;
		line-height: 1.4;
		max-height: 2.8em;
		color: inherit;
	}
	
	.inquiry-table .col-title .attachment-icon {
		flex-shrink: 0;
		width: 16px;
		height: 16px;
	}
	
	/* Containers: remove horizontal scroll */
	.board-content,
	.board-container,
	.board-table-wrapper,
	.notice-table-wrapper,
	.inquiry-table-wrapper,
	.m_cont,
	.mc_contents {
		overflow-x: hidden !important;
	}
}