/* Notice Section Styles */
.notice-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.notice-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.notice-section .section-title {
    display: inline-block;
    margin: 0;
}

.view-all-container {
    text-align: right;
    margin-top: 1.5rem;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.view-all-link:hover {
    gap: 0.6rem;
    color: var(--secondary-color);
}

.notice-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.notice-item:hover {
    background: #fefbf6;
    transform: translateX(5px);
}

.notice-badge {
    display: none;
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-title-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.important-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.notice-summary {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.notice-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.notice-meta-item i {
    color: var(--primary-color);
}

.notice-empty,
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.notice-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Notice Detail Modal */
.notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.notice-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notice-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.notice-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    padding-right: 2rem;
}

.notice-modal-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.notice-modal-body {
    padding: 2.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.notice-modal-body p {
    margin-bottom: 1rem;
}

/* Pagination */
.page-btn {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 44px;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .notice-section {
        padding: 2rem 0;
    }

    .notice-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.5rem;
    }

    .notice-meta {
        width: 100%;
        justify-content: space-between;
    }

    .notice-modal-content {
        max-height: 90vh;
        margin: 1rem;
    }

    .notice-modal-header,
    .notice-modal-body {
        padding: 1.5rem;
    }
}
