/* style/news.css */

/* Custom Colors */
:root {
    --page-news-bg: #08160F; /* Background */
    --page-news-card-bg: #11271B; /* Card BG */
    --page-news-text-main: #F2FFF6; /* Text Main */
    --page-news-text-secondary: #A7D9B8; /* Text Secondary */
    --page-news-border: #2E7A4E; /* Border */
    --page-news-glow: #57E38D; /* Glow */
    --page-news-gold: #F2C14E; /* Gold */
    --page-news-divider: #1E3A2A; /* Divider */
    --page-news-deep-green: #0A4B2C; /* Deep Green */
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-news-brand-primary: #11A84E; /* Main brand color */
    --page-news-brand-secondary: #22C768; /* Secondary brand color */
}

.page-news {
    background-color: var(--page-news-bg);
    color: var(--page-news-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* 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; /* Small top padding, larger bottom for content */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-news__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--page-news-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

.page-news__hero-description {
    font-size: 1.2em;
    color: var(--page-news-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-news__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--page-news-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-news__section-title--light {
    color: var(--page-news-text-main);
    text-shadow: none;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--page-news-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__section-description--light {
    color: var(--page-news-text-main);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-news__btn-primary {
    background: var(--page-news-btn-gradient);
    color: var(--page-news-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
    background: transparent;
    color: var(--page-news-brand-primary);
    border: 2px solid var(--page-news-brand-primary);
}

.page-news__btn-secondary:hover {
    background: var(--page-news-brand-primary);
    color: var(--page-news-text-main);
}

/* News Grid */
.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(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    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 30px rgba(0, 0, 0, 0.4);
}

.page-news__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    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.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

.page-news__news-card-title a {
    color: var(--page-news-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: var(--page-news-glow);
}

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

.page-news__news-card-excerpt {
    font-size: 1em;
    color: var(--page-news-text-main);
    margin-bottom: 20px;
}

.page-news__news-card-link {
    display: inline-block;
    color: var(--page-news-brand-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push link to bottom */
}

.page-news__news-card-link:hover {
    color: var(--page-news-glow);
    text-decoration: underline;
}

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

/* Featured Articles Section specific styles */
.page-news__featured-articles-section {
    background-color: var(--page-news-deep-green); /* Darker background for contrast */
}

.page-news__news-card--dark {
    background-color: var(--page-news-deep-green);
    border: 1px solid var(--page-news-border);
}

.page-news__news-card--dark .page-news__news-card-title a {
    color: var(--page-news-text-main);
}

.page-news__news-card--dark .page-news__news-card-title a:hover {
    color: var(--page-news-gold);
}


/* About Section */
.page-news__about-description {
    font-size: 1.1em;
    color: var(--page-news-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* Why Choose Section */
.page-news__light-bg {
    background-color: var(--page-news-card-bg); /* Use card bg for a slightly lighter dark section */
}

.page-news__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-news__benefits-item {
    background-color: var(--page-news-deep-green);
    border: 1px solid var(--page-news-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__benefits-title {
    font-size: 1.5em;
    color: var(--page-news-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.2);
}

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

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

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-news-text-main);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
    color: var(--page-news-gold);
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--page-news-brand-secondary);
    margin-left: 15px;
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-news-text-secondary);
    line-height: 1.7;
    max-height: 0; /* Initial hidden state for JS fallback */
    overflow: hidden; /* Initial hidden state for JS fallback */
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out; /* For JS fallback */
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 2000px; /* Ample height for content */
    padding-top: 10px;
}

/* Ensure details/summary works without JS for fallback */
.page-news__faq-item:not([open]) .page-news__faq-answer {
  max-height: 0;
  padding-top: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 10px 15px 40px;
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .page-news__content-area {
        padding: 40px 15px;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Images 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__video-container,
    .page-news__video-wrapper { /* Ensure video containers also adapt */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons 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; /* Make buttons full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add some padding if full width */
        padding-right: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure content containers also adapt */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-section,
    .page-news__latest-news-section,
    .page-news__featured-articles-section,
    .page-news__about-section,
    .page-news__why-choose-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
    }

    .page-news__benefits-list {
        grid-template-columns: 1fr; /* Single column for benefits */
        gap: 20px;
    }

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

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