.page-blog {
    background-color: #08160F;
    color: #F2FFF6;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.page-blog__hero-section {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
    max-width: 1390px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 20px 0;
}

.page-blog__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px; /* Space between image and text */
}

.page-blog__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* Use 16:9 for hero content image */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no filter is applied */
}

.page-blog__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #F2FFF6;
    text-align: center;
    /* Use clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}

.page-blog__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #A7D9B8;
    margin-bottom: 30px;
    text-align: center;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-blog__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

.page-blog__posts-section {
    max-width: 1390px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.page-blog__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #F2FFF6;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-blog__posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Min 280px for cards */
    gap: 30px;
}

.page-blog__post-card {
    background-color: #11271B;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__post-card img {
    width: 100%;
    height: 225px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    object-position: center;
    display: block;
    border-bottom: 1px solid #2E7A4E;
    filter: none; /* Ensure no filter is applied */
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-blog__post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__post-title {
    font-size: 1.3rem;
    color: #F2FFF6;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #A7D9B8;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #A7D9B8;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__read-more {
    color: #57E38D;
    font-weight: bold;
    display: inline-block;
    margin-top: auto; /* Push to bottom */
}

.page-blog__view-all-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-blog__cta-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #2E7A4E;
    max-width: 100%;
}

.page-blog__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: #F2FFF6;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    color: #A7D9B8;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-blog__cta-button--large {
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-blog__hero-section {
        padding: 10px 0;
    }
    .page-blog__main-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-blog__subtitle {
        font-size: 1rem;
    }
    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    .page-blog__section-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-blog__post-card img {
        height: 200px; /* Adjust height for mobile */
    }
    .page-blog__post-title {
        font-size: 1.15rem;
    }
    .page-blog__post-excerpt {
        font-size: 0.95rem;
    }
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .page-blog__cta-description {
        font-size: 1rem;
    }
    .page-blog__cta-button--large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* Ensure images in content area do not cause horizontal scroll */
    .page-blog__posts-card img,
    .page-blog__post-card img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}