.news-section {
    padding: 50px 20px;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.news-card {
    flex: 1 1 300px;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    max-width: 380px;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-card-content p {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}

.news-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0f0f0;
    color: #333;
    text-transform: uppercase;
    z-index: 1;
}

.news-tag.notice {
    background: #5A6DB3;
    color: #fff;
}

.news-tag.event {
    background: #9c44dc;
    color: #fff;
}

.news-tag.update {
    background: #4CAF50;
    color: #fff;
}

.news-tag.maintenance {
    background: #c7660c;
    color: #fff;
}

.news-tag.news {
    background: #cc1259;
    color: #fff;
}

.news-author {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #4CAF50;
    color: #fff;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.news-card-link:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .news-section {
        padding: 30px 15px;
    }
    
    .news-card {
        flex: 1 1 100%;
    }
}

.news-heading {
    color: #fff;
    font-size: 2.5rem;
    margin: 80px 0 40px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.news-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(77, 127, 255,0) 0%, #5A6DB3 50%, rgba(77, 127, 255,0) 100%);
}

@media (max-width: 768px) {
    .news-heading {
        font-size: 2rem;
        margin: 80px 0 30px;
        padding-left: 15px;
    }

    .news-heading::after {
        width: 90%;
    }
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.5);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.page-number:hover {
    border-color: #5A6DB3;
    background: rgba(255, 255, 255, 0.1);
}

.page-number.active {
    background: #5A6DB3;
    cursor: default;
}

.page-number.active:hover {
    border-color: transparent;
    background: #5A6DB3;
}

@media (max-width: 768px) {
    .news-pagination {
        gap: 5px;
        margin: 30px 0;
    }

    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}