.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #000000, so text is white */
    background-color: #000000; /* Ensure main content background is dark */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

.page-news__main-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #ffffff; /* Ensure white text on dark overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styling */
.page-news__section {
    padding: 80px 0;
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #017439; /* Brand color for sub-titles */
    text-align: center;
}

/* Colors based on body background and brand guidelines */
.page-news__dark-bg {
    background-color: #000000; /* Body background is black */
    color: #ffffff; /* White text */
}

.page-news__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #ffffff; /* White text */
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__subsection-title {
    color: #017439; /* Brand color for titles on light-dark background */
}

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

.page-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* News Grid */
.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: #1a1a1a; /* Dark card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.page-news__news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-news__news-title a:hover {
    color: #017439;
}

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

.page-news__read-more {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

/* App Guide Section */
.page-news__app-benefits {
    margin-bottom: 60px;
}

.page-news__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-news__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-news__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

.page-news__inline-btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.page-news__app-download-steps .page-news__step-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__app-download-steps .page-news__step-item--reverse {
    flex-direction: row-reverse;
}

.page-news__step-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure responsive behavior */
}

.page-news__step-content {
    flex: 1.5;
    min-width: 300px;
}

.page-news__step-content p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-news__step-content .page-news__btn-primary {
    margin-top: 20px;
}

/* Analysis Section */
.page-news__analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-news__analysis-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-news__analysis-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure responsive behavior */
}

.page-news__analysis-item p {
    color: #cccccc;
    margin-bottom: 15px;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}
.page-news__faq-question::marker {
    display: none; /* Hide default marker for <summary> */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-news__faq-answer {
    padding: 20px 25px;
    background-color: #2a2a2a; /* Slightly lighter dark for answer */
    color: #e0e0e0;
    font-size: 1em;
}

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

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

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

/* CTA Section */
.page-news__cta {
    text-align: center;
    padding: 100px 0;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

@media (max-width: 768px) {
    .page-news__hero-section {
        height: 500px;
    }
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 50px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__subsection-title {
        font-size: 1.5em;
    }
    .page-news__news-grid,
    .page-news__analysis-grid {
        grid-template-columns: 1fr;
    }
    .page-news__app-download-steps .page-news__step-item,
    .page-news__app-download-steps .page-news__step-item--reverse {
        flex-direction: column;
        text-align: center;
    }
    .page-news__step-image {
        min-width: unset;
        width: 100%;
    }
    .page-news__step-content {
        min-width: unset;
        width: 100%;
    }
    .page-news__step-content .page-news__btn-primary {
        width: 100%;
    }
    .page-news__inline-btn {
        width: 100%;
    }
    .page-news__container {
        padding: 0 15px; /* Mobile padding */
    }

    /* Mobile specific image/video/button rules with !important */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__app-download-steps .page-news__step-item,
    .page-news__app-download-steps .page-news__step-item--reverse,
    .page-news__analysis-grid,
    .page-news__analysis-item,
    .page-news__faq-list,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }

    /* Buttons responsive */
    .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__hero-cta-buttons,
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
}