/* Styles for Notice Board Page */
.notice-section {
    padding: 100px 0;
    background: #f8fafc;
}

/* Category Filter Bar */
.notice-filter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 45px;
}

.notice-categories {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-cat-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    outline: none;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-cat-btn:hover {
    color: #4f46e5;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.notice-cat-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

/* Search Bar */
.notice-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.notice-search-box input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    outline: none;
    padding: 12px 20px 12px 45px;
    border-radius: 50px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.3s ease;
}

.notice-search-box input:focus {
    border-color: #4f46e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.notice-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

/* Notice Cards Grid */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notice-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.notice-card.urgent::before {
    background: #ef4444;
}

.notice-card.update::before {
    background: #3b82f6;
}

.notice-card.general::before {
    background: #10b981;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.notice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.notice-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.notice-badge.urgent {
    background: #fee2e2;
    color: #ef4444;
}

.notice-badge.update {
    background: #dbeafe;
    color: #2563eb;
}

.notice-badge.general {
    background: #d1fae5;
    color: #059669;
}

.notice-date {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.notice-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.notice-card:hover .notice-title {
    color: #4f46e5;
}

.notice-summary {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Expansion Trigger */
.notice-expand-btn {
    background: none;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    cursor: pointer;
    margin-top: 15px;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.notice-expand-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.notice-expand-btn:hover {
    color: #4338ca;
}

/* Collapsible Content Area */
.notice-full-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.notice-card.is-expanded .notice-full-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.notice-card.is-expanded .notice-expand-btn i {
    transform: rotate(180deg);
}

.notice-content-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
}

.notice-content-body p {
    margin-bottom: 15px;
}

.notice-content-body p:last-child {
    margin-bottom: 0;
}

.notice-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.notice-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-author i {
    color: #cbd5e1;
}

/* Animations for item toggle hide/show filtering */
.notice-card.is-hidden {
    display: none;
}

/* Responsive Rules */
@media (max-width: 767px) {
    .notice-section {
        padding: 60px 0;
    }
    
    .notice-filter-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .notice-categories {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .notice-categories::-webkit-scrollbar {
        display: none;
    }
    
    .notice-cat-btn {
        flex-shrink: 0;
    }
    
    .notice-search-box {
        max-width: 100%;
    }
    
    .notice-card {
        padding: 24px 20px;
    }
    
    .notice-title {
        font-size: 18px;
    }
}
