/* News Page Styles */
.news-archive-section {
    padding: 100px 0;
    background-color: #f1f5f9; /* Slate 100 to match Projects background */
}

.news-archive-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #1e293b;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.news-archive-title span {
    color: #E51B23;
}

.news-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card-horizontal {
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1rem;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.15);
}

.news-card-image {
    width: 45%;
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card-horizontal:hover .news-card-image img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 40px;
    background: #ffffff;
    position: relative;
}

/* The Arrow/Pointer Effect from Projects Page */
.news-card-content::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 18px solid #ffffff;
    z-index: 5;
}

.news-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    transition: color 0.3s ease;
    margin-bottom: 0;
}

.news-card-horizontal:hover .news-card-title {
    color: #E51B23;
}

/* Pagination Styling Sync */
.news-pagination, .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 80px;
    width: 100%;
}

.news-pagination .page-numbers, .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #1e293b;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    font-size: 0.9rem;
}

.news-pagination .page-numbers:hover, .nav-links .page-numbers:hover {
    background: #E51B23;
    color: #fff;
    border-color: #E51B23;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(229, 27, 35, 0.3);
}

.news-pagination .page-numbers.current, .nav-links .page-numbers.current {
    background: #E51B23;
    color: #fff;
    border-color: #E51B23;
    box-shadow: 0 10px 20px -5px rgba(229, 27, 35, 0.3);
}
