﻿/* NEWS SECTION STYLING */
.news-section {
    padding: 60px 0;
    background-color: #ffffff;
}

    .news-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

.section-title {
    font-family: 'Arial', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--merseyside-blue);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
}

/* Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual News Card */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e1e1e1;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 16px;
}

    .news-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-5px);
        border-color: #005596;
    }

/* Image Container */
.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Content Area */
.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.news-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--red-brand) !important;
}

.news-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
    /* Limit summary to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "See More" Button */
.news-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-more-news {
    display: inline-block;
    padding: 12px 35px;
    background-color: #005596;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0; /* St Helens style uses square buttons */
    transition: background 0.3s ease;
    border: 2px solid #005596;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    border: none;
}

    .btn-more-news:hover {
        background-color: #ffffff;
        color: #005596 !important;
    }
/* =========================================
   News Article Page
   ========================================= */

.np-article {
    /* max-width: 78ch;*/
    max-width: 1150px;
    margin: auto;
}

.np-article__header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.np-article__title {
    margin: 0 0 .4rem;
    font-size: 2rem;
}

.np-article__meta {
    color: var(--muted);
    font-size: .9rem;
}

/* wrapped image */

.np-article__media {
    float: left;
    width: min(44%,360px);
    margin: .35rem 1.5rem 1rem 0;
}

.np-article__image {
    width: 100%;
    display: block;
    border-radius: 14px;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.np-article::after {
    content: "";
    display: block;
    clear: both;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-image {
        height: 200px;
    }
}
