:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bg-card: #11271B;
    --bg-main: #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 */
    background-color: var(--bg-main); /* Default background color, will be #08160F */
}

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

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    line-height: 1.2;
}

.page-blog__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-blog__text-block strong {
    color: var(--glow);
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    background-color: var(--bg-main); /* Fallback */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-bottom: 60px;
}

.page-blog__main-title {
    font-size: 3rem; 
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-blog__cta-button {
    display: inline-block;
    background: var(--btn-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-blog__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--glow);
    color: var(--glow);
}

.page-blog__cta-button--secondary:hover {
    background: var(--glow);
    color: var(--bg-main);
}

/* Introduction Section */
.page-blog__introduction-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

/* Topics Section */
.page-blog__topics-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

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

.page-blog__topic-card {
    background-color: var(--bg-card); /* #11271B */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-blog__topic-card:hover {
    transform: translateY(-5px);
}

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

.page-blog__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 15px 20px 5px;
}

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

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

.page-blog__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
}

/* Benefits Section */
.page-blog__benefits-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* Use Deep Green for dark section */
    color: var(--text-main); /* Ensure white text on dark background */
}

.page-blog__benefits-section .page-blog__section-title {
    color: var(--text-main);
}

.page-blog__benefits-section .page-blog__text-block {
    color: var(--text-secondary); /* Lighter secondary text for contrast */
}

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

.page-blog__benefit-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-card); /* #11271B */
    border-radius: 12px;
    border: 1px solid var(--border-color); /* #2E7A4E */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 50%; /* Make icons circular for visual appeal */
    border: 2px solid var(--glow);
    padding: 5px;
    display: block;
}

.page-blog__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-blog__benefit-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

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

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

.page-blog__post-card:hover {
    transform: translateY(-5px);
}

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

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

.page-blog__post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.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);
}

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

.page-blog__post-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-blog__read-more-button {
    display: inline-block;
    color: var(--glow);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--glow);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

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

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

.page-blog__faq-list {
    margin-top: 40px;
    border-top: 1px solid var(--divider); /* #1E3A2A */
}

.page-blog__faq-item {
    background-color: var(--bg-card); /* #11271B */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color); /* #2E7A4E */
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--bg-card); /* #11271B */
    border-bottom: 1px solid var(--divider); /* #1E3A2A */
    list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--glow);
    margin-left: 15px;
}

.page-blog__faq-answer {
    padding: 15px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-blog__faq-answer p {
    margin-bottom: 10px;
}

.page-blog__faq-answer a {
    color: var(--glow);
    text-decoration: none;
}

.page-blog__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section at bottom */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green); /* Use Deep Green for dark section */
    color: var(--text-main);
}

.page-blog__cta-section .page-blog__section-title {
    color: var(--text-main);
    margin-top: 0;
}

.page-blog__cta-section .page-blog__text-block {
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2.5rem, 5vw, 3rem);
    }
    .page-blog__section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-blog__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem); /* Clamp for H1 as per rule */
        line-height: 1.1;
    }
    .page-blog__section-title {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-blog__hero-content {
        margin-bottom: 40px;
    }
    .page-blog__hero-image {
        max-height: 300px;
    }
    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-blog__grid,
    .page-blog__benefits-grid,
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__topic-image,
    .page-blog__post-image {
        height: auto;
        max-height: 250px;
    }
    .page-blog__benefit-icon {
        width: 80px;
        height: 80px;
    }
    .page-blog__introduction-section,
    .page-blog__topics-section,
    .page-blog__benefits-section,
    .page-blog__latest-posts-section,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__text-block,
    .page-blog__card-description,
    .page-blog__benefit-description,
    .page-blog__post-excerpt,
    .page-blog__faq-answer p {
        font-size: 16px; /* Ensure minimum font size for readability */
    }

    /* Mobile specific image, video, button adaptations */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog video,
    .page-blog__video {
      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-section,
    .page-blog__introduction-section,
    .page-blog__topics-section,
    .page-blog__benefits-section,
    .page-blog__latest-posts-section,
    .page-blog__faq-section,
    .page-blog__cta-section,
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper,
    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-blog__hero-section {
        padding-top: 10px !important;
    }
    
    .page-blog__cta-button,
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        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__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Ensure content area text is readable */
    .page-blog__introduction-section, 
    .page-blog__topics-section, 
    .page-blog__latest-posts-section, 
    .page-blog__faq-section {
        color: var(--text-main); /* Light text */
    }
    .page-blog__introduction-section .page-blog__text-block, 
    .page-blog__topics-section .page-blog__text-block, 
    .page-blog__latest-posts-section .page-blog__text-block, 
    .page-blog__faq-section .page-blog__faq-answer {
        color: var(--text-secondary); /* Lighter secondary text */
    }
}