/* style/news.css */

/* Global styles for the page-news scope */
.page-news {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

/* Container for main content areas */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: #08160F; /* Consistent with body background */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 30px;
    border-radius: 12px;
    background-color: #11271B; /* Card BG */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    margin: 0 20px; /* Ensure some side padding */
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F; /* Border with brand color */
}

.page-news__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 0 15px #57E38D;
}

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Latest News Section */
.page-news__latest-news-section {
    background-color: #08160F; /* Background */
    padding: 60px 0;
}

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

.page-news__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px #57E38D; /* Glow */
}

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

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

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

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

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

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

.page-news__news-card-summary {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes "Read more" to bottom */
}

.page-news__read-more {
    color: #2AD16F; /* Main brand color */
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start; /* Align to left */
    transition: color 0.3s ease;
}

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

.page-news__cta-buttons {
    text-align: center;
}

/* Featured Articles Section */
.page-news__featured-articles {
    background-color: #11271B; /* Card BG */
    padding: 60px 0;
}

.page-news__articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-news__article-item {
    background-color: #08160F; /* Background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #2E7A4E; /* Border */
}

.page-news__article-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

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

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

/* CTA Banner Section */
.page-news__cta-banner {
    background-color: #08160F; /* Background */
    padding: 80px 20px;
    text-align: center;
}

.page-news__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #11271B; /* Card BG */
    padding: 60px 0;
}

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

.page-news__faq-item {
    background-color: #08160F; /* Background */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #2E7A4E; /* Border */
    overflow: hidden; /* For details tag */
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Border color with opacity */
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2AD16F; /* Main brand color */
    margin-left: 15px;
    line-height: 1; /* Prevent vertical alignment issues */
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px; /* Add side padding for main container */
    }

    /* Images Mobile Responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__news-card-image,
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons Mobile Responsive */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex context for wrap */
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-news__hero-section {
        padding: 10px 0 40px 0;
    }

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

    .page-news__main-title {
        font-size: 2rem;
    }

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

    .page-news__section-title {
        font-size: 1.8rem;
    }

    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
    }

    .page-news__news-card-title {
        font-size: 1.2rem;
    }

    .page-news__article-heading {
        font-size: 1.4rem;
    }

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

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

    .page-news__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
    }
}