/* News Page Styles */
.news-section {
    padding: 80px 0;
    background-color: #f4f4f7;
}
.hero-background {
    background: url('assets/Group_3 (12).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start;
}

/* Main Content */
.main-content {
    background: #fff;
    padding: 50px;
    height: fit-content;
}

.featured-post-image {
    width: 100%;
    margin-bottom: 25px;
}

.post-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-category {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #ccc;
    margin-right: 15px;
    font-weight: 500;
    color: #333;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a2a3a;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.read-more-btn {
    display: inline-block;
    background-color: #1a2a3a;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #334a60;
}

/* Sidebar */
.sidebar {
    background: #fff;
    padding: 10px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a2a3a;
}

.recent-posts ul {
    list-style: none;
}

.recent-posts li {
    border-bottom: 1px solid #eee;
    padding: 12.5px 0;
}

.recent-posts li:first-child {
    padding-top: 0;
}

.recent-posts a {
    text-decoration: none;
    display: block;
}

.list-post-item-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.post-title-small {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.post-meta-small {
    font-size: 0.85rem;
    color: #888;
}

/* Post List Section */
.post-list-section {
    padding: 80px 0;
    margin-bottom: 100px;
    background-color: #fff;
}

.post-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.list-post-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.list-post-image {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.list-post-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.post-category-on-image {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(40, 58, 77, 0.1);
    color: #fff;
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.list-post-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1.5;
}

.list-post-meta {
    margin-bottom: 12px;
}

.list-post-meta .post-meta {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

.list-post-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    color: #1a2a3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-post-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.list-read-more-btn {
    display: inline-block;
    background-color: #1a2a3a;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.list-read-more-btn:hover {
    background-color: #334a60;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
    padding-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
}

.page-link.active {
    background: #1a2a3a;
    color: #fff;
    border-color: #1a2a3a;
}

.page-link:hover:not(.disabled):not(.active) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.page-link.disabled {
    color: #adb5bd;
    pointer-events: none;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 0 15px;
    text-align: center;
    line-height: 40px;
    vertical-align: middle;
}

/* Article Detail Styles */
.article-detail-section {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 80px 0;
    min-height: 80vh;
}

.article-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.article-detail {
    background: #fff;
    padding: 0;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article-category {
    display: inline-block;
    background: #2c5aa0;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.article-meta .article-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

.article-content {
    margin-top: 40px;
}

.article-featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 0;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body .article-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c5aa0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.article-body h3:first-of-type {
    margin-top: 30px;
}

/* 确保文章内容中的所有图片都响应式 */
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

@media (max-width: 1024px) {
    .article-detail-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body .article-intro {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .article-detail-section {
        padding: 50px 0;
    }
    
    .article-detail-container {
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-header {
        margin-bottom: 30px;
    }
    
    .article-featured-image {
        margin-bottom: 30px;
    }
    
    .article-featured-image img {
        max-height: 250px;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .article-detail-container {
        padding: 0 10px;
    }
    
    .article-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .article-featured-image img {
        max-height: 200px;
    }
    
    .article-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .article-body .article-intro {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .list-post-item {
        flex-direction: column;
        gap: 20px;
    }
}
