.page-blog__hero-section {
    background-color: #017439;
    padding-top: 10px;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Ensures the image doesn't get excessively tall */
}

.page-blog__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-blog__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-blog__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-blog__button--register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-blog__button--register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-blog__button--login {
    background-color: transparent;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-blog__button--login:hover {
    background-color: #C30808;
    transform: translateY(-2px);
}

.page-blog__posts-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    color: #333333;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

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

.page-blog__post-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

.page-blog__post-title:hover {
    color: #005f2f;
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    line-height: 1.5;
    color: #555555;
    flex-grow: 1;
}

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

.page-blog__button--view-all {
    background-color: #017439;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-blog__button--view-all:hover {
    background-color: #005f2f;
}

.page-blog__cta-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
}

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

.page-blog__cta-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

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

.page-blog__button--primary {
    background-color: #C30808;
    color: #FFFF00;
    padding: 15px 35px;
    font-size: 1.2em;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.page-blog__button--primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2em, 4vw, 2.8em);
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content {
        padding: 30px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-blog__description {
        font-size: 1em;
    }
    .page-blog__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
        max-width: 300px; /* Limit button width on small screens */
    }
    .page-blog__posts-section {
        padding: 40px 15px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-image {
        height: 200px;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__cta-section {
        padding: 40px 15px;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
    .page-blog__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__button--primary {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    /* Ensure content area images do not overflow */
    .page-blog__posts-section img,
    .page-blog__post-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__cta-title {
        font-size: 1.4em;
    }
}