.page-blog {
    background-color: #08160F;
    color: #F2FFF6;
    font-family: Arial, sans-serif;
}

.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as per rule */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.page-blog__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px; /* Separates content from image */
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

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

.page-blog__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
}

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

.page-blog__post-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
}

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

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.3;
    transition: color 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-title {
    color: #2AD16F; /* Button color on hover */
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    line-height: 1.5;
    color: #A7D9B8; /* Text Secondary */
}

.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%); /* Button color */
    color: #F2FFF6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.page-blog__view-all-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-blog__cta-banner {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid #2E7A4E; /* Border color */
}

.page-blog__cta-banner-title {
    font-size: clamp(1.6em, 3vw, 2.5em);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 25px;
    font-weight: bold;
}

.page-blog__cta-banner-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-banner-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog__hero-content {
        padding: 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-blog__description {
        font-size: 1em;
    }

    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-blog__posts-section {
        padding: 40px 15px;
    }

    .page-blog__section-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__post-image {
        max-width: 100%;
        height: auto; /* Ensures images scale down */
        min-width: 200px; /* Minimum width for content images */
        min-height: 200px; /* Minimum height for content images */
    }

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

    .page-blog__cta-banner {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .page-blog__cta-banner-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }

    .page-blog__cta-banner-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Enforce image scaling for mobile to prevent overflow */
    .page-blog img {
        max-width: 100%;
        height: auto; /* Ensures images scale down properly */
    }
}

/* Ensure all content area images are not too small */
.page-blog__posts-grid img, .page-blog__post-card img {
    min-width: 200px;
    min-height: 200px;
}