/* style/blog.css */

/* --- Base Styles & Layout --- */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background); /* Default background for the page */
}

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

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

.page-blog__text-block {
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-blog__text-main {
    color: var(--text-main);
}

.page-blog__text-secondary {
    color: var(--text-secondary);
}

.page-blog__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* Must be white for contrast */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: transparent;
    color: var(--main-color); /* Main color #11A84E */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    border: 2px solid var(--main-color); /* Main color #11A84E */
    cursor: pointer;
    text-align: center;
}

.page-blog__btn-secondary:hover {
    background: var(--main-color); /* Main color #11A84E */
    color: #ffffff; /* White text for contrast */
}

.page-blog__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* --- Color Contrast Classes --- */
.page-blog__dark-section {
    background-color: var(--background); /* Use the deep background color */
    color: var(--text-main);
    padding: 60px 0;
}

.page-blog__light-bg {
    background-color: #ffffff; /* Explicitly white for contrast */
    color: #333333; /* Dark text for white background */
    padding: 60px 0;
}

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

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic reasons */
}

.page-blog__hero-content {
    padding: 40px 20px;
    position: relative; /* Ensure content is in normal flow below image */
    z-index: 1;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual flow, but not covering it */
    background: rgba(8, 22, 15, 0.85); /* Deep Green with opacity for readability */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 */
    font-weight: 800;
    color: var(--gold-color); /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Intro Section --- */
.page-blog__intro-section {
    padding: 60px 0;
}

/* --- Featured Posts Section --- */
.page-blog__featured-posts {
    padding: 80px 0;
    text-align: center;
}

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

.page-blog__post-card {
    background-color: var(--card-bg); /* Darker card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.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;
    text-align: left;
}

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

.page-blog__post-title a {
    color: var(--gold-color); /* Gold color for post titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: var(--glow-color); /* Glow color 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;
    flex-grow: 1;
}

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

.page-blog__read-more:hover {
    color: var(--glow-color);
}

/* --- Why VB66 Section --- */
.page-blog__why-vb66 {
    padding: 80px 0;
    text-align: center;
}

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

.page-blog__feature-item {
    background-color: #ffffff; /* White background for contrast */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text for white background */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-icon {
    width: 100%; /* Ensure image fills container */
    max-width: 150px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded corners for icons */
    object-fit: cover;
}

.page-blog__feature-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--deep-green-color); /* Deep green for feature titles */
    margin-bottom: 15px;
}

.page-blog__feature-description {
    font-size: 1em;
    color: #555555; /* Slightly lighter dark text */
}

/* --- How to Join Section --- */
.page-blog__how-to-join {
    padding: 80px 0;
    text-align: center;
}

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

.page-blog__step-item {
    background-color: var(--card-bg); /* Darker card background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-blog__step-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--gold-color); /* Gold for step titles */
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.page-blog__step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--main-color);
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
}

.page-blog__steps-grid {
    counter-reset: step-counter; /* Reset counter for this grid */
}

.page-blog__step-description {
    font-size: 1em;
    color: var(--text-secondary);
}

/* --- FAQ Section --- */
.page-blog__faq-section {
    padding: 80px 0;
}

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

.page-blog__faq-item {
    background-color: #ffffff; /* White background for contrast */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333; /* Dark text for white background */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--deep-green-color); /* Deep green for FAQ questions */
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px 10px 0 0;
}

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

.page-blog__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

/* --- CTA Section --- */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-blog__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__cta-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__post-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__hero-section {
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-blog__hero-image {
        max-height: 400px;
    }
    .page-blog__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        width: 100%; /* Ensure full width on mobile */
        box-sizing: border-box;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* More aggressive clamp for mobile */
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__post-grid,
    .page-blog__features-grid,
    .page-blog__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-blog__post-card,
    .page-blog__feature-item,
    .page-blog__step-item,
    .page-blog__faq-item {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 20px; /* Adjust padding for mobile */
    }
    .page-blog__post-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    .page-blog__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 10px 20px 15px 20px;
    }
    .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__button-group {
      flex-direction: column; /* Stack buttons vertically on mobile */
      gap: 10px;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-blog__video { /* If video were present */
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper { /* If video were present */
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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__hero-section {
        padding-top: 10px !important;
    }
}


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

/* Ensure contrast for elements on dark background */
.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__text-block,
.page-blog__dark-section .page-blog__post-title a,
.page-blog__dark-section .page-blog__post-meta,
.page-blog__dark-section .page-blog__post-excerpt,
.page-blog__dark-section .page-blog__read-more,
.page-blog__dark-section .page-blog__feature-title,
.page-blog__dark-section .page-blog__feature-description,
.page-blog__dark-section .page-blog__step-title,
.page-blog__dark-section .page-blog__step-description,
.page-blog__dark-section .page-blog__cta-description {
    color: var(--text-main); /* Ensure light text on dark background */
}

.page-blog__dark-section .page-blog__post-card,
.page-blog__dark-section .page-blog__step-item {
    background-color: var(--card-bg);
}

.page-blog__dark-section .page-blog__post-title a {
    color: var(--gold-color);
}
.page-blog__dark-section .page-blog__post-title a:hover {
    color: var(--glow-color);
}
.page-blog__dark-section .page-blog__read-more {
    color: var(--main-color);
}
.page-blog__dark-section .page-blog__read-more:hover {
    color: var(--glow-color);
}

.page-blog__dark-section .page-blog__step-title {
    color: var(--gold-color);
}
.page-blog__dark-section .page-blog__step-title::before {
    background-color: var(--main-color);
    color: #ffffff;
}

/* Specific overrides for light-bg sections to ensure dark text */
.page-blog__light-bg .page-blog__section-title,
.page-blog__light-bg .page-blog__text-block,
.page-blog__light-bg .page-blog__feature-title,
.page-blog__light-bg .page-blog__feature-description,
.page-blog__light-bg .page-blog__faq-question,
.page-blog__light-bg .page-blog__faq-answer {
    color: #333333; /* Dark text for light background */
}
.page-blog__light-bg .page-blog__feature-item {
    background-color: #ffffff;
    color: #333333;
}
.page-blog__light-bg .page-blog__feature-title {
    color: var(--deep-green-color);
}
.page-blog__light-bg .page-blog__faq-item {
    background-color: #ffffff;
    color: #333333;
}
.page-blog__light-bg .page-blog__faq-question {
    color: var(--deep-green-color);
}
.page-blog__light-bg .page-blog__faq-toggle {
    color: var(--main-color);
}
.page-blog__light-bg .page-blog__faq-item[open] .page-blog__faq-question {
    background-color: #f9f9f9;
}