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

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color, will be #F2FFF6 on dark background */
    background-color: var(--background); /* Default background, will be #08160F */
}

/* 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 as body handles header offset */
    overflow: hidden;
    background-color: var(--background); /* Dark background for hero */
}

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

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    /* No filter for color change, only brightness for contrast */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--text-main); /* Light text on dark background */
}

.page-blog__main-title {
    font-size: 3.2em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main); /* Light text */
}

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

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text on primary button */
    border: none;
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: var(--text-main); /* Light text on secondary button */
    border: 2px solid var(--deep-green); /* Border from color scheme */
}

.page-blog__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

.page-blog__section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* Featured Posts Section */
.page-blog__featured-posts {
    padding: 80px 0;
    background-color: var(--card-b-g); /* Dark background */
    color: var(--text-main);
}

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

.page-blog__post-card {
    background-color: var(--background); /* Slightly darker for card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 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 8px 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.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
    flex-grow: 1;
}

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

.page-blog__post-title a:hover {
    color: var(--glow); /* Highlight on hover */
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--glow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
    padding: 80px 0;
    background-color: var(--background); /* Dark background */
    color: var(--text-main);
}

.page-blog__posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-blog__list-item {
    display: flex;
    background-color: var(--card-b-g); /* Darker for list items */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__list-image {
    width: 300px; /* Fixed width for list image */
    height: 200px; /* Fixed height */
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.page-blog__list-content {
    padding: 25px;
    flex-grow: 1;
}

.page-blog__list-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-blog__list-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__list-title a:hover {
    color: var(--glow);
}

.page-blog__list-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--card-b-g); /* Dark background */
    color: var(--text-main);
}

.page-blog__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-blog__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

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

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

.page-blog__faq-item {
    background-color: var(--card-b-g);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--divider);
}

.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);
    cursor: pointer;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow);
    transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-blog__faq-answer p {
    margin: 0;
}

/* Color contrast enforcement for specific elements if needed */
.page-blog__dark-bg {
    background-color: var(--background);
    color: var(--text-main);
}
.page-blog__dark-section {
    background-color: var(--card-b-g);
    color: var(--text-main);
}
.page-blog__light-bg {
    background-color: var(--background); /* Keeping it dark for overall theme based on provided colors */
    color: var(--text-main);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2.4em;
    }
    .page-blog__list-item {
        flex-direction: column;
    }
    .page-blog__list-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: 2.2em;
    }
    .page-blog__description {
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        padding: 12px 20px;
    }

    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-blog__featured-posts,
    .page-blog__latest-posts,
    .page-blog__cta-section,
    .page-blog__faq-section {
        padding: 50px 0;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__post-image {
        height: 200px;
    }

    .page-blog__list-item {
        flex-direction: column;
    }
    .page-blog__list-image {
        width: 100%;
        height: 180px;
    }
    .page-blog__list-title {
        font-size: 1.2em;
    }

    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1.1em;
    }

    .page-blog__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 18px 20px;
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .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,
    .page-blog__hero-image-wrapper,
    .page-blog__posts-grid,
    .page-blog__posts-list,
    .page-blog__list-item,
    .page-blog__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
        /* padding-left and padding-right are handled by specific elements */
    }
    .page-blog__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-blog__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-blog__cta-buttons .page-blog__btn-primary,
    .page-blog__cta-buttons .page-blog__btn-secondary {
        margin: 0 auto; /* Center buttons if they stack */
    }
    .page-blog__posts-grid, .page-blog__posts-list {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ensure content area images are not too small for mobile */
    .page-blog__post-image,
    .page-blog__list-image {
        min-width: 200px !important;
        min-height: 180px !important;
    }
}

/* Ensure content area images are not too small */
.page-blog__post-image,
.page-blog__list-image {
    min-width: 200px;
    min-height: 200px;
}
/* For content images in general */
.page-blog img:not(.page-blog__hero-image) { /* Exclude hero image from this min-size rule if it's too restrictive */
    min-width: 200px;
    min-height: 200px;
}