/* Full page background – infuse_bg.jpg (like about-page) */
body.news-page {
    --page-main-bg-size: 100% auto;
    --page-main-bg-position: center 30%;
    --page-main-bg-mobile-size: contain;
    --page-main-bg-mobile-position: top center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* ========== HERO – mirrors .about-hero (section_bg via layout ::before) ========== */
.news-hero {
    position: relative;
    width: 100%;
    /* Clear the fixed header (flush to top) */
    padding: calc(var(--navbar-h, 80px) + 1.5rem) 0 4rem;
    background-color: transparent;
    display: flex;
    align-items: center;
    min-height: 560px;
    box-sizing: border-box;
}

.news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 1920px 1080px;
    background-position: center;
    background-repeat: no-repeat;
}

.news-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

.news-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Matches about page hero heading (about.css global h1) */
.news-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--infuse-white);
    text-align: center;
    margin: 0 0 1.75rem;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.02em;
}

/* ========== MAIN CONTENT – dark background, 3 per row ========== */
.news-content {
    background: var(--infuse-bg);
    padding: 4rem 0 5rem;
}

#news-grid {
    margin-bottom: 2rem;
}

/* ========== NEWS CARD ========== */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--infuse-bg-soft);
    border: 1px solid var(--infuse-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-card__image-wrap {
    position: relative;
    background: #6b2d8a;
    min-height: 180px;
    padding: 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-card__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--infuse-white);
    text-transform: lowercase;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.news-card__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.news-card__img-placeholder {
    flex: 1;
    min-height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
    border-radius: 4px;
}

.news-card__body {
    background: var(--infuse-white);
    color: #333;
    padding: 1.5rem 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--infuse-orange);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-card__excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.news-card__link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--infuse-orange);
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.news-card__link:hover {
    color: #e67a0f;
}

.news-card__sep {
    border: 0;
    border-top: 2px dotted red;
    margin: 0 0 0.75rem;
}

.news-card__date {
    font-size: 0.85rem;
    color: #888;
}

/* ========== LOAD MORE BUTTON ========== */
.news-load-more-wrap {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.news-load-more {
    background: var(--infuse-orange);
    gap: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 48px;
    border-radius: .45rem;
    font-weight: 700;
    font-size: .95rem;
    padding: .5rem 1.25rem;
    border: 2px solid transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.news-load-more:hover {
    transform: translateY(-1px);
}

.news-load-more:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 161, 75, .35);
}

.news-load-more:hover:not(:disabled) {
    background: #f4b15f;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 140, 38, 0.4);
}

.news-load-more:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 161, 75, 0.35);
}

.news-load-more:disabled,
.news-load-more.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .news-hero {
        min-height: 480px;
        padding: calc(var(--navbar-h, 80px) + 1.25rem) 0 3.5rem;
        align-items: flex-start;
    }

    .news-content {
        padding: 3rem 0 4rem;
    }
}

@media (max-width: 767.98px) {
    .news-hero {
        min-height: 0;
        padding: 130px 0 3rem;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .news-hero {
        padding: 130px 0 2.5rem;
    }

    .news-hero__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .news-card__body {
        padding: 1.25rem 1rem 1rem;
    }

    .news-card__title {
        font-size: 1rem;
    }
}
