.page-blog {
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    background-color: #017439;
}

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

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

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

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly, but not over image */
    position: relative;
    z-index: 1;
    background-color: rgba(1, 116, 57, 0.85); /* Semi-transparent background for text */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-blog__btn-view-all {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #FFFF00;
}

.page-blog__btn-view-all:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-blog__latest-posts {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-blog__section-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    color: #017439;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.page-blog__post-card {
    background-color: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 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(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-blog__post-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #004d2a;
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #a00606;
}

.page-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E0E0E0;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
    background-color: #017439;
    color: #FFFFFF;
}

.page-blog__cta-section {
    padding: 80px 0;
    background-color: #017439;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-blog__cta-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-blog__cta-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #E0E0E0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-register,
.page-blog__btn-login {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.page-blog__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #FFFF00;
}

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

.page-blog__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #FFFF00;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

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

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

    .page-blog__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__btn-register,
    .page-blog__btn-login {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content {
        margin-top: -40px;
        padding: 25px 10px;
    }

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

    .page-blog__hero-description {
        font-size: 0.95em;
    }

    .page-blog__btn-view-all {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-blog__section-title {
        font-size: clamp(1.8em, 4.5vw, 2.2em);
        margin-bottom: 40px;
    }

    .page-blog__post-image {
        max-width: 100%;
        height: auto; /* Ensure images scale down */
    }

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

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

    .page-blog__cta-title {
        font-size: clamp(1.8em, 4.5vw, 2.2em);
    }

    .page-blog__cta-description {
        font-size: 1em;
    }

    .page-blog__cta-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    .page-blog__latest-posts img,
    .page-blog__cta-section img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }

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

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

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__btn-register,
    .page-blog__btn-login {
        width: 100%;
        max-width: 280px;
    }
}