/* Board Common Styles */
.board-section {
    padding: 100px 0;
    background: #f8fafc;
    min-height: 70vh;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.board-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.board-info p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.board-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Search and Filter Controls */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.search-area {
    flex: 1;
    max-width: 500px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.search-category {
    border: none;
    border-radius: 0;
    min-width: 120px;
    border-right: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.search-category:focus {
    box-shadow: none;
    border-color: #e2e8f0;
}

.search-input {
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.search-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.btn-search {
    background: var(--secondary-color);
    border: none;
    padding: 0 20px;
    color: white;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--primary-color);
    color: white;
}

.filter-area {
    min-width: 150px;
}

.sort-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    padding: 10px 15px;
}

.sort-select:focus {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    border-color: var(--secondary-color);
}

/* Notice List Styles */
.board-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: rgba(74, 144, 226, 0.02);
    transform: translateX(5px);
}

.notice-item.important {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(16, 185, 129, 0.03));
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    padding: 30px 25px;
    margin-bottom: 20px;
}

.notice-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 70px;
    justify-content: center;
}

.notice-info {
    flex: 1;
    min-width: 0;
}

.notice-title {
    margin: 0 0 10px 0;
}

.notice-title a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.notice-title a:hover {
    color: var(--secondary-color);
}

.notice-item.important .notice-title a {
    font-size: 1.3rem;
    font-weight: 700;
}

.notice-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.notice-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.notice-meta i {
    font-size: 0.8rem;
}

.notice-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.notice-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Tabs */
.category-tabs {
    margin-bottom: 30px;
}

.nav-tabs {
    border: none;
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs .nav-link:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    background: var(--secondary-color);
    color: white;
}

.nav-tabs .nav-link i {
    font-size: 1rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.resource-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.resource-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.02), rgba(255, 255, 255, 1));
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0;
}

.file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.file-icon i {
    font-size: 2.5rem;
    color: #ef4444;
}

.file-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
}

.resource-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.resource-content {
    padding: 20px;
}

.resource-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.resource-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 20px;
}

.download-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.resource-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-download {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}

.btn-download:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-preview {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-preview:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--secondary-color);
}

.page-item.active .page-link {
    background: var(--secondary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .board-section {
        padding: 60px 0;
    }

    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .board-info h2 {
        font-size: 2rem;
    }

    .board-stats {
        flex-direction: row;
        gap: 15px;
        width: 100%;
    }

    .stat-item {
        flex: 1;
        padding: 12px 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .board-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .search-area {
        max-width: none;
    }

    .search-box {
        flex-direction: column;
    }

    .search-category {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0;
    }

    .filter-area {
        min-width: auto;
    }

    .board-content {
        padding: 20px 15px;
    }

    .notice-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .notice-item.important {
        padding: 25px 20px;
    }

    .notice-meta {
        gap: 10px;
    }

    .notice-thumbnail {
        align-self: flex-start;
        width: 100%;
        height: 120px;
        order: -1;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .nav-tabs .nav-link {
        text-align: center;
        margin: 2px 0;
    }
}

@media (max-width: 480px) {
    .board-info h2 {
        font-size: 1.8rem;
    }

    .board-stats {
        flex-direction: column;
        gap: 10px;
    }

    .notice-title a {
        font-size: 1rem;
    }

    .notice-item.important .notice-title a {
        font-size: 1.1rem;
    }

    .resource-actions {
        flex-direction: column;
        gap: 8px;
    }

    .pagination {
        padding: 5px;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
