/* Notice Board Styles */
.notice-board-modern {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    position: relative;
}

.notice-board-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.notice-board-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.notice-board-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.notice-board-header h3 {
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.notice-board-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.notice-tabs {
    background: var(--off-white);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.notice-tab-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    margin-right: 0.5rem;
    border-radius: 40px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notice-tab-btn.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
}

.notice-tab-btn:hover:not(.active) {
    background: var(--border-light);
    color: var(--primary-blue);
}

.notice-content {
    padding: 1.5rem;
    max-height: 550px;
    overflow-y: auto;
}

.notice-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notice-card:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow-soft);
}

.notice-card.featured {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-left: 4px solid var(--accent-gold);
}

.notice-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.notice-category {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-important {
    background: var(--primary-red);
    color: white;
}

.category-event {
    background: var(--accent-gold);
    color: var(--primary-blue-dark);
}

.category-admission {
    background: var(--primary-blue);
    color: white;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.notice-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.notice-meta i {
    color: var(--primary-red);
    margin-right: 0.25rem;
}

.notice-footer-link {
    margin-top: 0.75rem;
    text-align: right;
}

.notice-footer-link a {
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.notice-footer-link a:hover {
    color: var(--primary-red);
}

.view-all-btn {
    background: var(--off-white);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.view-all-btn a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.view-all-btn a:hover {
    color: var(--primary-red);
}

.notice-content::-webkit-scrollbar {
    width: 5px;
}

.notice-content::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

/* Modal Styles */
.notice-modal .modal-content {
    border: none;
    overflow: hidden;
}

.notice-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border: none;
    padding: 1.5rem;
}

.notice-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.8rem;
    opacity: 0.8;
}

.notice-modal .modal-body {
    padding: 2rem;
}

.modal-category-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.attachment-section {
    background: var(--off-white);
    border-radius: 1rem;
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.attachment-section h6 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attachment-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.attachment-list li:last-child {
    border-bottom: none;
}

.attachment-list li i {
    font-size: 1.2rem;
    color: var(--primary-red);
    width: 24px;
}

.attachment-list li a {
    color: var(--primary-blue);
    text-decoration: none;
    flex: 1;
}

.attachment-list li a:hover {
    color: var(--primary-red);
}

.attachment-list li .file-size {
    font-size: 0.7rem;
    color: var(--text-secondary);
}