/* style/news.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Matching body background for consistency */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: #017439; /* Brand color for hero background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Make background image subtle */
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #f0f0f0;
}

/* General Content Section */
.page-news__content-section {
    padding: 60px 0;
}

.page-news__content-section.page-news__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast with body */
    color: #ffffff;
}

.page-news__content-section.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-news__text-white {
    color: #ffffff !important; /* Force white text for specific elements on dark backgrounds */
}

.page-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no filter on images */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-news__btn-primary:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color for text */
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Special button colors */
.page-news__login-btn {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
    border: 2px solid #C30808;
}

.page-news__login-btn:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color for CTA background */
    color: #ffffff;
}

.page-news__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.page-news__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #e5e5e5;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #ffffff;
    color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content, with !important */
    padding: 15px 25px 25px; /* Adjust padding when active */
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__paragraph {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 60px 0;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__content-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }
    
    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    /* All containing elements for images/videos/buttons */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-buttons,
    .page-news__faq-item,
    .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 !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* 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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack CTA buttons */
        gap: 10px !important;
    }

    /* FAQ specific padding adjustment for mobile */
    .page-news__faq-question,
    .page-news__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 15px 15px !important;
    }
}