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

.page-blog-latest-news {
    color: #333333; /* Default text color for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-blog-latest-news__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero text contrast */
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding below image if needed */
}

.page-blog-latest-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures image covers area without distortion */
}

.page-blog-latest-news__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    z-index: 10;
}

.page-blog-latest-news__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FCBC45; /* Login button color for emphasis */
}

.page-blog-latest-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-blog-latest-news__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is large enough */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.page-blog-latest-news__hero-button:hover {
    background-color: #e0a53b;
}

.page-blog-latest-news__articles-section,
.page-blog-latest-news__insights-section,
.page-blog-latest-news__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Ensure content sections have light background */
    color: #333333; /* Dark text for light background */
}

.page-blog-latest-news__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

.page-blog-latest-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog-latest-news__article-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog-latest-news__article-image {
    width: 100%;
    height: 250px; /* Minimum 250px height for content images */
    object-fit: cover;
    display: block;
}

.page-blog-latest-news__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog-latest-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
}

.page-blog-latest-news__article-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-latest-news__article-title a:hover {
    color: #FCBC45;
}

.page-blog-latest-news__article-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog-latest-news__read-more-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    min-width: 150px; /* Ensure button is large enough */
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-blog-latest-news__read-more-button:hover {
    background-color: #333333;
}

.page-blog-latest-news__insights-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 8px;
    display: block; /* Ensure it's a block element */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-blog-latest-news__insights-content h3 {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog-latest-news__insights-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #444444;
}

.page-blog-latest-news__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-blog-latest-news__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Emphasize with accent color */
}

.page-blog-latest-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-latest-news__cta-button {
    display: inline-block;
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 250px; /* Ensure button is large enough */
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.page-blog-latest-news__cta-button:hover {
    background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog-latest-news__hero-title {
        font-size: 2.2em;
    }
    .page-blog-latest-news__hero-description {
        font-size: 1.1em;
    }
    .page-blog-latest-news__section-title {
        font-size: 2em;
    }
    .page-blog-latest-news__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog-latest-news__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog-latest-news__hero-content {
        max-width: 90%;
        padding: 15px;
    }
    .page-blog-latest-news__hero-title {
        font-size: 1.8em;
    }
    .page-blog-latest-news__hero-description {
        font-size: 1em;
    }
    .page-blog-latest-news__hero-button {
        padding: 10px 25px;
    }
    .page-blog-latest-news__articles-section,
    .page-blog-latest-news__insights-section,
    .page-blog-latest-news__cta-section {
        padding: 40px 0;
    }
    .page-blog-latest-news__section-title {
        font-size: 1.8em;
    }
    .page-blog-latest-news__article-image {
        height: 200px; /* Min height for mobile */
    }
    .page-blog-latest-news__article-content {
        padding: 20px;
    }
    .page-blog-latest-news__article-title {
        font-size: 1.3em;
    }
    .page-blog-latest-news__insights-content h3 {
        font-size: 1.6em;
    }
    .page-blog-latest-news__insights-content p {
        font-size: 1em;
    }
    .page-blog-latest-news__cta-title {
        font-size: 2em;
    }
    .page-blog-latest-news__cta-button {
        padding: 12px 30px;
        min-width: 220px;
    }
    /* Mobile content area images must not overflow */
    .page-blog-latest-news__container img {
        max-width: 100%;
        height: auto;
    }
    .page-blog-latest-news__insights-image {
        max-width: 100%;
        height: auto;
    }
    .page-blog-latest-news__hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog-latest-news__hero-title {
        font-size: 1.5em;
    }
    .page-blog-latest-news__hero-description {
        font-size: 0.9em;
    }
    .page-blog-latest-news__hero-button {
        padding: 8px 20px;
        min-width: 180px;
    }
    .page-blog-latest-news__section-title {
        font-size: 1.5em;
    }
    .page-blog-latest-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog-latest-news__article-image {
        height: 180px; /* Adjust for smaller screens */
    }
    .page-blog-latest-news__cta-title {
        font-size: 1.8em;
    }
    .page-blog-latest-news__cta-button {
        padding: 10px 25px;
        min-width: 220px;
    }
}

/* Ensure no CSS filter changes image colors */
.page-blog-latest-news img {
    filter: none;
}
/* Ensure content images are not small */
.page-blog-latest-news__article-image,
.page-blog-latest-news__insights-image {
    min-width: 200px;
    min-height: 200px;
}