/**
 * Recent News page section.
 */

.recent-news-section {
    --Neutrals-01: #EEEDED;
    --Primary-100: #0B0B0B;
    min-height: 100vh;
    background: black;
    color: var(--Neutrals-01);
    padding: 3rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .recent-news-section {
        padding: 4rem 1.5rem 5rem;
    }
}

.recent-news-section-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .recent-news-section-inner {
        padding: 0 1.5rem;
    }
}

/* Header row: left = subtitle + title, right = button */
.recent-news-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .recent-news-header {
        margin-bottom: 3rem;
    }
}

.recent-news-header-left {
    flex: 1 1 auto;
    min-width: 0;
}

/* Subtitle: Desktop/Body/Large | Caps */
.recent-news-subtitle {
    color: var(--Neutrals-01);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
    .recent-news-subtitle {
        font-size: 20px;
    }
}

/* Title: Desktop/Heading/H1 */
.recent-news-title {
    color: var(--Neutrals-01);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    margin: 0;
}

@media (min-width: 768px) {
    .recent-news-title {
        font-size: 56px;
    }
}

.recent-news-header-right {
    flex-shrink: 0;
}

/* Button: See All News with arrow */
.recent-news-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--Neutrals-01);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid var(--Neutrals-01);
    padding: 0.75rem 1.25rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

@media (min-width: 768px) {
    .recent-news-cta {
        font-size: 20px;
        padding: 0.875rem 1.5rem;
    }
}

.recent-news-cta:hover {
    color: var(--Neutrals-01);
    border-color: var(--Neutrals-01);
}

.recent-news-cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.recent-news-cta:hover .recent-news-cta-arrow {
    transform: translateX(4px);
}

/* Grid: full width, 3 cards on desktop; reuses .news-related-grid card styles from news-single.css */
.recent-news-section .recent-news-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 768px) {
    .recent-news-section .recent-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .recent-news-section .recent-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
