.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page, assuming dark body bg */
    background-color: var(--bg-color, #08160F); /* Fallback to default page background if shared.css doesn't define --bg-color */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-blog__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #F2FFF6; /* Main text color */
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #F2FFF6;
}

.page-blog__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
}

/* General Container for content sections */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #F2FFF6; /* Default for dark sections */
}

.page-blog__section-description {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    color: #A7D9B8; /* Default for dark sections */
}

/* CTA Button Styles */
.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: transparent;
    border: 2px solid #11A84E;
    color: #11A84E;
}

.page-blog__btn-secondary:hover {
    background: #11A84E;
    color: #F2FFF6;
}

/* Intro Section */
.page-blog__intro-section {
    padding: 80px 0;
    background-color: #08160F; /* Background color */
    color: #F2FFF6; /* Main text color */
}
.page-blog__intro-section .page-blog__section-title {
    color: #F2FFF6;
}
.page-blog__intro-section .page-blog__section-description {
    color: #A7D9B8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    margin-bottom: 20px;
}
.page-blog__intro-section .page-blog__section-description:last-of-type {
    margin-bottom: 0;
}


/* Blog Posts Section */
.page-blog__posts-section {
    padding: 80px 0;
    background-color: #08160F;
}

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

.page-blog__post-card {
    background-color: #11271B; /* Card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__post-content {
    padding: 25px;
}

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F2FFF6; /* Main text color */
}

.page-blog__post-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 15px;
    line-height: 1.5;
}

.page-blog__read-more {
    display: inline-block;
    color: #2AD16F; /* Highlight color for read more */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #57E38D; /* Glow color on hover */
}

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

/* About Section */
.page-blog__about-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green background */
    color: #F2FFF6;
}
.page-blog__about-section .page-blog__section-title {
    color: #F2FFF6;
}
.page-blog__about-section .page-blog__section-description {
    color: #A7D9B8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    margin-bottom: 20px;
}
.page-blog__about-section .page-blog__section-description:last-of-type {
    margin-bottom: 30px; /* Add margin before CTA button */
}


/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: #08160F; /* Light background for FAQ */
    color: #F2FFF6;
}
.page-blog__faq-section .page-blog__section-title {
    color: #F2FFF6;
}
.page-blog__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-blog__faq-item {
    background-color: #11271B; /* Card background */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6;
}

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #F2FFF6;
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-blog__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.5;
}

/* CTA Bottom Section */
.page-blog__cta-bottom-section {
    padding: 80px 0;
    background-color: #08160F; /* Background color */
    text-align: center;
    color: #F2FFF6;
}
.page-blog__cta-bottom-section .page-blog__section-title {
    color: #F2FFF6;
}
.page-blog__cta-bottom-section .page-blog__section-description {
    color: #A7D9B8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-blog__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-blog__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-blog__post-thumbnail {
        height: 180px;
    }
    .page-blog__post-title {
        font-size: 1.25rem;
    }
    .page-blog__faq-item summary {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding */
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__intro-section,
    .page-blog__posts-section,
    .page-blog__about-section,
    .page-blog__faq-section,
    .page-blog__cta-bottom-section {
        padding: 50px 0;
    }
    .page-blog__container {
        padding: 0 15px !important; /* Ensure padding for mobile containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__post-thumbnail {
        height: auto !important; /* Allow height to adjust */
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-blog__hero-image-wrapper img,
    .page-blog__post-card img,
    .page-blog img { /* General image rule for content area */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-blog__cta-button {
        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;
    }
    .page-blog__faq-item summary {
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-blog__intro-section .page-blog__section-description,
    .page-blog__about-section .page-blog__section-description {
        text-align: center; /* Center text on mobile for better readability */
    }
}

/* Ensure no CSS filters on images */
.page-blog img {
    filter: none; /* Reset any potential filters */
}
.page-blog__hero-image-wrapper img {
    filter: brightness(0.5); /* This is allowed as it's for background, not content image */
}

/* Custom colors */
.page-blog__intro-section, .page-blog__cta-bottom-section {
    background-color: #08160F;
}
.page-blog__about-section {
    background-color: #0A4B2C;
}
.page-blog__post-card, .page-blog__faq-item {
    background-color: #11271B;
    border-color: #2E7A4E;
}
.page-blog__post-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.page-blog__cta-button {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
}
.page-blog__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}
.page-blog__btn-secondary {
    border-color: #11A84E;
    color: #11A84E;
}
.page-blog__btn-secondary:hover {
    background: #11A84E;
    color: #F2FFF6;
}
.page-blog__read-more {
    color: #2AD16F;
}
.page-blog__read-more:hover {
    color: #57E38D;
}
.page-blog__faq-toggle {
    color: #2AD16F;
}
.page-blog__main-title, .page-blog__section-title, .page-blog__post-title, .page-blog__faq-qtext {
    color: #F2FFF6;
}
.page-blog__hero-description, .page-blog__section-description, .page-blog__post-excerpt, .page-blog__faq-answer {
    color: #A7D9B8;
}