/* style/news.css */

/* Variables from global color scheme */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* This will be overridden by shared.css if defined there */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;

    /* Default text color based on assumed dark body background from custom colors */
    --body-text-color: var(--text-main); /* Assuming body background is dark from custom colors */
    --body-link-color: var(--gold-color); /* Links stand out */
}

/* Ensure text color matches body background based on intelligent contrast */
/* Assuming body background is dark based on the provided custom colors */
.page-news {
    color: var(--body-text-color);
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    background-color: var(--background-color); /* Fallback, but shared.css body background will take precedence */
}

/* Base styles for sections and containers */
.page-news__hero-section,
.page-news__featured-news-section,
.page-news__all-news-archive,
.page-news__why-choose-section,
.page-news__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 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;
    background-color: var(--deep-green); /* Darker background for hero */
    color: var(--text-main);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain hero image width */
    margin-bottom: 20px;
}

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

.page-news__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: 2.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-news__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Section Titles */
.page-news__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* News Grid for Featured News */
.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: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-news__news-card img {
    width: 100%;
    height: 220px; /* Fixed height for cards */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--divider-color);
}

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

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

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

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

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

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

.page-news__read-more-btn {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

.page-news__read-more-btn:hover {
    color: var(--gold-color);
    border-color: var(--gold-color);
}

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

/* News List for All News Archive */
.page-news__news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-news__list-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__list-item img {
    width: 250px; /* Fixed width for list item image */
     /* Fixed height */
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border-right: 1px solid var(--divider-color);
}

.page-news__item-content {
    padding: 15px 20px;
    flex-grow: 1;
}

.page-news__item-title {
    font-size: 1.2em;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

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

.page-news__item-meta {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-news__item-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Why Choose Section */
.page-news__why-choose-section {
    background-color: var(--deep-green);
    color: var(--text-main);
    padding: 60px 20px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.page-news__dark-section .page-news__section-title {
    color: var(--gold-color);
}

.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-news__benefit-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

.page-news__benefit-item:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.page-news__benefit-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-news__benefit-description {
    font-size: 1em;
    color: var(--text-secondary);
}

.page-news__benefit-description a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.page-news__benefit-description a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-news__faq-section {
    margin-top: 50px;
}

.page-news__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: var(--deep-green); /* Darker background for question */
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: var(--primary-color);
}

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

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
    color: var(--gold-color);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-news__faq-answer {
    padding: 15px 25px 20px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 1em;
    border-top: 1px solid var(--divider-color);
}

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

.page-news__faq-answer a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.5em;
    }
    .page-news__description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__news-card img {
        height: 200px;
    }
    .page-news__list-item img {
        width: 200px;
        
    }
}

@media (max-width: 768px) {
    .page-news__hero-section,
    .page-news__featured-news-section,
    .page-news__all-news-archive,
    .page-news__why-choose-section,
    .page-news__faq-section {
        padding: 20px 15px;
    }

    .page-news__main-title {
        font-size: 2em;
    }
    .page-news__description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news__news-card img {
        height: 200px;
    }

    .page-news__list-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .page-news__list-item img {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--divider-color);
    }
    .page-news__item-content {
        width: 100%;
        padding: 15px;
    }

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

    /* Mobile image, video, button adaptation */
    .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,
    .page-news__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-news__cta-button,
    .page-news__read-more-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 !important;
        padding-right: 15px !important;
    }
    .page-news__view-all-btn-wrapper {
        padding: 0 15px;
    }

    /* FAQ item toggle for mobile */
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 10px 20px 15px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__news-card img {
        
    }
    .page-news__news-card-title {
        font-size: 1.2em;
    }
    .page-news__list-item img {
        
    }
}