/* style/news.css */
/* -------------------- Base Styles -------------------- */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f5f5f5; /* Light background for the main content area */
}

/* Fixed header offset for main content */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-news__section-title {
    font-size: 2.5rem;
    color: #1A202C;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-news__sub-title {
    font-size: 2rem;
    color: #1A202C;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__highlight {
    color: #FFD700; /* Gold for highlights */
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1A202C; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

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

/* -------------------- Hero Section -------------------- */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ffffff;
    overflow: hidden;
    background-color: #1A202C; /* Dark background for hero */
    padding: 60px 20px;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.page-news__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFD700; /* Gold for title */
}

.page-news__hero-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news__hero-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__hero-description a:hover {
    text-decoration: underline;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    display: block; /* Ensure it behaves like a block element */
}

/* -------------------- Latest News Section -------------------- */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: #1A202C; /* Dark background */
    color: #f0f0f0; /* Light text */
}

.page-news__latest-news-section .page-news__section-title {
    color: #FFD700; /* Gold title */
}

.page-news__latest-news-section .page-news__section-description {
    color: #cccccc;
}

.page-news__latest-news-section .page-news__section-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__latest-news-section .page-news__section-description a:hover {
    text-decoration: underline;
}

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

.page-news__news-card {
    background-color: #2a3447; /* Slightly lighter dark background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
}

.page-news__news-card-image {
    width: 100%;
    height: 220px;
    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.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__news-card-title a {
    color: #FFD700; /* Gold for news titles */
    text-decoration: none;
}

.page-news__news-card-title a:hover {
    text-decoration: underline;
}

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

.page-news__news-card-excerpt a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__news-card-excerpt a:hover {
    text-decoration: underline;
}

.page-news__news-card-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #FFD700;
    padding: 8px 15px;
    border-radius: 5px;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__news-card-link:hover {
    background-color: #FFD700;
    color: #1A202C;
}

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

/* -------------------- Video Section -------------------- */
.page-news__video-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
}

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

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

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

/* -------------------- In-depth Analysis Section -------------------- */
.page-news__in-depth-analysis-section {
    padding: 80px 0;
    background-color: #1A202C; /* Dark background */
    color: #f0f0f0; /* Light text */
}

.page-news__in-depth-analysis-section .page-news__section-title {
    color: #FFD700;
}

.page-news__in-depth-analysis-section .page-news__section-description {
    color: #cccccc;
}

.page-news__in-depth-analysis-section .page-news__section-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__in-depth-analysis-section .page-news__section-description a:hover {
    text-decoration: underline;
}

.page-news__in-depth-analysis-section .page-news__sub-title {
    color: #FFD700;
}

.page-news__in-depth-analysis-section p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    color: #cccccc;
}

.page-news__in-depth-analysis-section p a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__in-depth-analysis-section p a:hover {
    text-decoration: underline;
}

/* -------------------- FAQ Section -------------------- */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-title {
    font-size: 1.25rem;
    color: #1A202C;
    margin: 0;
    font-weight: bold;
}

.page-news__faq-title a {
    color: #1A202C;
    text-decoration: none;
}

.page-news__faq-title a:hover {
    text-decoration: underline;
}

.page-news__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding is 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

.page-news__faq-answer p a {
    color: #1A202C;
    text-decoration: none;
    font-weight: bold;
}

.page-news__faq-answer p a:hover {
    text-decoration: underline;
}

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

.page-news__cta-bottom .page-news__section-title {
    color: #FFD700;
}

.page-news__cta-bottom .page-news__section-description {
    color: #cccccc;
    margin-bottom: 40px;
}

.page-news__cta-bottom .page-news__section-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__cta-bottom .page-news__section-description a:hover {
    text-decoration: underline;
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3rem;
    }

    .page-news__section-title {
        font-size: 2rem;
    }

    .page-news__sub-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for main content (desktop and mobile) */
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-news__hero-description {
        font-size: 1.1rem;
    }

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

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__section-title {
        font-size: 1.8rem;
    }

    .page-news__section-description {
        font-size: 1rem;
    }

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

    .page-news__news-card-title {
        font-size: 1.3rem;
    }

    .page-news__video-wrapper {
        margin-left: 15px;
        margin-right: 15px;
    }

    .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;
        overflow: hidden !important;
    }

    .page-news__in-depth-analysis-section p {
        font-size: 1rem;
    }

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

    .page-news__faq-title {
        font-size: 1.1rem;
    }

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px 20px;
    }

    /* General content containers for mobile */
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness for content area */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}

/* Contrast fixes for dark background */
.page-news__dark-bg {
    background-color: #1A202C;
    color: #ffffff; /* Ensure white text on dark background */
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__sub-title {
    color: #FFD700; /* Gold titles on dark background */
}

.page-news__dark-bg p,
.page-news__dark-bg li {
    color: #cccccc; /* Lighter grey for paragraphs on dark background */
}

.page-news__dark-bg a {
    color: #FFD700;
}

/* Contrast fixes for light background */
.page-news__light-bg {
    background-color: #f5f5f5;
    color: #333333; /* Ensure dark text on light background */
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__sub-title {
    color: #1A202C; /* Dark titles on light background */
}

.page-news__light-bg p,
.page-news__light-bg li {
    color: #555555; /* Slightly lighter dark grey for paragraphs on light background */
}

.page-news__light-bg a {
    color: #1A202C;
}