/* style/news.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the news page, ensuring text is visible on a potentially dark body background */
.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for the page content */
    background-color: var(--background-color);
}

.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;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    color: var(--text-main-color);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-news__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.page-news__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-news__article-card {
    background-color: var(--card-bg-color);
    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;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

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

.page-news__article-image {
    width: 100%;
    height: 220px;
    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.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

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

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

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

.page-news__read-more:hover {
    color: var(--glow-color);
}

.page-news__button-group {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-news__btn-secondary {
    display: inline-block;
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Featured News Section */
.page-news__featured-news {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.page-news__featured-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.page-news__featured-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.page-news__featured-content {
    padding: 30px;
}

.page-news__featured-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-news__featured-title a:hover {
    color: var(--secondary-color);
}

.page-news__featured-meta {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-news__featured-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* CTA Section (Dark Background) */
.page-news__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
    text-align: center;
    color: var(--text-main-color);
}

.page-news__cta-section .page-news__section-title {
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-news__cta-section .page-news__description {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.15rem;
    color: var(--text-secondary-color);
}

.page-news__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-news__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--text-main-color);
    transition: all 0.3s ease;
}

.page-news__faq-item[open] {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main-color);
    background-color: var(--card-bg-color);
    user-select: none;
}

.page-news__faq-question::-webkit-details-marker, 
.page-news__faq-question::marker {
    display: none;
}

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

.page-news__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Desktop specific styles */
@media (min-width: 769px) {
    .page-news__featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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

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

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

    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-news__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
        padding-top: 30px;
    }

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

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

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

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

    .page-news__featured-image {
        height: 250px;
    }

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

    .page-news__featured-title {
        font-size: 1.4rem;
    }

    .page-news__cta-section {
        padding: 60px 0;
    }

    .page-news__cta-section .page-news__description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-news__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__cta-button,
    .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;
    }

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

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

    /* Image, Video, and Container Responsiveness */
    .page-news img {
        max-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__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    
    .page-news__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }
    
    .page-news__video-section {
        padding-top: 10px !important;
    }
}