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

/* Base styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--background-dark); /* Ensure consistency if body background is not set by shared.css */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    background-color: var(--background-dark);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    overflow: hidden;
    border-radius: 10px;
}

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

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
    text-align: center;
}

.page-news__main-title {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    /* No fixed font-size for H1, relying on clamp if needed, or responsive CSS */
}

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

/* CTA Buttons */
.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit width on larger screens */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't exceed container */
    flex-grow: 1; /* Allow buttons to grow */
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
    background: transparent;
    color: var(--secondary-color); /* Use secondary color for text */
    border: 2px solid var(--secondary-color);
}

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

/* Sections */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%; /* Ensure container takes full width for responsive padding */
}

.page-news__dark-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

.page-news__light-bg {
    background-color: var(--card-background); /* Using card background for light section to ensure contrast */
    color: var(--text-main);
    padding: 80px 0;
}

.page-news__section-title {
    color: var(--text-main);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

.page-news__article-card,
.page-news__featured-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-news__article-card:hover,
.page-news__featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__card-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__card-image,
.page-news__featured-card:hover .page-news__card-image {
    transform: scale(1.05);
}

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

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

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

.page-news__card-title a:hover {
    color: var(--secondary-color);
}

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

.page-news__card-excerpt {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--secondary-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__card-link:hover {
    color: var(--glow-color);
    border-color: var(--glow-color);
}

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

/* Featured News Section */
.page-news__featured-news {
    background-color: var(--deep-green); /* A slightly different dark background */
    padding: 80px 0;
}

/* CTA Section */
.page-news__cta-section {
    background: var(--button-gradient); /* Use button gradient as background */
    padding: 80px 0;
    text-align: center;
    color: #ffffff; /* White text for contrast */
}

.page-news__cta-title {
    color: #ffffff;
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--card-background); /* Using card background for light section to ensure contrast */
    color: var(--text-main);
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--divider-color);
}

.page-news__faq-item {
    border-bottom: 1px solid var(--divider-color);
    padding: 20px 0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px 0;
    list-style: none; /* For <details> summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <details> summary */
}

.page-news__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-news__faq-answer {
    padding-top: 15px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

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

    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

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

    .page-news__main-title {
        font-size: 1.8em;
    }

    .page-news__description {
        font-size: 1em;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-news__dark-section,
    .page-news__featured-news,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 50px 0;
    }

    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-news__articles-grid,
    .page-news__featured-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__card-image {
        height: 200px;
    }

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

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

    .page-news__cta-title {
        font-size: 1.8em;
    }

    .page-news__cta-description {
        font-size: 1em;
    }

    .page-news__faq-question {
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__card-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness - although no video currently, for future proofing */
    .page-news video,
    .page-news__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: 10px !important;
    }
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}