.page-blog {
    font-family: Arial, sans-serif;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for main content area if needed, but body is already white */
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Fixed header spacing, small top padding */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for hero section */
}

.page-blog__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 24px;
}

.page-blog__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #333333; /* Dark text for light background */
}

.page-blog__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #017439; /* Brand color for main title */
}

.page-blog__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-blog__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #017439;
}

.page-blog__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-blog__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color text */
    border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
}

.page-blog__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-blog__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-blog__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand color for section titles */
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333333;
}

.page-blog__post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__post-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-blog__post-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    overflow: hidden;
}

.page-blog__post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 20px;
}

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #017439; /* Brand color for post titles */
}

.page-blog__post-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
}

.page-blog__post-date {
    font-size: 0.85em;
    color: #888888;
    display: block;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
}

/* CTA Banner Section */
.page-blog__cta-banner-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.page-blog__dark-section {
    background-color: #017439; /* Primary brand color background */
    color: #ffffff; /* White text for dark background */
    padding: 60px 30px;
    border-radius: 10px;
    text-align: center;
}

.page-blog__dark-section .page-blog__section-title {
    color: #ffffff; /* White title on dark background */
    margin-bottom: 20px;
}

.page-blog__dark-section .page-blog__section-description {
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General image and button styles for mobile responsiveness */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-blog__section,
.page-blog__card,
.page-blog__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-blog__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
        text-align: center;
    }

    .page-blog__hero-description {
        font-size: 1em;
        text-align: center;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%; /* Ensure button container takes full width */
        padding: 0 15px; /* Add horizontal padding to button container */
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__hero-image {
        order: -1; /* Image above content on mobile */
        padding: 0 15px;
    }

    .page-blog__hero-side-image {
        border-radius: 8px;
    }

    /* Latest Posts Section */
    .page-blog__latest-posts-section {
        padding: 40px 0;
    }

    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-blog__post-thumbnail {
        height: 180px; /* Adjust thumbnail height for mobile */
    }

    .page-blog__post-title {
        font-size: 1.2em;
    }

    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    /* CTA Banner Section */
    .page-blog__cta-banner-section {
        padding: 50px 0;
    }

    .page-blog__dark-section {
        padding: 40px 20px;
    }

    .page-blog__dark-section .page-blog__section-title {
        font-size: 1.8em;
    }

    /* General responsive for images and containers */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}