/* style/news.css */
/* BEM Naming: .page-news__element-name */

/* Base styles for the page content, inheriting from body background */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main for dark background */
    background-color: #08160F; /* Background color */
}

/* Sections padding and max-width */
.page-news__hero-section,
.page-news__latest-articles-section,
.page-news__about-section,
.page-news__faq-section,
.page-news__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 30px;
}

.page-news__main-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

.page-news__intro-text {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-news__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    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;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #11A84E; /* Main color */
    border: 2px solid #11A84E; /* Border color */
}

.page-news__btn-secondary:hover {
    background-color: #11A84E; /* Main color */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(17, 168, 78, 0.4);
}

.page-news__section-description {
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    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: 40px;
}

.page-news__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

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

.page-news__article-title a:hover {
    color: #2AD16F; /* Lighter green from button gradient */
}

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

.page-news__article-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-news__read-more {
    color: #2AD16F; /* Lighter green from button gradient */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more:hover {
    color: #57E38D; /* Glow color */
}

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

/* About Section */
.page-news__about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-news__about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__about-text {
    flex: 1;
    min-width: 300px;
}

.page-news__about-text p {
    margin-bottom: 15px;
    color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #1e3a2a; /* Slightly lighter than divider */
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom-color: transparent; /* Remove border when open */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #2AD16F; /* Lighter green */
}

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

/* Hide default details marker */
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-news__faq-item summary::marker {
    display: none;
}


/* CTA Section */
.page-news__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__about-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__intro-text,
    .page-news__section-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .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__about-content {
        flex-direction: column;
    }
    .page-news__about-image {
        max-width: 100%;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image,
    .page-news__article-image,
    .page-news__about-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure height adjusts */
    }

    /* Video responsiveness (if any) */
    .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; /* body already handles header-offset */
    }

    /* General container padding for mobile */
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__about-section,
    .page-news__faq-section,
    .page-news__cta-section {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }

    .page-news__article-card {
        padding: 0; /* Remove padding from card itself to let content padding work */
    }
    .page-news__article-content {
        padding: 20px;
    }
}