/* style/news.css */

/* Base Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF;
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-news__section-title {
    font-size: 36px;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__sub-title {
    font-size: 28px;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__intro-text,
.page-news p,
.page-news li {
    font-size: 18px;
    margin-bottom: 15px;
}

.page-news__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-news__list li {
    margin-bottom: 8px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-news__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
}

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

.page-news__hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
}

.page-news__hero-button {
    font-size: 20px;
    padding: 15px 35px;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-news__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-news__news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__news-card-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__news-card-title a {
    color: #017439;
    text-decoration: none;
}

.page-news__news-card-title a:hover {
    text-decoration: underline;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-news__news-card-link:hover {
    text-decoration: underline;
}

.page-news__view-all-button-container {
    text-align: center;
}

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-news__featured-articles .page-news__section-title {
    color: #ffffff;
}

.page-news__article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-news__article-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    align-items: flex-start;
}

.page-news__article-image {
    width: 200px;
    height: 133px; /* Aspect ratio 3:2 */
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
    flex-shrink: 0;
}

.page-news__article-content {
    flex-grow: 1;
}

.page-news__article-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-news__article-title a:hover {
    text-decoration: underline;
}

.page-news__article-meta {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 16px;
    color: #e0e0e0;
}

/* In-depth Analysis Section */
.page-news__in-depth-analysis {
    padding: 80px 0;
    background-color: #ffffff;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7ed;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #dcf0e0;
}

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

.page-news__faq-answer p {
    margin-bottom: 0;
    font-size: 16px;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-news__cta-title {
    font-size: 38px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* General Image Styling (for all images within .page-news) */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter properties to change color */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 40px;
    }

    .page-news__hero-description {
        font-size: 18px;
    }

    .page-news__section-title {
        font-size: 32px;
    }

    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-news__article-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-news__article-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .page-news__cta-title {
        font-size: 32px;
    }

    .page-news__cta-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-news__hero-section {
        height: 450px;
        padding-top: 0 !important; /* Ensure no double padding if shared.css adds to body */
    }

    .page-news__hero-content {
        padding: 20px;
        max-width: 90%;
    }

    .page-news__hero-title {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }

    .page-news__hero-description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }

    .page-news__hero-button {
        font-size: 18px !important;
        padding: 12px 25px !important;
    }

    /* 产品展示图区域 (News Grid) */
    .page-news__news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-news__news-card {
        width: 100% !important;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__container,
    .page-news__section,
    .page-news__card,
    .page-news__box,
    .page-news__latest-news-section,
    .page-news__featured-articles,
    .page-news__in-depth-analysis,
    .page-news__faq-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news 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-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
    }

    /* 其他内容模块 */
    .page-news__section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    .page-news__sub-title {
        font-size: 24px !important;
    }

    .page-news__intro-text,
    .page-news p,
    .page-news li {
        font-size: 16px !important;
    }

    .page-news__article-item {
        padding: 15px !important;
    }

    .page-news__article-title {
        font-size: 20px !important;
    }

    .page-news__faq-question {
        font-size: 18px !important;
        padding: 15px !important;
    }

    .page-news__faq-answer {
        padding: 15px !important;
    }

    .page-news__cta-title {
        font-size: 28px !important;
    }

    .page-news__cta-description {
        font-size: 16px !important;
    }
}