/* Articles Page Styles */
.articles-page-section {
    padding: 80px 0;
    background-color: #fff;
}

@media (max-width: 991px) {
    .articles-page-section {
        padding: 33px 0;
    }
}

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.article-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.article-category {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.article-date {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.page-item .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eee;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    background: #fff;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.page-item .page-link:hover:not(.active) {
    background: #f8f9fa;
    border-color: #ddd;
}

/* Article Detail */
.article-detail-section {
    padding: 80px 0;
}

.article-detail-header {
    margin-bottom: 40px;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.article-detail-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.article-featured-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 30px;
}

/* Next/Prev Navigation */
.article-navigation {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-article {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 45%;
}

.nav-article.prev {
    align-items: flex-start;
    text-align: left;
}

.nav-article.next {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.3s;
}

.nav-article:hover .nav-title {
    color: var(--primary-color);
}