/* Notices page styles */

.page-hero { 
    background: linear-gradient(135deg, #f0f7ff, #f7fbff); 
    padding: 3.5rem 0; 
    text-align: center; 
    border-bottom: 1px solid #e5e9f0;
}
.page-hero .page-title { 
    font-size: 36px; 
    margin-bottom: 12px; 
    color: #1a2a3a;
    font-weight: 700;
}
.page-hero .page-subtitle { 
    color: #6b7b89; 
    max-width: 800px; 
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

.notices-content { 
    padding: 2.5rem 0; 
}

/* Search Bar and Filters Layout */
.notices-filters-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.archive-filters { 
    flex: 1;
    min-width: 300px;
}

.archive-filters .search-wrap { 
    position: relative;
    max-width: 100%;
}
.archive-filters .search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.archive-filters .search-wrap input[type="search"] { 
    width: 100%; 
    padding: 12px 14px 12px 42px; 
    border-radius: 8px; 
    border: 1px solid #e0e5eb; 
    background: #fff; 
    font-size: 15px;
    transition: all 0.2s ease;
}
.archive-filters .search-wrap input[type="search"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.archive-filters .search-wrap input[type="search"]::placeholder {
    color: #9ca3af;
}

/* Filter Toolbar */
.filters-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    align-items: center;
}

.filter-group { 
    display: flex; 
    gap: 8px; 
    align-items: center;
    padding: 8px 12px;
    background: #fff;
}

.filter-icon {
    color: #6b7b89;
    flex-shrink: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-right: 4px;
}

.filter-chip { 
    -webkit-appearance: none; 
    appearance: none; 
    border: none; 
    padding: 6px 14px; 
    border-radius: 33554400px; 
    background: #f3f4f6; 
    cursor: pointer; 
    color: #374151; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-chip:hover { 
    background: #e5e7eb;
    transform: translateY(-1px);
}
.filter-chip.active { 
    background: #154D8C; 
    color: #fff;
    font-weight: 600;
}
.filter-chip[disabled] { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

/* Results Count */
.results-count {
    margin-bottom: 20px;
}
.results-count p {
    font-size: 14px;
    color: #6b7b89;
    margin: 0;
}

/* Notice Grid */
.posts-grid.notice-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.posts-grid.notice-grid.loading {
    pointer-events: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7b89;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* Notice Card */
.notice-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
}
.notice-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.notice-card-content {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-card-header {
    margin-bottom: 0;
}

.notice-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.notice-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.notice-title a:hover {
    color: #154D8C;
}

.notice-meta-header {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.notice-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    background: #eff6ff;
    color: #154D8C;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.notice-meta-info {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #6b7b89;
    font-size: 14px;
}

.notice-meta-info svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.notice-date {
    color: #6b7b89;
}

.notice-divider {
    color: #d1d5db;
}

.notice-author {
    color: #6b7b89;
}

.notice-views {
    color: #6b7b89;
}

.notice-excerpt {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

/* Notice Attachments */
.notice-attachments {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px 24px;
}

.attachments-label {
    color: #6b7b89;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    font-size: 13px;
}

.attachment-item svg {
    width: 16px;
    height: 16px;
    color: #6b7b89;
    flex-shrink: 0;
}

.attachment-name {
    flex: 1;
    color: #111827;
    font-weight: 500;
}

.attachment-size {
    color: #9ca3af;
    font-size: 12px;
}

.attachment-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #6b7b89;
    transition: color 0.2s ease;
}

.attachment-download:hover {
    color: #154D8C;
}

.attachment-download svg {
    width: 16px;
    height: 16px;
}

/* Read More Button */
.notice-read-more {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #154D8C;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.notice-read-more:hover {
    background: #0f3d6f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21, 77, 140, 0.2);
    color: #fff !important;
}

/* Responsive */
@media (max-width: 900px) {
    .notice-card {
        flex-direction: column;
    }
    
    .notice-card-content {
        padding: 24px;
    }
    
    .notice-attachments {
        padding: 16px 20px;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 2.5rem 0;
    }
    
    .page-hero .page-title {
        font-size: 28px;
    }
    
    .notices-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .archive-filters {
        min-width: 100%;
    }
    
    .filters-toolbar {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .notice-card-content {
        padding: 20px;
        gap: 12px;
    }
    
    .notice-title {
        font-size: 18px;
    }
    
    .notice-attachments {
        padding: 14px 16px;
    }
}
