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

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

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

.page-blog__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image first, then text */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-blog__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 30px;
    object-fit: cover; /* Desktop can cover */
}

.page-blog__hero-text-block {
    text-align: center;
    max-width: 800px;
}

.page-blog__hero-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
    color: #017439;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555555;
}

.page-blog__hero-cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Primary Button Style */
.page-blog__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

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

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

.page-blog__section-title--light {
    color: #ffffff;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-blog__post-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-blog__post-card-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
    min-height: 70px; /* Ensure consistent height */
}

.page-blog__post-card-date {
    font-size: 0.85em;
    color: #888888;
    display: block;
    margin-bottom: 15px;
}

.page-blog__post-card-button {
    display: inline-block;
    color: #017439;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #017439;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__post-card-button:hover {
    color: #005f2e;
    border-color: #005f2e;
}

.page-blog__view-all-wrapper {
    text-align: center;
}

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* About go8pro Blog Section */
.page-blog__about-go8pro-blog-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-blog__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-blog__text-block {
    flex: 2;
}

.page-blog__text-block h3 {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-blog__about-image {
    flex: 1;
    width: 100%;
    max-width: 600px; /* Max width for side image */
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-blog__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
}

.page-blog__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 10px;
}

/* All general images within content sections */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all buttons are responsive by default */
.page-blog__hero-cta-button,
.page-blog__view-all-button,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Button containers */
.page-blog__hero-text-block,
.page-blog__view-all-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Mobile Styles (@media max-width: 768px) --- */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__container {
        padding: 15px;
    }

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-blog__hero-content-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Mobile: contain to avoid cropping */
        margin-bottom: 20px;
    }

    .page-blog__hero-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .page-blog__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-blog__hero-cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        margin: 0 15px;
        box-sizing: border-box !important;
    }

    /* Latest Posts Section */
    .page-blog__latest-posts-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 15px;
    }

    .page-blog__post-card-image {
        height: 180px; /* Smaller fixed height for mobile cards */
    }

    .page-blog__post-card-excerpt {
        min-height: auto; /* Allow height to adjust */
    }

    .page-blog__view-all-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        margin: 0 15px;
        box-sizing: border-box !important;
    }

    /* About go8pro Blog Section */
    .page-blog__about-go8pro-blog-section {
        padding: 40px 0;
    }

    .page-blog__content-wrapper {
        flex-direction: column; /* Stack image and text vertically */
        gap: 30px;
        padding: 0 15px;
    }

    .page-blog__about-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        order: -1; /* Place image above text on mobile for better flow */
        object-fit: contain;
    }

    .page-blog__text-block h3 {
        font-size: 1.5em;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0;
    }

    .page-blog__faq-list {
        padding: 0 15px;
    }

    .page-blog__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-blog__faq-answer {
        padding: 0 20px 15px;
    }

    /* General Images and Containers for mobile */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-text-block,
    .page-blog__view-all-wrapper,
    .page-blog__post-grid,
    .page-blog__content-wrapper,
    .page-blog__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}