/* =========================================
   NEWS PAGE - RED HAT DISPLAY IDENTITY
========================================= */

body, html {
    font-family: 'Red Hat Display', sans-serif !important;
}

.news-page-content {
    padding-top: clamp(70px, 3vw, 180px);
    padding-bottom: 40px;
    background-color: var(--bg-color);
}

/* Matching Home H1 Typography */
.page-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: var(--h1); /* Exact match to homepage hero/header sizing */
    font-weight: 400;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

/* Universal Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border);
    margin: 20px 0 0 0;
}

/* Margin adjustment for list spacing after the first divider */
.news-list {
    margin-top: 0;
}

/* --- News Row Layout --- */
.news-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    padding: 60px 0;
    /* Divider below every row */
    border-bottom: 1px solid var(--border);
}

/* --- IMAGE DIMENSION FIXES --- */

/* 1. Image Column: Set to 32% to match 1/3 width of a homepage news grid */
.news-col-img {
    flex: 0 0 32%;
}

.news-img-box {
    width: 100%;
    /* 2. Standard aspect ratio for homepage news/feature cards */
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md); /* Matching homepage global radius */
    overflow: hidden;
    background: var(--panel);
}

    .news-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 3. Meta Column (Title/Date): 18% (to keep Left Side at 50% total) */
.news-col-meta {
    flex: 0 0 18%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.news-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: clamp(12px, 0.9vw, 14px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: .2s ease;
    min-width: 190px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0;
}

.news-date {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Column 3: Description (Exactly 50% as requested) */
.news-col-desc {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .news-col-desc p {
        font-size: var(--p-md);
        line-height: 1.6;
        color: var(--text-primary);
        margin: 0;
    }

/* VIEW MORE button matching homepage */
.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.1em;
    margin-top: 20px;
}

    .view-more-link img {
        width: 12px;
        height: 12px;
    }

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .news-row {
        gap: 30px;
    }

    .news-title {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .news-row {
        flex-direction: column;
        padding: 40px 0;
    }

    .news-col-img, .news-col-meta, .news-col-desc {
        flex: none;
        width: 100% !important;
    }

    .news-col-meta {
        gap: 15px;
        margin-top: 10px;
    }

    .news-img-box {
        max-width: 400px; /* Prevent oversized images on mobile */
    }
}
