/* style/news.css */

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

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section spacing */
.page-news section {
    padding: 60px 0;
}

.page-news__dark-bg {
    background-color: #08160F;
    color: #F2FFF6;
}

.page-news__light-bg {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 15px;
}

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

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

/* CTA Button */
.page-news__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-news__cta-button--secondary {
    background: #11271B; /* Card BG */
    border: 2px solid #2E7A4E; /* Border */
}

.page-news__cta-button--secondary:hover {
    background: #0A4B2C; /* Deep Green */
    border-color: #57E38D; /* Glow */
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__section-title--dark {
    color: #F2C14E; /* Gold for light background */
}

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

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

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-news__article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

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

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

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

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

.page-news__article-excerpt {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #F2C14E; /* Gold */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-news__button-container {
    text-align: center;
    margin-top: 40px;
}

/* Highlights Section */
.page-news__highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-news__highlight-item {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-news__highlight-title {
    font-size: 1.6em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #2E7A4E;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-news__faq-question:hover {
    background-color: #11A84E; /* Main color */
}

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    background-color: #11271B; /* Card BG */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-news section {
        padding: 40px 0;
    }

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

    .page-news__hero-content {
        margin-top: 20px;
    }

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

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

    .page-news__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

    .page-news__article-card,
    .page-news__highlight-item {
        margin: 0; /* Reset margin for full width in container padding */
    }

    .page-news__article-thumbnail {
        height: 180px;
    }

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

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

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

    /* Ensure all images are responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all containers with images/videos/buttons are responsive */
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__highlights,
    .page-news__faq-section,
    .page-news__button-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific override for hero-section to remove horizontal padding if it was added above */
    .page-news__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-news__cta-button {
        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__button-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}