/* Sub Page Header */
.sub-page-header {
    background: var(--bg-gradient);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.sub-page-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.sub-page-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Nav Link */
.nav-link-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-dark);
}

.nav-link-home:hover {
    background: var(--border-light);
}

/* Board Section */
.board-section {
    padding: 60px 0 100px;
    min-height: 60vh;
}

/* Board Tabs */
.board-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    background: var(--bg-light);
    color: var(--text-medium);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background: var(--border-light);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Tab Contents */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notice List Style */
.board-list {
    border-top: 2px solid var(--primary-color);
    margin-bottom: 40px;
}

.board-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text-dark);
}

.board-item-wrap {
    border-bottom: 1px solid var(--border-light);
}

.board-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.board-item:hover {
    background: var(--bg-secondary);
}

.notice-highlight {
    background: rgba(59, 130, 246, 0.05);
}

.col-no {
    width: 10%;
    font-weight: 600;
    color: var(--text-light);
}

.col-title {
    width: 70%;
    text-align: left;
    padding: 0 20px;
}

.col-title a,
.col-title .notice-title {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-title a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.notice-chevron {
    font-size: 0.8rem;
    margin-left: 5px;
    color: #aaa;
}

.col-date {
    width: 20%;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.badge-notice {
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.board-content {
    display: none;
    padding: 30px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.board-content.is-open {
    display: block;
}

.board-gallery-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.gallery-section-title {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Gallery Grid Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.gallery-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 24px;
}

.gallery-info h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-date {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.gallery-desc {
    margin-top: 8px;
    color: var(--text-medium);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 600;
}

.page-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .col-no {
        display: none;
    }

    .col-date {
        width: 30%;
        font-size: 0.85rem;
        text-align: right;
    }

    .col-title {
        width: 70%;
        padding: 0 10px 0 20px;
    }

    .tab-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
