.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color); /* Matches body background */
}

/* Header offset for the first main section */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #26A9E0; /* Primary color as dark background */
    color: #ffffff; /* White text for dark background */
    padding-bottom: 60px;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2; /* Subtle overlay */
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles on light background */
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-title--white {
    color: #ffffff; /* White text for titles on dark background */
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-news__section-description--white {
    color: #f0f0f0;
}

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

.page-news__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
    background-color: #1e87b7; /* Slightly darker primary */
    border-color: #1e87b7;
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0; /* Primary color text */
    padding: 15px 30px;
    border-radius: 8px;
    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;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.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.4em;
    margin-bottom: 10px;
    color: #26A9E0; /* Primary color for article titles */
    line-height: 1.3;
}

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

.page-news__article-title a:hover {
    color: #1e87b7;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

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

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

.page-news__read-more:hover {
    color: #1e87b7;
}

.page-news__cta-buttons {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Video Section */
.page-news__video-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color as dark background */
    color: #ffffff;
    text-align: center;
    position: relative;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 40px auto 0;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-news__video-overlay-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #EA7C07; /* Login color for CTA on video */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.page-news__video-overlay-button:hover {
    background-color: #c76506;
}

/* In-depth Analysis Section */
.page-news__in-depth-analysis {
    padding: 80px 0;
    background-color: #ffffff; /* White background */
    color: #333333;
}

.page-news__analysis-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-news__analysis-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-news__analysis-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color as dark background */
    color: #ffffff;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
}

.page-news__faq-heading {
    margin: 0;
    font-size: 1.15em;
    color: #ffffff;
}

.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; /* Adjust padding for collapse/expand */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

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

.page-news__faq-answer a {
    color: #ffffff;
    text-decoration: underline;
}

.page-news__faq-answer a:hover {
    color: #f0f0f0;
}

/* Bottom CTA Section */
.page-news__cta-bottom {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

.page-news__text-center {
    text-align: center;
}

.page-news__cta-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 20px;
}

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

/* General image styling for content area */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images fill their area without distortion */
}

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

    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2em;
    }

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

@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 450px;
        padding-bottom: 40px;
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__section-title,
    .page-news__cta-title {
        font-size: 1.8em;
    }

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

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__video-overlay-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-news__btn-secondary {
        margin-right: 0; /* Remove right margin on mobile */
    }

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

    .page-news__analysis-subtitle {
        font-size: 1.5em;
    }

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

    .page-news__faq-heading {
        font-size: 1em;
    }

    /* Mobile responsive images/videos/buttons - IMPORTANT */
    .page-news img {
        max-width: 100% !important;
        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__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;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Ensure video section has header offset on mobile */
    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__cta-button,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Content area images must not be smaller than 200px, but responsive */
    .page-news__article-image {
        min-width: 200px;
        min-height: 150px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 1.5em;
    }
    .page-news__faq-question {
        padding: 12px 15px;
    }
    .page-news__faq-answer {
        padding: 10px 15px 15px;
    }
}