:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
    --deep-green-rgb: 10, 75, 44;
}

/* --- General Blog Page Styles --- */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text on dark background */
    background-color: var(--background); /* Deep Green */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: var(--text-main); /* Light text */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-blog__section-title--centered {
    text-align: center;
}

.page-blog__description {
    font-size: 1.1em;
    color: var(--text-secondary); /* Secondary light text */
    text-align: center;
    margin-bottom: 30px;
}

.page-blog__description--centered {
    text-align: center;
}

/* --- Hero Section --- */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--gold); /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__cta-button {
    display: inline-block;
    background: var(--button-gradient); /* Green gradient */
    color: var(--text-main); /* Light text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Latest Posts Section --- */
.page-blog__latest-posts-section {
    padding: 80px 0;
    background-color: var(--background); /* Deep Green */
}

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

.page-blog__post-card {
    background-color: var(--card-bg); /* Darker green */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-blog__post-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-title .page-blog__post-link {
    color: var(--text-main); /* Light text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title .page-blog__post-link:hover {
    color: var(--glow); /* Lighter green on hover */
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: var(--text-secondary); /* Secondary light text */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--text-secondary); /* Secondary light text */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-button {
    display: inline-block;
    color: var(--glow); /* Lighter green */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more-button:hover {
    color: var(--gold); /* Gold on hover */
}

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

.page-blog__view-all-button {
    display: inline-block;
    background: var(--button-gradient); /* Green gradient */
    color: var(--text-main); /* Light text */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* --- About Section --- */
.page-blog__about-section {
    padding: 80px 0;
    background-color: var(--background); /* Deep Green */
}

.page-blog__about-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: center;
}

.page-blog__about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent image from shrinking too much */
}

.page-blog__text-block {
    flex: 1;
    min-width: 300px; /* Ensure text block has enough space */
    color: var(--text-secondary); /* Secondary light text */
}

.page-blog__text-block p {
    margin-bottom: 1.2em;
}

/* --- CTA Section --- */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--card-bg); /* Darker green */
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
    background: var(--button-gradient); /* Green gradient */
    color: var(--text-main); /* Light text */
    border: none;
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-secondary {
    background: transparent;
    color: var(--glow); /* Lighter green text */\    border: 2px solid var(--glow); /* Lighter green border */
}

.page-blog__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: rgba(87, 227, 141, 0.1); /* Subtle background on hover */
}

/* --- FAQ Section --- */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: var(--background); /* Deep Green */
}

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

.page-blog__faq-item {
    background-color: var(--card-bg); /* Darker green */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main); /* Light text */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
    background-color: rgba(var(--deep-green-rgb), 0.5); /* Use RGB for rgba */
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--glow); /* Lighter green */
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary); /* Secondary light text */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 2em;
    }

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

    .page-blog__post-image {
        height: 180px;
    }

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

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

    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.8em);
        margin-bottom: 15px;
    }

    .page-blog__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-blog__cta-button {
        max-width: 100% !important; /* Button responsive */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Space out if stacked */
    }
    
    .page-blog__latest-posts-section,
    .page-blog__about-section,
    .page-blog__cta-section,
    .page-blog__faq-section {
        padding: 50px 0;
    }

    .page-blog__container {
        padding: 0 15px;
    }

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

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__post-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__post-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__about-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-blog__about-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    /* Ensure all images within .page-blog are responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__video-section { /* If video section were present */
        padding-top: 10px !important;
    }
    .page-blog__video-container,
    .page-blog__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}