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

.page-blog__hero-section {
    padding-top: 10px; /* Small top padding as per instruction */
    padding-bottom: 60px;
    text-align: center;
    background-color: #08160F; /* Background */
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 font-size */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-blog__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-blog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button custom color */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: #2AD16F;
    border: 2px solid #2AD16F; /* Border color from button gradient start */
}

.page-blog__btn-secondary:hover {
    background-color: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

.page-blog__articles-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-blog__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2AD16F; /* From button gradient */
    border-radius: 2px;
}

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

.page-blog__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__article-thumbnail {
    margin: 0;
    padding: 0;
    line-height: 0; /* Remove extra space below image */
}

.page-blog__article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__article-content {
    padding: 25px;
}

.page-blog__article-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #2AD16F;
}

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

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

.page-blog__read-more-btn {
    display: inline-block;
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.page-blog__read-more-btn:hover {
    color: #2AD16F;
    transform: translateX(5px);
}

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

.page-blog__promo-section {
    padding: 80px 0;
    background-color: #11271B; /* Card BG */
    text-align: center;
    border-top: 1px solid #1E3A2A; /* Divider */
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. 顶区标题 + 双 CTA */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-blog__hero-content {
        padding: 0 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 10px;
    }

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

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-blog__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;
    }

    /* 2. 单栏长文容器 */
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__articles-section,
    .page-blog__promo-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog__section-title::after {
        width: 60px;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-blog__article-card {
        padding: 0; /* Adjust padding for cards */
    }

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

    .page-blog__article-title {
        font-size: 1.2em;
    }

    .page-blog__article-excerpt {
        font-size: 0.95em;
    }

    /* 3. 通用图片与 figure */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All containers that hold images or content for mobile overflow prevention */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__articles-grid,
    .page-blog__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent overflow of child elements */
    }

    /* 4. 按钮与按钮容器 (already covered in cta-buttons) */
    .page-blog__view-all-button-wrap {
        padding: 0 15px;
    }

    /* 5. 注册教程与 FAQ 区块 - General text adjustments */
    .page-blog h3 {
        font-size: 1.3em;
    }
    .page-blog p, .page-blog li {
        font-size: 1em;
    }
}

/* Color Contrast Check for specific elements */
.page-blog__article-card {
  background: #11271B; /* Dark background */
  color: #F2FFF6; /* Light text */
}
.page-blog__promo-section {
  background: #11271B; /* Dark background */
  color: #F2FFF6; /* Light text */
}
.page-blog__btn-primary {
  color: #ffffff; /* Light text on gradient */
}
.page-blog__btn-secondary {
  color: #2AD16F; /* Brand color text on transparent/dark background - contrast is AA compliant */
}
.page-blog__read-more-btn {
  color: #57E38D; /* Glow color on dark background #11271B - contrast is AA compliant */
}