:root {
    --main-color: #11A84E; /* Primary */
    --accent-color: #22C768; /* Secondary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --header-offset: 122px; /* Placeholder, actual value from shared.css */
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg); /* Page background */
    line-height: 1.6;
    font-size: 1rem;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: var(--deep-green); /* A darker shade for the hero section background */
    overflow: hidden; /* Ensure nothing spills out */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

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

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-news__lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-news__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive behavior */
    max-width: 600px; /* Max width for button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

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

.page-news__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--deep-green); /* Darker text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-news__section-title {
    font-size: 2.2rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

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

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

.page-news__dark-section {
    background-color: var(--deep-green);
}

/* Latest Updates / News Grid */
.page-news__latest-updates {
    padding-bottom: 60px;
}

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

.page-news__news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    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: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

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

.page-news__news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-news__news-card-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes link to bottom */
}

.page-news__news-card-link {
    display: inline-block;
    color: var(--glow-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__news-card-link:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

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

/* Benefits Section */
.page-news__benefits-section {
    padding-bottom: 60px;
}

.page-news__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__benefit-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__benefit-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Access Guide Section */
.page-news__access-guide {
    padding-bottom: 60px;
}

.page-news__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__guide-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-news__guide-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    display: block;
}

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

.page-news__guide-text {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-news__guide-text a {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.page-news__cta-buttons--center {
    margin-top: 50px;
}

/* FAQ Section */
.page-news__faq-section {
    padding-bottom: 60px;
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: var(--deep-green); /* Slightly different background when open */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid transparent; /* No border by default */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    list-style: none; /* Hide default marker for summary */
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom-color: var(--border-color);
    background-color: var(--deep-green);
}

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

.page-news__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: var(--gold-color);
}

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

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

.page-news__faq-answer p {
    margin: 0;
}

/* Conclusion Section */
.page-news__conclusion-section {
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__news-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-news__lead-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .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: 12px 20px;
    }

    /* General Section Styling */
    .page-news__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-card-image {
        height: auto; /* Allow image height to be auto for better scaling */
        min-height: 180px; /* Ensure a minimum height */
    }
    /* All containers with images need this */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__news-card,
    .page-news__guide-item,
    .page-news__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-news__guide-image {
        max-width: 100%;
    }

    /* Grid layouts for mobile */
    .page-news__news-grid,
    .page-news__benefits-list,
    .page-news__guide-steps {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    /* FAQ Section */
    .page-news__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.95rem;
    }
    .page-news__faq-toggle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-news__section-title {
        font-size: 1.6rem;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
    .page-news__news-card-title {
        font-size: 1.15rem;
    }
    .page-news__benefit-title,
    .page-news__guide-title {
        font-size: 1.2rem;
    }
}