/* style/news.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-color); /* Body background color */
    line-height: 1.6;
}

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

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-news__main-title {
    font-size: clamp(2em, 5vw, 3.2em);
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

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

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

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

.page-news__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--gold-color);
    text-decoration: none;
    border: 2px solid var(--gold-color);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--bg-color);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(0,255,0,0.3);
}

.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: var(--deep-green-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px 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 8px 20px rgba(0, 0, 0, 0.5);
}

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    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;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__article-title a:hover {
    color: var(--gold-color);
}

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

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

.page-news__read-more {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

.page-news__view-all-news {
    text-align: center;
    margin-top: 30px;
}

/* CTA Section */
.page-news__cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 50px;
    background: linear-gradient(90deg, var(--deep-green-color) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
}

.page-news__cta-content {
    flex: 1;
    color: var(--text-main);
}

.page-news__cta-title {
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-news__cta-image {
    flex-shrink: 0;
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: var(--deep-green-color);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: rgba(var(--deep-green-color), 0.8);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

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

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

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 30px;
    }

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

    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-news__cta-section {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .page-news__cta-image {
        margin-top: 30px;
        width: 100%;
        max-width: 500px;
    }
}

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

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

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

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

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

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

    .page-news__latest-articles-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 30px 15px;
        margin: 30px auto;
    }

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

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

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

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

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

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

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

    /* Mobile image, video, button responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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__cta-button,
    .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; /* Add some 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;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    
    /* Ensure all content containers are responsive */
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__articles-grid,
    .page-news__article-card,
    .page-news__cta-content {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Content area images must be at least 200px, but responsive */
    .page-news__article-image {
        min-width: 200px;
        min-height: 200px;
        height: auto; /* Allow auto height */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.2em, 8vw, 1.8em);
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
}