.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF;
}

.page-blog__hero-section {
    background-color: #FFFFFF;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.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 45%;
    min-width: 300px;
    color: #333333; /* Ensuring dark text on white background */
}

.page-blog__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #017439; /* Brand primary color for title */
}

.page-blog__description {
    font-size: 18px;
    margin-bottom: 32px;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

.page-blog__btn-secondary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

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

.page-blog__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.page-blog__posts-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-blog__section-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
}

.page-blog__section-description {
    font-size: 17px;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.page-blog__blog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__blog-card-media {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-blog__blog-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-blog__blog-card-title a:hover {
    color: #005f2c;
}

.page-blog__blog-card-date {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
    display: block;
}

.page-blog__blog-card-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__blog-card-link {
    display: inline-block;
    color: #C30808;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__blog-card-link:hover {
    color: #a70707;
}

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

.page-blog__faq-section {
    background-color: #017439; /* Brand primary color */
    padding: 60px 0;
    color: #FFFFFF;
}

.page-blog__faq-section .page-blog__section-title {
    color: #FFFFFF;
    margin-bottom: 40px;
}

.page-blog__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #FFFFFF;
    outline: none;
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-blog__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-blog__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
}

.page-blog__faq-answer {
    padding: 0 25px 18px;
    font-size: 16px;
    color: #f0f0f0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__hero-container {
        padding: 30px 16px;
    }

    .page-blog__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-blog__hero-image {
        flex: 1 1 100%;
        margin-top: 30px;
    }

    .page-blog__main-title {
        font-size: clamp(26px, 5vw, 42px);
    }

    .page-blog__description {
        font-size: 17px;
    }

    .page-blog__cta-buttons {
        justify-content: center;
    }

    .page-blog__section-title {
        font-size: clamp(22px, 4vw, 34px);
    }

    .page-blog__blog-card-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }

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

    .page-blog__hero-content {
        text-align: center !important;
    }

    .page-blog__main-title {
        font-size: clamp(24px, 6vw, 36px) !important;
        margin-bottom: 10px !important;
    }

    .page-blog__description {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    .page-blog__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px !important; /* Ensure buttons are within container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__hero-image {
        margin-top: 20px !important;
    }

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

    .page-blog__posts-section {
        padding: 40px 0 !important;
    }

    .page-blog__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__section-title {
        font-size: clamp(20px, 5vw, 30px) !important;
        margin-bottom: 15px !important;
    }

    .page-blog__section-description {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }

    .page-blog__blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-blog__blog-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .page-blog__blog-card-media {
        height: 180px !important;
    }

    .page-blog__blog-card-content {
        padding: 15px !important;
    }

    .page-blog__blog-card-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .page-blog__blog-card-date {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .page-blog__blog-card-excerpt {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    .page-blog__blog-card-link {
        font-size: 15px !important;
    }

    .page-blog__view-all-button-container {
        margin-top: 30px !important;
    }

    .page-blog__faq-section {
        padding: 40px 0 !important;
    }

    .page-blog__faq-section .page-blog__section-title {
        margin-bottom: 30px !important;
    }

    .page-blog__faq-item {
        margin-bottom: 10px !important;
    }

    .page-blog__faq-item summary {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }

    .page-blog__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 15px !important;
    }

    /* General image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}