/* style/news.css */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-bottom: 60px;
    background-color: #017439; /* Using brand primary for hero background */
    color: #ffffff;
}

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

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

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

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

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-register,
.page-news__btn-download {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Custom colors for register/login buttons */
.page-news__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-news__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-news__btn-download:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-news__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    margin-bottom: 60px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Text color for card content */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-news__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-news__article-title a.page-news__article-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a.page-news__article-link:hover {
    color: #017439; /* Brand color on hover */
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #005a2e;
}

.page-news__view-all-cta {
    margin-top: 60px;
}

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background-color: #000;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicates it's clickable */
    display: block; /* Ensure it behaves like a block element */
}

.page-news__video-cta {
    margin-top: 40px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
}

.page-news__faq-list {
    max-width: 900px;
    margin: 60px auto 0 auto;
    text-align: left;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-news__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for question area */
}

.page-news__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

.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.3s ease-out, padding 0.3s ease-out;
    color: #cccccc;
    font-size: 1em;
}

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

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

/* CTA Bottom Section */
.page-news__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2.4em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__article-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-register,
    .page-news__btn-download {
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__latest-articles,
    .page-news__featured-video,
    .page-news__faq-section,
    .page-news__cta-bottom {
        padding: 60px 0;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__section-description,
    .page-news__cta-description {
        font-size: 0.95em;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card {
        margin: 0 15px; /* Add horizontal padding to cards */
    }
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }
    .page-news__video-wrapper {
        margin: 40px 15px 0 15px; /* Add horizontal padding to video wrapper */
        max-width: 100% !important;
        width: 100% !important; /* This should be 100% for the wrapper */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__faq-list {
        margin: 40px 15px 0 15px;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-news__faq-question h3 {
        font-size: 1.1em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    .page-news__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Ensure all content-area images are responsive */
    .page-news img {
        max-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;
        overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure images adhere to min size and no filter */
.page-news img {
    filter: none !important; /* Absolutely no filters */
    min-width: 200px; /* Global minimum for all images */
    min-height: 200px;
}
.page-news__article-image {
    min-height: 200px; /* Specific for article images */
}
/* Override min-height for social sharing images if needed, but not for content */
img[alt*="social"] {
    min-width: auto;
    min-height: auto;
}