/* News Roll Styles - Refined */

.news-roll-page {
    padding-top: 80px;
    padding-bottom: 120px;
    /* Removed solid background so isometric grid shows through from behind */
    position: relative;
    z-index: 20;
    /* Lift content above isometric grid (z-index 6) */
}

.news-roll-wrapper {
    /* Uses .max-width from styles.css */
    padding: 0 40px;
    /* Aligned with global padding */
}

.news-roll-header {
    margin-bottom: 70px;
    text-align: center;
}

.news-roll-header h1 {
    font-family: var(--font-family-base);
    font-size: var(--font-h1-size);
    font-weight: 700;
    line-height: var(--font-h1-height);
    /* Brand Blue */
    text-transform: none;
    /* Removed uppercase as per design trends (unless explicitly requested) */
    line-height: 1.2;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    max-width: 1200px;
    /* Constrain width */
    margin: 0 auto;
    /* Center alignment */
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Card Image */
.news-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #fff;
    /* Changed from light gray to white */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.news-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth easing */
}

.news-card:hover .news-card-image-wrapper img {
    transform: scale(1.08);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    /* Changed to white */
    color: #9CA3AF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: var(--font-h3-size);
    opacity: 1;
    /* Explicit opacity */
}

/* Card Content */
.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-caption-size);
    font-weight: 600;
    color: #6B7280;
    /* Neutral gray */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-author {
    color: #6B7280;
}

.news-card-title {
    font-family: var(--font-family-base);
    font-size: var(--font-h2-size);
    font-weight: var(--font-h2-weight);
    line-height: var(--font-h2-height);
    color: #186AA5;
    /* Brand Blue */
    margin: 0 0 16px 0;
    transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
    color: #07B1E2;
    /* Brand Light Blue on hover */
}

.news-card-excerpt {
    font-family: var(--font-family-base);
    font-size: var(--font-h3-size);
    font-weight: 600;
    line-height: var(--font-h3-height);
    color: #626467;
    /* Standard text gray */
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-read-more {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-ui-size);
    font-weight: 700;
    color: #E65A1D;
    /* Brand Orange */
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.news-card:hover .news-card-read-more {
    transform: translateX(5px);
}

/* Responsive */
/* 3 → 2 columns at 900px (was 1244px — too early) */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .news-roll-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .news-roll-header h1 {
        font-size: var(--font-h2-size);
    }

    .news-roll-wrapper {
        padding: 0 20px;
    }
}

/* CSS for News Article Roll Filter styling */

.news-card-categories {
    margin-bottom: 10px;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.news-cat-pill {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: var(--font-caption-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    /* For when it's a link */
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.news-cat-pill:hover {
    background-color: #E65A1D;
    /* Brand Orange */
    color: white;
}

/* Filter indicator removed (Jan 2026) */