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

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

.page-news__section-spacing {
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

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

.page-news__section-text {
    font-size: 17px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    overflow: hidden;
    background-color: #017439; /* Fallback for image loading */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    max-height: 810px; /* Adjust as needed for visual balance */
    object-fit: cover;
    display: block;
}

.page-news__hero-content {
    position: relative; /* Not absolute, to be below the image */
    text-align: center;
    padding: 40px 20px 60px;
    color: #ffffff;
    background-color: #017439; /* Solid background for text */
    width: 100%;
}

.page-news__main-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
}

.page-news__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #fff;
}

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

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

.page-news__btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

/* Dark Section */
.page-news__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-news__dark-section a {
    color: #FFFF00; /* Links in dark section */
}

.page-news__dark-section a:hover {
    text-decoration: underline;
}

/* News Grid */
.page-news__news-grid,
.page-news__promo-grid,
.page-news__guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

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

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

.page-news__news-card-title,
.page-news__promo-card-title,
.page-news__guide-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-news__news-card-meta {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__news-card-description,
.page-news__promo-card-description,
.page-news__guide-card-description {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-link,
.page-news__promo-card-link,
.page-news__guide-card-link {
    margin-top: auto; /* Push button to bottom */
}


/* Article List (Industry News) */
.page-news__article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-news__article-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.page-news__article-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__article-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #017439;
    margin-bottom: 8px;
}

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

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

.page-news__article-item-meta {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
}

.page-news__article-item-description {
    font-size: 15px;
    color: #555555;
}

/* CTA Section */
.page-news__cta-section {
    text-align: center;
    background-color: #f8f8f8;
}

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

/* FAQ Section */
.page-news__faq-section {
    background-color: #017439;
    color: #ffffff;
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #005a2e; /* Darker green border for contrast */
    overflow: hidden;
    background: #005a2e; /* Slightly darker green background for items */
    color: #ffffff;
}
details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #ffffff;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
    background: #004d26; /* Even darker green on hover */
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #ffffff;
}
.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    background: #004d26; /* Darker background for answer */
    border-radius: 0 0 5px 5px;
    color: #ffffff;
}
.page-news__faq-answer p {
    color: #ffffff;
}

/* Links within content */
.page-news__introduction-section a,
.page-news__promotions-section a,
.page-news__industry-news a,
.page-news__guides-tips a,
.page-news__cta-section a {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
}

.page-news__introduction-section a:hover,
.page-news__promotions-section a:hover,
.page-news__industry-news a:hover,
.page-news__guides-tips a:hover,
.page-news__cta-section a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

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

    .page-news__hero-content {
        padding: 30px 20px 50px;
    }

    .page-news__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .page-news__section-spacing {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding-top: 10px; /* Still small top padding */
    }

    .page-news__hero-image {
        height: auto;
        max-height: 450px; /* Adjusted max-height for mobile hero image */
        object-fit: contain; /* Ensure image is fully visible */
    }

    .page-news__hero-content {
        padding: 25px 15px 40px;
    }

    .page-news__main-title {
        font-size: clamp(22px, 7vw, 36px);
        margin-bottom: 15px;
    }

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

    .page-news__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .page-news__section-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-news__section-spacing {
        padding: 40px 0;
    }

    /* News/Promo/Guides Grid */
    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-card-image,
    .page-news__promo-card-image,
    .page-news__guide-card-image {
        height: auto; /* Allow height to adjust */
        max-height: 200px;
    }
    
    .page-news__news-card-content,
    .page-news__promo-card-content,
    .page-news__guide-card-content {
        padding: 20px;
    }

    .page-news__news-card-title,
    .page-news__promo-card-title,
    .page-news__guide-card-title {
        font-size: 18px;
    }

    .page-news__article-item {
        padding: 20px;
    }

    .page-news__article-item-title {
        font-size: 18px;
    }

    /* CTA Buttons Mobile */
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Added padding for buttons */
    }

    .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;
        padding-right: 15px;
    }

    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* FAQ Mobile */
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 15px; }
    details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

    /* General image responsiveness for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}