/* style/blog.css */
.page-blog {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    color: #333333; /* Dark text for default white body background */
    background-color: #ffffff; /* Explicitly set for clarity */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #f5f5f5;
}

.page-blog__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
}

.page-blog__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for prominence */
    line-height: 1.2;
}

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

.page-blog__hero-button {
    display: inline-block;
    background-color: #B80000; /* Primary brand red */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
    background-color: #d40000;
}

.page-blog__featured-articles {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__section-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2.5em;
    color: #B80000; /* Primary brand red */
    margin-bottom: 40px;
}

.page-blog__article-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-blog__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-blog__article-content {
    padding: 25px;
}

.page-blog__article-meta {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 10px;
}

.page-blog__article-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #B80000; /* Primary brand red */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #d40000;
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-blog__read-more-button {
    display: inline-block;
    color: #FFD700; /* Gold for secondary action */
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #FFD700;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #FFD700;
    color: #B80000; /* Red text on gold hover */
}

.page-blog__cta-section {
    background-color: #B80000; /* Primary brand red background */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    margin-top: 50px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for prominence */
}

.page-blog__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__cta-button--primary {
    background-color: #FFD700; /* Gold button */
    color: #B80000; /* Red text */
    border: 2px solid #FFD700;
}

.page-blog__cta-button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-blog__cta-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-blog__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #B80000; /* Red text on gold hover */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__article-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-blog__featured-articles {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__article-image {
        height: 200px;
    }
    .page-blog__article-title {
        font-size: 1.3em;
    }
    .page-blog__article-excerpt {
        font-size: 0.95em;
    }
    .page-blog__read-more-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__cta-button {
        width: 100%;
        max-width: 280px;
    }

    /* Ensure content images do not overflow on mobile */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.6em;
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
}