/* General styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background: #08160F; /* Background */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__section-subtitle {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    overflow: hidden;
    background: #0A4B2C; /* Deep Green */
}

.page-blog__hero-image-container {
    width: 100%;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: #0A4B2C; /* Deep Green */
}

.page-blog__main-title {
    font-size: clamp(2em, 3vw, 2.5em);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
    background: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

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

.page-blog__blog-card {
    background: #08160F; /* Background */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.page-blog__card-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-blog__card-meta {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__card-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: #57E38D; /* Glow */
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

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

.page-blog__view-all-button-container {
    text-align: center;
    margin-top: 40px;
}

/* About Section */
.page-blog__about-section {
    padding: 80px 0;
    background: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
}

.page-blog__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-blog__about-text {
    flex: 1;
}

.page-blog__about-text p {
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.1em;
}

.page-blog__about-image {
    flex: 1;
    text-align: center;
}

.page-blog__about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

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

.page-blog__faq-item {
    background: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
    list-style: none; /* For details/summary */
}

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

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

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-blog__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

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

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-blog__btn-secondary {
    background: none;
    color: #57E38D; /* Glow */
    border: 2px solid #57E38D; /* Glow */
}

.page-blog__btn-secondary:hover {
    background: #57E38D; /* Glow */
    color: #08160F; /* Background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Global Image styles for responsiveness */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__hero-content {
        padding: 30px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 4vw, 2.2em);
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-blog__about-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-blog__about-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 20px;
    }
    .page-blog__hero-content {
        padding: 20px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.5em, 6vw, 2em) !important;
        line-height: 1.3;
    }
    .page-blog__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__about-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .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 !important;
        padding-right: 15px !important;
    }
    .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 !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* 其他内容模块 (Latest Posts, About, FAQ) */
    .page-blog__latest-posts-section,
    .page-blog__about-section,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-blog__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .page-blog__card-image {
        height: auto; /* Allow image to scale */
    }
    .page-blog__card-title {
        font-size: 1.3em;
    }
    .page-blog__about-text p {
        font-size: 1em;
    }
    .page-blog__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-blog__faq-answer {
        padding: 0 15px 15px 15px;
    }
}