/* style/news.css */
/* Body padding-top is handled by shared.css var(--header-offset) */

/* General styles for the news page */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main from custom palette */
    background-color: #08160F; /* Background from custom palette */
    min-height: 100vh; /* Ensure page takes full viewport height */
    padding-bottom: 40px; /* Space for footer */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0A4B2C; /* Deep Green */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
}

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

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

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure content is above any potential background layers */
    z-index: 2;
    color: #F2FFF6;
}

.page-news__main-title {
    font-size: clamp(2em, 5vw, 3.2em); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-news__subtitle {
    font-size: clamp(1em, 2vw, 1.2em);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color */
    border: 2px solid #57E38D;
}

.page-news__btn-secondary:hover {
    background-color: #57E38D;
    color: #08160F; /* Background color */
    transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-news__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__section-description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have consistent height */
}

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

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for article images */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow and push button to bottom */
    display: flex;
    flex-direction: column;
}

.page-news__article-title {
    font-size: clamp(1.1em, 2.5vw, 1.4em);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #F2FFF6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #57E38D; /* Glow color */
}

.page-news__article-meta {
    font-size: 0.85em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to take up available space */
}

.page-news__read-more-btn {
    display: inline-block;
    margin-top: auto; /* Push button to bottom */
    padding: 10px 20px;
    background-color: #22C768; /* Auxiliary color */
    color: #08160F;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__read-more-btn:hover {
    background-color: #11A84E; /* Main color */
    color: #F2FFF6;
}

.page-news__view-all-btn-container {
    margin-top: 40px;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #11A84E; /* Main color as dark bg */
    color: #F2FFF6;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2), inset 0 -5px 15px rgba(0,0,0,0.2);
}

.page-news__dark-bg .page-news__section-title {
    color: #F2C14E; /* Gold on dark bg */
}

.page-news__dark-bg .page-news__section-description {
    color: #F2FFF6; /* White on dark bg */
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-news__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: #0A4B2C; /* Deep Green when open */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details */
}

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

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #0A4B2C; /* Deep Green when open */
}

.page-news__faq-question:hover {
    background-color: #1E3A2A; /* Divider color for hover */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #57E38D; /* Glow color */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

/* Contact CTA Section */
.page-news__contact-cta {
    padding: 60px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-news__contact-cta .page-news__section-title {
    color: #F2C14E;
}

.page-news__contact-cta .page-news__section-description {
    color: #A7D9B8;
    margin-bottom: 30px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 0 15px;
    }
    .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-bottom: 40px;
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-news__subtitle {
        font-size: clamp(0.95em, 3vw, 1.1em);
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__latest-articles-section,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__contact-cta {
        padding: 40px 15px;
    }

    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-news__section-description {
        font-size: clamp(0.85em, 2.5vw, 1em);
    }

    .page-news__article-card {
        margin-bottom: 20px;
    }

    .page-news__article-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* Mobile image, video, button adaptation - MUST INCLUDE */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important; /* Ensure content images are fluid */
      height: auto !important;
      display: block !important;
    }
    
    .page-news video,
    .page-news__video { /* Assuming no video in this page, but keeping for robustness */
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Ensure containers are fluid and don't overflow */
    .page-news__hero-image-wrapper,
    .page-news__latest-articles-section,
    .page-news__articles-grid,
    .page-news__article-card,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__faq-item,
    .page-news__contact-cta,
    .page-news__video-section, /* Assuming no video in this page, but keeping for robustness */
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-image-wrapper { /* Override padding for full width image */
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-news__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-news__hero-image {
        max-height: 400px;
    }
    .page-news__main-title {
        font-size: clamp(1.5em, 9vw, 2.2em);
    }
    .page-news__subtitle {
        font-size: clamp(0.9em, 4vw, 1em);
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .page-news__article-image {
        height: 160px;
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: clamp(1em, 4.5vw, 1.2em);
    }
    .page-news__read-more-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}