/* News Article Page Styles */

.news-article-page {
    padding-top: 60px;
    padding-bottom: 100px;
    /* Removed solid background so isometric grid shows through from behind */
    flex: 1 0 auto;
    width: 100%;
    min-height: 50vh;
    position: relative;
    z-index: 20;
    /* Lift content above isometric grid (z-index 6) */
}



.news-article-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.two-column-layout {
    display: flex;
    gap: 60px;
}

/* Left Column: Author */
.news-author-column {
    flex: 0 0 250px;
    padding-top: 20px;
}

.news-author-profile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Optional: Sticky positioning for desktop */
    position: sticky;
    top: 100px;
}

.author-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image-wrapper.placeholder {
    color: #999;
    font-size: var(--font-h2-size);
    font-weight: bold;
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: var(--font-body-size);
    color: #333;
    margin-bottom: 5px;
}

.publish-date {
    font-size: var(--font-ui-size);
    color: #777;
}

/* Right Column: Content */
.news-content-column {
    flex: 1;
    min-width: 0;
    /* Prevent flex items from overflowing */
}

.news-title {
    font-size: var(--font-h2-size);
    font-weight: 800;
    line-height: 1.2;
    color: #186AA5;
    /* Dark text */
    margin-bottom: 30px;
    text-transform: none;
}

.news-subheading {
    font-size: var(--font-h3-size);
    font-weight: 700;
    color: #00A6DD;
    margin-bottom: 20px;
}

.news-header-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 8px;
    /* Slight rounding for modern look */
    overflow: hidden;
}

.news-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rich Text Styling - Use defaults but ensure readability */
.news-body-content {
    font-size: var(--font-lead-size);
    line-height: 1.6;
    color: #444;
}

.news-body-content p {
    margin-bottom: 20px;
}

.news-body-content h2,
.news-body-content h3,
.news-body-content h4 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #00A6DD;
    font-weight: 700;
}

.news-body-content ul,
.news-body-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-body-content li {
    margin-bottom: 10px;
}

.news-body-content a {
    color: #007bff;
    text-decoration: underline;
}

.news-body-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.news-block-paragraph {
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .news-article-page {
        padding-bottom: 60px;
    }

    .two-column-layout {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .news-author-column {
        flex: initial;
        padding-top: 20px;
        border-top: 1px solid #eee;
        border-bottom: none;
        padding-bottom: 0;
    }

    .news-author-profile {
        flex-direction: row;
        align-items: center;
        position: static;
        /* Remove sticky on mobile */
    }

    .author-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .news-title {
        font-size: var(--font-h2-size);
    }

    .related-articles-section {
        margin-top: 40px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .news-article-page {
        padding-bottom: 20px;
    }
}

/* Related Articles Section */
.related-articles-section {
    padding-top: 80px;
    padding-bottom: 80px;
    /* Added matching bottom padding */
    margin-top: 80px;
    border-top: 1px solid #eaeaea;
    position: relative;
    z-index: 20;
    /* Lift related content above isometric grid */
}

.related-articles-header {
    text-align: center;
    margin-bottom: 50px;
}

.related-articles-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-h2-size);
    font-weight: 700;
    color: #186AA5;
    margin: 0;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* News Card (Duplicated from Roll for portability) */
.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;
}

.news-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    opacity: 1;
    /* Explicit opacity */
}

.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);
}

.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 to remove "transparent" look */
    color: #9CA3AF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: var(--font-h3-size);
    opacity: 1;
    /* Explicit opacity */
}

.news-card-content {
    padding: 25px;
    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;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-h4-size);
    font-weight: 700;
    line-height: 1.4;
    color: #186AA5;
    margin: 0 0 16px 0;
    transition: color 0.2s ease;
}

.news-card-excerpt {
    font-family: var(--font-family-base);
    font-size: var(--font-ui-size);
    font-weight: 500;
    line-height: var(--font-ui-height);
    color: #626467;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-read-more {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-caption-size);
    font-weight: 700;
    color: #E65A1D;
    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);
}

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

@media (max-width: 600px) {
    .related-news-grid {}
}

/* Category Pills for Article Page */
.news-article-categories {
    margin-top: 10px;

    gap: 8px;
}

.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;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* Copy & Image Two Column Sections */
.news-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-section-heading {
    font-size: var(--font-h3-size);
    /* Matched to global h3 */
    font-weight: 500;
    /* Matched to global h3 */
    margin-bottom: 30px;
    color: #186AA5;
    line-height: 35px;
}

/* Reduce spacing when a section has no heading (feels more like flow content) */
.news-section.no-heading {
    margin-top: 30px;
    margin-bottom: 30px;
}

.news-section-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Image Left Layout */
.layout-image_left .news-section-body {
    flex-direction: row;
}

/* Image Right Layout */
.layout-image_right .news-section-body {
    flex-direction: row-reverse;
    /* Just flip the visual order */
}

/* Single Column Layout */
.layout-single_column .news-section-body {
    flex-direction: column;
    gap: 20px;
}

.news-section-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.news-section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.single-col-img {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
}

.news-section-content {
    flex: 1;
    min-width: 0;
}

.news-inner-block {
    margin-bottom: 30px;
}

.news-section-content .news-inner-block:last-child {
    margin-bottom: 0;
}

.cta-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #E65A1D;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.cta-link:hover {
    background-color: #d14d13;
    text-decoration: none;
    color: white;
}

@media (max-width: 768px) {
    .news-section-body {
        flex-direction: column !important;
        /* Stack everything on mobile */
    }

    .news-section-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
}