/* =========================================
   1. GLOBAL VARIABLES & UTILITIES
   ========================================= */
:root {
    --brand-red: #C8102E;
    --brand-beige: #FAF3E6;
}

/* =========================================
   2. ARTICLE LIST PAGE (INDEX) STYLES
   ========================================= */

/* --- Top Hero Section --- */
.news-hero-section {
    padding: 3rem 0;
    margin-top: 6rem; /* Adjust based on navbar height */
}

/* Card Container for Top Images */
.news-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    background-color: #eee; /* Fallback */
    box-shadow: #3e3e3e 5px 6px 12px;
}

/* Desktop Heights */
.main-hero {
    height: 500px; 
}

.side-hero {
    height: 238px; /* Calculated to align with main-hero including gap */
}

/* Images */
.news-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-hero-card:hover img {
    transform: scale(1.05);
}

/* Overlay Text */
.news-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.side-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.read-more-link {
    color: #fff;
    font-size: 0.85rem;
    font-style: italic;
    text-decoration: none;
    opacity: 0.9;
}
.read-more-link:hover { opacity: 1; text-decoration: underline; }

/* --- Red Bar --- */
.latest-news-bar {
    background-color: var(--brand-red);
    padding: 0.8rem 0;
    margin-bottom: 4rem;
    display: inline-block;
    min-width: 50%;
    text-align: center;
}
.latest-news-bar h2 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin: 0;
}

/* --- List Section (The Rows) --- */
.news-list-section {
    padding-bottom: 5rem;
}

.article-list-item {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0; /* Subtle separator */
}
.article-list-item:last-child { border-bottom: none; }

.list-img-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
    background-color: #eee;
    border-radius: 4px;
}

.list-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-list-item:hover .list-img-container img {
    transform: scale(1.03);
}

.list-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
}

.list-subheader {
    font-size: 1rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.list-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.list-author {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #444;
}

.list-read-more {
    font-style: italic;
    color: #222;
    text-decoration: none;
    font-weight: 500;
}
.list-read-more:hover { color: var(--brand-red); }

/* =========================================
   3. SINGLE ARTICLE SHOW PAGE STYLES
   ========================================= */
.article-header-section {
    margin-top: 6rem; 
    width: 100%;
}

.article-header-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #eee;
}

.article-content-section {
    background-color: #fff;
    padding-bottom: 4rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-subheader {
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.article-body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* --- ADDED: Make Image Caption Red --- */
.article-body figcaption {
    color: var(--brand-red);
    font-weight: 600;
    font-size: .9em;
}

/* =========================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet & Small Desktop (Max 991px) */
@media (max-width: 991px) {
    .main-hero { height: 350px; }
    .side-hero { height: 200px; }
    .news-hero-section { margin-top: 5rem; }
}

/* Mobile (Max 767px) - Stacking Logic */
@media (max-width: 767px) {
    /* Stack Hero Section */
    .news-hero-section { margin-top: 4rem; }
    .main-hero { height: 250px; margin-bottom: 1rem; }
    .side-hero { height: 200px; }
    
    /* Stack List Section */
    .list-img-container {
        height: 220px; /* Full width image height */
        margin-bottom: 1rem;
    }
    
    .list-title { font-size: 1.4rem; }
    .article-title { font-size: 2rem; }
    
    /* Show Page Header */
    .article-header-image { height: 40vh; min-height: 250px; }
}

/* --- Social Share Icons --- */
.social-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share-icon:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-share-icon.facebook:hover { background-color: #3b5998; }
.social-share-icon.twitter:hover { background-color: #1da1f2; }
.social-share-icon.linkedin:hover { background-color: #0077b5; }
.social-share-icon.email:hover { background-color: var(--brand-red); }