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

/* --- General Styles --- */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--bg-color); /* #08160F */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-blog should not add additional padding-top for header offset */

/* --- Hero Section --- */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    text-align: center;
    background-color: var(--card-bg); /* #11271B as a fallback/container bg */
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Match hero image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-blog__hero-content {
    max-width: 900px;
    z-index: 1;
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

/* --- CTA Buttons --- */
.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-blog__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    min-width: 200px; /* Minimum button width */
}

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

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
    background-color: var(--text-main); /* #F2FFF6 */
    color: var(--deep-green); /* #0A4B2C */
    border: 2px solid var(--deep-green); /* #0A4B2C */
}

.page-blog__btn-secondary:hover {
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Content Area --- */
.page-blog__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-color); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__section-intro {
    margin-bottom: 50px;
    text-align: center;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-blog__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__article {
    margin-bottom: 60px;
}

.page-blog__article-heading {
    font-size: 2em;
    color: var(--gold); /* #F2C14E */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--divider); /* #1E3A2A */
    padding-bottom: 10px;
}

.page-blog__article-subheading {
    font-size: 1.5em;
    color: var(--primary-color); /* #11A84E */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-blog__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-blog__article-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    max-height: 450px; /* Limit height for consistency */
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
}

.page-blog__unordered-list,
.page-blog__ordered-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__unordered-list li,
.page-blog__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-blog__unordered-list li strong,
.page-blog__ordered-list li strong {
    color: var(--text-main); /* #F2FFF6 */
}

/* --- FAQ Section --- */
.page-blog__faq-container {
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 10px;
    overflow: hidden;
}

.page-blog__faq-item {
    background-color: var(--card-bg); /* #11271B */
    margin-bottom: 10px;
    border-bottom: 1px solid var(--divider); /* #1E3A2A */
}

.page-blog__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

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

.page-blog__faq-question:hover {
    background-color: var(--deep-green); /* #0A4B2C */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--primary-color); /* #11A84E */
}

.page-blog__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
    max-height: 0; /* For JS-controlled div */
    overflow: hidden; /* For JS-controlled div */
    transition: max-height 0.5s ease-out; /* For JS-controlled div */
}

/* For details tag, answer is visible by default when open */
.page-blog__faq-item[open] .page-blog__faq-answer {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* For JS-controlled div based FAQ */
.page-blog__faq-item.active .page-blog__faq-answer {
    max-height: 2000px !important;
}

.page-blog__faq-item.active .page-blog__faq-toggle {
    content: "−";
}

/* --- Conclusion Section --- */
.page-blog__conclusion-section {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--divider); /* #1E3A2A */
}

/* Ensure all text elements respect color contrast */
.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
    color: var(--gold); /* Or other bright color for headings */
}

.page-blog p, .page-blog li {
    color: var(--text-secondary);
}

.page-blog__btn-primary {
    color: #ffffff; /* Explicit white for primary button text */
}

.page-blog__btn-secondary {
    color: var(--deep-green); /* Explicit dark green for secondary button text */
}

/* Contrast fix for any potentially problematic areas */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Content area images: minimum size enforcement */
.page-blog__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-blog__content-area {
        padding: 40px 15px;
    }

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

    .page-blog__article-heading {
        font-size: 1.8em;
    }

    .page-blog__article-subheading {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 20px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-blog__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-blog__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1em;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__content-area {
        padding: 30px 15px;
    }

    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    .page-blog__article-heading {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-blog__article-subheading {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Mobile image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
        object-fit: cover !important;
    }

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

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

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