:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-color: #08160F;
    --card-bg-color: #11271B;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Main text color for dark body background */
    background-color: var(--bg-color); /* Custom background color */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--deep-green-color); /* Darker background for hero */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1920px; /* Max width for the image */
}

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color); /* Gold color for H1 */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-news__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text from wrapping by default for desktop */
}

.page-news__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* General Section Styling */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__latest-articles-section,
.page-news__benefits-section,
.page-news__cta-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-news__dark-bg {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    padding: 80px 0;
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--gold-color);
    line-height: 1.3;
}

.page-news__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__article-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for article images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

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

.page-news__article-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-news__article-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-news__article-title a {
    color: var(--text-main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--gold-color);
}

.page-news__article-summary {
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to take available space */
}

.page-news__read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

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

/* Important Announcements */
.page-news__important-announcements-section {
    background-color: var(--deep-green-color); /* Darker green background */
    padding: 80px 0;
}

.page-news__announcement-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-news__announcement-item:last-child {
    margin-bottom: 0;
}

.page-news__announcement-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-news__announcement-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

/* Benefits Section */
.page-news__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-news__benefit-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__benefit-item:hover {
    transform: translateY(-8px);
}

.page-news__benefit-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    margin-bottom: 20px;
    object-fit: contain; /* Keep aspect ratio without cropping */
    display: block;
}

.page-news__benefit-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

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

.page-news__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-news__faq-item summary:hover {
    background-color: var(--divider-color);
}

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

.page-news__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

/* Call to Action Section */
.page-news__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--bg-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 10px 20px 40px;
    }
    .page-news__hero-content {
        max-width: 700px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-news__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 10px 15px 30px;
    }
    .page-news__hero-content {
        padding: 0 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-news__description {
        font-size: 1rem;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    }
    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-news__latest-articles-section,
    .page-news__important-announcements-section,
    .page-news__benefits-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__article-image {
        height: 200px; /* Adjust height for mobile */
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__article-card {
        padding-bottom: 0; /* Remove extra padding if any */
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.2rem;
    }
    .page-news__benefit-item {
        padding: 25px;
    }
    .page-news__benefit-icon {
        width: 200px !important; /* Ensure min 200x200 on mobile */
        height: 200px !important;
        max-width: 100% !important; /* Allow shrinking if container is smaller than 200px */
        height: auto !important; /* Maintain aspect ratio */
        display: block !important;
    }
    .page-news__faq-item summary {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px 18px;
    }

    /* Ensure all images and video wrappers are responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__important-announcements-section,
    .page-news__benefits-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-news__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}