/* General styling 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 15px;
}

.page-blog__section-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Gold */
    line-height: 1.2;
}

.page-blog__section-description {
    text-align: center;
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Fixed header spacing */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

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

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

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #F2FFF6; /* Ensure text is light on dark overlay */
}

.page-blog__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Use clamp for H1 */
    font-weight: 800;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.page-blog__intro-text {
    font-size: 1.2em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.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.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-blog__btn-secondary:hover {
    background: #2E7A4E; /* Border color */
    color: #ffffff;
    transform: translateY(-3px);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 80px 0;
    background: #08160F; /* Background */
}

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

.page-blog__post-card {
    background: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.page-blog__post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

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

/* About 789be Section */
.page-blog__about-789be-section {
    padding: 80px 0;
    background: #11271B; /* Card BG */
}

.page-blog__about-789be-section .page-blog__section-title {
    color: #F2FFF6; /* Text Main */
}

.page-blog__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.page-blog__image-block img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    display: block;
}

/* CTA Banner Section */
.page-blog__cta-banner-section {
    padding: 60px 0;
    background: #0A4B2C; /* Deep Green */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-blog__cta-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-blog__cta-banner-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.page-blog__cta-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.page-blog__cta-description {
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
    background: #08160F; /* Background */
}

.page-blog__faq-section .page-blog__section-title {
    color: #F2C14E; /* Gold */
}

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #2E7A4E; /* Border color */
    overflow: hidden;
    background: #11271B; /* Card BG */
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: #1e3a2a; /* Divider color for hover */
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #F2FFF6; /* Text Main */
}
.page-blog__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 25px 25px;
    background: #0A4B2C; /* Deep Green */\    border-radius: 0 0 10px 10px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1em;
}
.page-blog__faq-answer p {
    margin-bottom: 1em;
}
.page-blog__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2.2em, 4.5vw, 3.5em);
    }
    .page-blog__section-title {
        font-size: 2.5em;
    }
    .page-blog__cta-title {
        font-size: clamp(1.8em, 3.5vw, 2.8em);
    }
    .page-blog__content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-blog__image-block {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px; /* 約 10px 頂距 */
        min-height: 400px;
    }
    .page-blog__hero-image img {
        object-fit: contain !important; /* 移动 `object-fit:contain !important` */
        aspect-ratio: unset !important; /* `aspect-ratio:unset` */
        height: auto !important; /* ensure image scales properly */
    }
    .page-blog__hero-content {
        padding: 30px 15px;
        margin: 15px auto;
        max-width: calc(100% - 30px);
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* 更小的 clamp 范围 */
        text-align: center;
    }
    .page-blog__intro-text {
        font-size: 0.95em;
    }
    
    /* 通用图片与容器 */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-blog__container,
    .page-blog__section,
    .page-blog__card,
    .page-blog__text-block,
    .page-blog__image-block,
    .page-blog__cta-banner-content,
    .page-blog__cta-text-wrap {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-blog__section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .page-blog__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-blog__article-body { /* For long-form SEO content, if any */
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-blog__content-grid {
        gap: 30px;
    }
    .page-blog__text-block p {
        font-size: 0.95em;
    }

    /* 按钮与按钮容器 */
    .page-blog__cta-buttons {
        flex-direction: column; /* 移动端垂直排列 */
        gap: 15px;
    }
    .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: 12px 20px;
        font-size: 1em;
    }

    /* Latest Posts Grid */
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-blog__post-image {
        height: 180px;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__post-content {
        padding: 15px;
    }

    /* CTA Banner Section */
    .page-blog__cta-title {
        font-size: clamp(1.5em, 6vw, 2.2em) !important;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-banner-image {
        margin-bottom: 25px;
    }

    /* FAQ Section */
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px 18px;
    }
    .page-blog__faq-qtext {
        font-size: 1em;
    }
    .page-blog__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 18px 18px;
    }
}