/* style/blog-latest-news.css */

.page-blog-latest-news {
    color: #333333; /* Dark text for light body background #f4f4f4 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Fixed header offset */
.page-blog-latest-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden behind fixed header */
    background-color: #f8f8f8; /* A slightly lighter background for the hero section */
    position: relative;
    overflow: hidden; /* To contain the image if it overflows slightly */
}

.page-blog-latest-news__hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure content is above image overlay if any */
    padding: 20px; /* Add some padding for smaller screens */
}

.page-blog-latest-news__hero-image {
    width: 100%; /* Ensure image fills its container */
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area without distorting aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-width: 100%; /* Ensure image doesn't overflow */
}

.page-blog-latest-news__hero-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-top: -80px; /* Overlap with the image slightly for visual interest */
    position: relative;
    max-width: 900px;
    width: 100%;
}

.page-blog-latest-news__hero-title {
    font-size: 2.8em;
    color: #CC0000; /* Main brand color */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-blog-latest-news__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-latest-news__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-blog-latest-news__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.page-blog-latest-news__hero-button--primary {
    background-color: #CC0000; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #CC0000;
}

.page-blog-latest-news__hero-button--primary:hover {
    background-color: #990000;
    transform: translateY(-2px);
}

.page-blog-latest-news__hero-button--secondary {
    background-color: #FFD700; /* Auxiliary brand color */
    color: #333333;
    border: 2px solid #FFD700;
}

.page-blog-latest-news__hero-button--secondary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-blog-latest-news__articles-section {
    padding: 60px 20px;
    background-color: #f4f4f4; /* Body background */
}

.page-blog-latest-news__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-blog-latest-news__section-title {
    font-size: 2.5em;
    color: #CC0000;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    position: relative;
}

.page-blog-latest-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-blog-latest-news__article {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-blog-latest-news__article:hover {
    transform: translateY(-5px);
}

.page-blog-latest-news__article-image {
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* Ensure image is at least 200x200px. HTML width/height attributes are 800x600, CSS will scale */
}

.page-blog-latest-news__article-content {
    padding: 30px;
}

.page-blog-latest-news__article-title {
    font-size: 2em;
    color: #CC0000;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog-latest-news__article-excerpt {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 25px;
}

.page-blog-latest-news__article-subtitle {
    font-size: 1.5em;
    color: #CC0000;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 5px;
}

.page-blog-latest-news__article-text {
    color: #444444;
    margin-bottom: 20px;
}

.page-blog-latest-news__article-button {
    display: inline-block;
    background-color: #FFD700;
    color: #333333;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog-latest-news__article-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-blog-latest-news__promo-banner {
    background-color: #CC0000;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog-latest-news__promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle overlay */
    z-index: 0;
    /* Ensure image is at least 200x200px. HTML width/height attributes are 1200x675, CSS will scale */
}

.page-blog-latest-news__promo-content {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    max-width: 800px;
}

.page-blog-latest-news__promo-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFD700;
}

.page-blog-latest-news__promo-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog-latest-news__promo-button {
    display: inline-block;
    background-color: #FFD700;
    color: #CC0000;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog-latest-news__promo-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-blog-latest-news__article {
        flex-direction: row;
    }
    .page-blog-latest-news__article:nth-child(even) {
        flex-direction: row-reverse; /* Alternate image and text */
    }
    .page-blog-latest-news__article-image {
        width: 40%;
        height: auto; /* Let height adjust for aspect ratio */
        max-height: 400px; /* Max height for consistency */
    }
    .page-blog-latest-news__article-content {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .page-blog-latest-news__hero-title {
        font-size: 2em;
    }
    .page-blog-latest-news__hero-description {
        font-size: 1em;
    }
    .page-blog-latest-news__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog-latest-news__hero-button {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
    }

    .page-blog-latest-news__section-title {
        font-size: 2em;
    }
    .page-blog-latest-news__article-title {
        font-size: 1.5em;
    }
    .page-blog-latest-news__article-subtitle {
        font-size: 1.2em;
    }
    .page-blog-latest-news__article-image {
        height: 250px; /* Adjust height for mobile */
        max-width: 100%; /* Ensure content images don't overflow */
        height: auto; /* Auto height to prevent distortion */
    }
    /* Ensure all content images are at least 200px wide on mobile */
    .page-blog-latest-news__article-image,
    .page-blog-latest-news__promo-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum width for content images */
        min-height: 200px; /* Enforce minimum height for content images */
    }

    .page-blog-latest-news__promo-title {
        font-size: 1.8em;
    }
    .page-blog-latest-news__promo-description {
        font-size: 1em;
    }
    .page-blog-latest-news__promo-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    /* Mobile content area anti-overflow */
    .page-blog-latest-news__container {
        padding: 0 15px; /* Add horizontal padding to prevent overflow */
    }
    .page-blog-latest-news {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

/* Ensure no filter on images */
.page-blog-latest-news img {
    filter: none !important; /* Absolutely no filter effects */
}