/* Board Common Styles */
.page-header {
    background: linear-gradient(135deg, #E8F0FE 0%, #F8F9FA 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

.board-section {
    background: #F8F9FA;
    padding: 40px 0;
    min-height: 600px;
}

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

.board-search {
    margin-bottom: 30px;
    text-align: right;
}

.board-search form {
    display: inline-flex;
    gap: 8px;
}

.board-search input {
    width: 300px;
    padding: 10px 16px;
    border: 1px solid #E5E5E7;
    border-radius: 8px;
    font-size: 14px;
}

.board-search button {
    padding: 10px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-search button:hover {
    background: #0F1F7A;
}

.board-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.board-table thead {
    background: #F8F9FA;
}

.board-table th {
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #E5E5E7;
    white-space: nowrap;
}

.board-table td {
    padding: 16px 12px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #E5E5E7;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .board-table th,
    .board-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

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

.board-table a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.board-table a:hover {
    color: var(--primary-blue);
}

.badge-important {
    display: inline-block;
    padding: 2px 8px;
    background: #FF6900;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-right: 8px;
}

.file-icon {
    color: #999;
    margin-left: 4px;
}

.board-buttons {
    margin-top: 24px;
    text-align: right;
}

.write-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.write-btn:hover {
    background: #0F1F7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: white;
    border: 1px solid #E5E5E7;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #F8F9FA;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination .current {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.board-notice {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.board-notice h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.board-notice ul {
    list-style: none;
    padding: 0;
}

.board-notice li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #666;
}

.board-notice li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary-blue);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* News specific */
.news-source {
    color: #666;
    font-size: 13px;
}

/* Post content styles */
.post-content {
    line-height: 1.8;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert.success {
    background: #D4EDDA;
    color: #155724;
    border-left: 4px solid #28A745;
}

.alert.error {
    background: #FFF0F0;
    color: #DC3545;
    border-left: 4px solid #DC3545;
}