/* 뉴스 게시판(보드) 전용 스타일 */
.news-board .board-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.news-board .board-header h2 {
    margin: 0;
    flex-shrink: 0;
    margin-right: 70px;
}
.news-board .board-header .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}
.news-board .board-header .search-box input[type="text"] {
    min-width: 240px;
    max-width: 320px;
    width: 100%;
    padding: 5px 16px;
    border: 2px solid #3d2e5a;
    border-radius: 8px;
    background: #f7f7fa;
    font-size: 1.1rem;
    color: #232946;
    transition: all 0.3s ease;
}
.news-board .board-header .search-box input[type="text"]:focus {
    outline: none;
    border-color: #a259e6;
    box-shadow: 0 0 0 3px rgba(162, 89, 230, 0.1);
    background: #f0eef6;
}
.news-board .board-header .search-box input[type="text"]::placeholder {
    color: #6c757d;
    font-style: italic;
}
.news-board .board-header .search-box .search-btn {
    padding: 6px 16px;
    background: #6c3cff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.news-board .board-header .search-box .search-btn:hover {
    background: #4b2bbd;
}
.news-board .board-header .search-box .search-btn i {
    font-size: 1.2rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 40px 0 0 0;
}
.post-item {
    background: linear-gradient(135deg, #232946 80%, #6c3cff 100%);
    border-radius: 18px 18px 18px 8px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    padding: 5px 20px 5px 20px;
    color: #fff;
    max-width: 830px;
    min-width: 830px;
    max-height: 1000px;
    min-height: 30px;
    margin-left: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    overflow: hidden;
}
.post-item::before {
    content: '\1F517'; /* 🔗 */
    position: absolute;
    left: -16px;
    top: 28px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #232946 80%, #6c3cff 100%);
    border-radius: 18px 0 18px 18px;
    transform: rotate(-30deg);
    z-index: 0;
}
.post-meta, .post-more-btn, .post-link-btn {
    flex-shrink: 0;
}
.post-author, .post-date, .post-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
}
.post-author {
    line-height: 1.7;
    height: 28px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1rem;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-date {
    line-height: 1.7;
    height: 28px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1rem;
    font-weight: bold;
    color: #7c3aed;
    margin-bottom: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-content {
    flex: 1 1 0;
    font-size: 1.05rem;
    line-height: 1.7;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.2em;
    transition: max-height 0.3s;
    text-align: left;
}
.post-item.expanded .post-content {
    display: block;
    max-height: none;
    overflow: visible;
    text-overflow: unset;
}
.post-more-btn, .post-link-btn {
    background: #fff;
    color: #6c3cff;
    border: none;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(108,60,255,0.08);
}
.post-more-btn:first-of-type, .post-link-btn:first-of-type {
    margin-left: 0;
}
.post-more-btn:hover {
    background: #ece6ff;
    color: #6c3cff;
    text-decoration: none;
    box-shadow: none;
}
.post-link-btn {
    background: none;
    border: none;
    color: #10b981;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-link-btn:hover {
    background-color: #10b981;
    color: white;
    transform: scale(1.1);
}

.post-scroll-container {
    max-height: 500px;
    min-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 20px;
}
.post-scroll-container::-webkit-scrollbar {
    width: 8px;
    background: #e5e0f7;
    border-radius: 8px;
}
.post-scroll-container::-webkit-scrollbar-thumb {
    background: #a259e6;
    border-radius: 8px;
}
.post-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #6c3cff;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0;
    width: 200px;
}

/* 날짜 네비게이션 */
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3px;
    padding: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 830px;
    min-width: 830px;
}

.current-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 120px;
    text-align: center;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn i {
    font-size: 1.1rem;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-search-results {
    text-align: center;
    padding: 30px 20px;
    min-width: 830px;
    max-width: 830px;
    color: #dc3545;
    font-size: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
} 