/* 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-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: 'Noto Serif', serif;
    color: #333;
    min-height: calc(100vh - 200px); /* Ensure content pushes footer down */
}

.article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #777;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article-type {
    background-color: #800000;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.image-container {
    margin: 3rem auto;
    text-align: center;
    max-width: 700px;
}

.article-header-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 4px;
}

.article-content blockquote {
    border-left: 3px solid #800000;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.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-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;
}

.share {
    margin: 4rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share h5 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.share ul li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share ul li a i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.share ul li a.facebook {
    background-color: #3b5998;
}

.share ul li a.twitter {
    background-color: #1da1f2;
}

.share ul li a.linkedin {
    background-color: #0077b5;
}

.share ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 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;
}

/* Divider */
.article-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #800000, transparent);
    margin: 3rem 0;
    border: 0;
}

/* Back to Home */
.back-to-home {
    text-align: center;
    margin: 3rem 0;
}

.back-to-home .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #800000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-to-home .button:hover {
    background-color: #600000;
}

/* Footer fix */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.main-content {
    flex: 1;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer:not([class*="footer-"]) {
    margin-top: auto;
}