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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Responsive height */
    min-height: 400px;
    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;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

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

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

/* General Content Area */
.page-news__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for content */
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-news__container {
    max-width: 960px;
    margin: 0 auto;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for main titles */
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(1, 116, 57, 0.5);
    padding-bottom: 15px;
}

.page-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #e0e0e0;
}

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

.page-news__article-card {
    background-color: #222222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 25px;
}

.page-news__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent height for titles */
}

.page-news__card-title a {
    color: #017439; /* Link color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #ffffff;
}

.page-news__card-text {
    font-size: 1em;
    color: #b0b0b0;
}

/* Promotions Section */
.page-news__promo-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}

.page-news__promo-banner {
    flex: 1 1 55%;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: block;
}

.page-news__promo-content {
    flex: 1 1 40%;
    min-width: 300px;
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-news__promo-subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-news__promo-subtitle a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__promo-subtitle a:hover {
    color: #ffffff;
}

/* Guide Cards */
.page-news__guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__guide-card {
    background-color: #222222;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Content Image */
.page-news__content-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
}

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

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

.page-news__faq-question:hover {
    background-color: #015c2f; /* Slightly darker green on hover */
}

.page-news__faq-title {
    margin: 0;
    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); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    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 all content */
    padding: 20px 25px;
}

.page-news__faq-answer .page-news__paragraph {
    margin: 0; /* Reset margin for paragraphs inside FAQ answer */
}

/* Call to Action Section */
.page-news__cta-section {
    text-align: center;
    padding: 60px 30px;
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-news__dark-section {
    background-color: #017439; /* Primary brand color for dark section */
    color: #ffffff;
}

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

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

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Register/Login button */
    color: #FFFF00; /* Custom font color for Register/Login button */
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__btn-primary:hover {
    background-color: #a30606; /* Slightly darker red on hover */
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: #ffffff; /* White background */
    color: #017439; /* Primary brand color text */
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
}

.page-news__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__promo-section {
        flex-direction: column;
    }
    .page-news__promo-banner,
    .page-news__promo-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

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

    /* Fixed header offset for mobile */
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: auto;
        min-height: 300px;
    }

    .page-news__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-news__content-area {
        padding: 30px 15px;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-news__paragraph {
        font-size: 1em;
    }

    .page-news__article-grid {
        gap: 20px;
    }

    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__card-title {
        font-size: 1.4em;
        min-height: auto;
    }

    .page-news__promo-section {
        gap: 20px;
    }

    .page-news__promo-banner {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__promo-content {
        padding: 20px;
    }

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

    .page-news__guide-cards {
        gap: 20px;
    }

    .page-news__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 30px 0;
    }

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

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px !important;
    }

    .page-news__cta-section {
        padding: 40px 20px;
    }

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

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 25px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-news__container,
    .page-news__article-grid,
    .page-news__promo-section,
    .page-news__guide-cards,
    .page-news__faq-list,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__article-card,
    .page-news__guide-card {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
}