/* Article Card Design */
.article-item {
    margin-bottom: 25px;
    padding: 0 10px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.article-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background-color: #800000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.article-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-author {
    font-weight: 500;
}

.article-date {
    color: #888;
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 63px;
}

.article-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.article-buttons {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background-color: #800000;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    background-color: #600000;
    color: #fff;
    text-decoration: none;
}

/* Article Status Colors */
.article-status.Announcement { background-color: #2196F3; }
.article-status.Event { background-color: #4CAF50; }
.article-status.Article { background-color: #800000; }
.article-status.Meeting { background-color: #FF9800; }
.article-status.News { background-color: #9C27B0; }

/* Filters Section */
.filters {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.filters ul li {
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters ul li:hover {
    background: #800000;
    color: #fff;
}

.filters ul li.active {
    background: #800000;
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination ul li {
    display: inline-flex;
}

.pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination ul li.active a,
.pagination ul li a:hover {
    background-color: #800000;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 991px) {
    .article-item {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .article-item {
        width: 100%;
        padding: 0 15px;
    }
    
    .filters ul {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .filters ul li {
        flex: 0 0 auto;
    }
}

/* Page Header */
.heading-page {
    background-color: #800000;
    padding: 30px 0;
    text-align: center;
}

.heading-page h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more {
    width: 100%;
    text-align: center;
}