.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for clarity */
}

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: #f8f8f8; /* Light background for hero */
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 */
    color: #017439; /* Brand green */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-blog__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button adapts */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

.page-blog__btn-secondary {
    background-color: #017439; /* Brand green */
    color: #ffffff;
    border: 2px solid #017439;
}

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

/* General Article Sections */
.page-blog__articles-section,
.page-blog__expert-advice {
    padding: 60px 0;
}

.page-blog__dark-bg {
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* White text for dark background */
}

.page-blog__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

.page-blog__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
    font-weight: 700;
}

.page-blog__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
    font-weight: 600;
}

.page-blog__paragraph {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-blog__paragraph--light {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}

.page-blog__highlight {
    font-weight: 700;
    color: inherit; /* Inherit color */
}

.page-blog__figure {
    margin: 30px auto;
    max-width: 680px; /* Max width for blog images */
    text-align: center;
}

.page-blog__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-blog__figcaption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

.page-blog__dark-bg .page-blog__figcaption {
    color: #cccccc; /* Lighter caption for dark background */
}

.page-blog__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-blog__list-item {
    margin-bottom: 10px;
}

.page-blog__list--small {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.page-blog__list--small .page-blog__list-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.page-blog__list--small .page-blog__list-item::before {
    content: '•';
    color: #017439; /* Brand green bullet */
    position: absolute;
    left: 0;
    top: 0;
}

.page-blog__dark-bg .page-blog__list--small .page-blog__list-item::before {
    color: #ffffff; /* White bullet for dark background */
}

/* Topic Grid */
.page-blog__topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__topic-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.page-blog__dark-bg .page-blog__topic-card {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white on dark bg */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-blog__topic-card .page-blog__figure {
    margin: 20px 0;
}

.page-blog__topic-card .page-blog__figure img {
    height: 200px; /* Fixed height for consistent card images */
    object-fit: cover;
    width: 100%;
}

.page-blog__topic-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog__topic-card .page-blog__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__btn-link {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
}

.page-blog__btn-link:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-blog__inline-link {
    color: #017439;
    text-decoration: underline;
    font-weight: 600;
}

.page-blog__inline-link:hover {
    color: #005a2d;
}

.page-blog__btn--center {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
}

/* CTA Section at bottom */
.page-blog__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-section .page-blog__container--narrow {
    max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-blog__section-title {
        font-size: clamp(1.6em, 3.8vw, 2.2em);
    }
    .page-blog__topic-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section padding/spacing/stacking, CTAs */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
        margin-bottom: 10px;
    }
    .page-blog__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 2. Single column long text containers */
    .page-blog__articles-section,
    .page-blog__expert-advice,
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-blog__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 20px;
    }
    .page-blog__sub-title {
        font-size: clamp(1.2em, 4vw, 1.5em);
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-blog__paragraph {
        font-size: 0.95em;
    }

    /* 3. General images and figures */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog__figure {
        margin: 20px auto;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__figure img {
        height: auto; /* Allow height to adjust naturally */
    }
    .page-blog__topic-card .page-blog__figure img {
         /* Slightly smaller fixed height for card images on mobile */
    }

    /* 4. Buttons and button containers */
    .page-blog__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. Registration tutorial and FAQ blocks - (Hypothetical, as this page doesn't have them) */
    /* If these elements were present, their mobile styles would be here. */
    .page-blog__list {
        padding-left: 15px;
    }
    .page-blog__list-item {
        font-size: 0.9em;
    }
    .page-blog__list--small .page-blog__list-item {
        padding-left: 15px;
    }
    .page-blog__list--small .page-blog__list-item::before {
        left: -5px; /* Adjust bullet position */
    }
}