.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content area will inherit body background, or use specific section backgrounds */
}

.page-news__section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Inherit body background or use a very dark shade */
    color: #ffffff;
}

.page-news__dark-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with main dark body */
    color: #ffffff;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #0a0a0a; /* Ensure dark background */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-news__hero-content {
    position: relative; /* Ensure content is above image if any overlap */
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual flow, but not *on* the image */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
    border-radius: 8px;
}

.page-news__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    color: #26A9E0; /* Brand color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-news__hero-button {
    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;
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__section-text {
    font-size: 1.1em;
    color: #e0e0e0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-news__section-text a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* Category Grid */
.page-news__category-grid,
.page-news__article-grid,
.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-news__category-card,
.page-news__article-card,
.page-news__benefit-item {
    background-color: #1a1a1a; /* Dark background for cards */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__category-image,
.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
}

.page-news__category-title,
.page-news__article-title,
.page-news__benefit-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-news__category-description,
.page-news__article-excerpt,
.page-news__benefit-description {
    font-size: 1em;
    color: #e0e0e0;
    margin: 0 20px 15px 20px;
    flex-grow: 1; /* Make description take up available space */
}

.page-news__category-list {
    list-style: disc;
    margin: 0 20px 20px 40px;
    color: #e0e0e0;
}

.page-news__category-list li {
    margin-bottom: 5px;
}

.page-news__article-content {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #999999;
    margin: 0 20px 10px 20px;
}

.page-news__article-readmore {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 20px 0 20px;
    align-self: flex-start;
}

.page-news__article-readmore:hover {
    text-decoration: underline;
}

.page-news__view-all-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Benefits Section (darker background) */
.page-news__benefits-section {
    background-color: #0d0d0d; /* Even darker for a distinct feel */
}

.page-news__benefit-item {
    background-color: #1a1a1a;
    padding: 25px;
    text-align: center;
}

.page-news__benefit-item .page-news__benefit-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #26A9E0;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #1a1a1a; /* Dark background for FAQ */
}

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

.page-news__faq-item {
    background-color: #0d0d0d; /* Slightly darker than section background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
    list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question text */
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−";
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    color: #e0e0e0;
    font-size: 1em;
}

/* CTA Section */
.page-news__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    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;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

/* Button Primary */
.page-news__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

/* Button Secondary */
.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* Login button uses custom color */
.page-news__cta-button.page-news__btn-secondary[href*="plink_id"] {
    background-color: #EA7C07; /* Custom login color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-news__cta-button.page-news__btn-secondary[href*="plink_id"]:hover {
    background-color: #cc6c06;
    border-color: #cc6c06;
}

/* General Link Styling */
.page-news a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-news a:visited {
    color: #26A9E0; /* Maintain brand color for visited links */
}

/* Ensure all text elements have sufficient contrast */
.page-news p,
.page-news li,
.page-news__article-meta,
.page-news__faq-answer p {
    color: #e0e0e0; /* Light gray on dark background for general text */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -50px; /* Adjust overlap */
    }
}

@media (max-width: 768px) {
    .page-news__section {
        padding: 40px 0;
    }

    .page-news__hero-section {
        padding-bottom: 40px;
    }

    .page-news__hero-content {
        margin-top: -30px; /* Further adjust overlap */
        padding: 20px 15px;
    }

    .page-news__hero-title {
        font-size: 2em; /* Ensure readability on mobile */
    }

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

    .page-news__category-grid,
    .page-news__article-grid,
    .page-news__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__category-card,
    .page-news__article-card,
    .page-news__benefit-item {
        margin: 0 15px; /* Add side padding for cards */
        width: auto; /* Allow cards to take full width */
    }

    .page-news__category-image,
    .page-news__article-image {
        height: 180px; /* Adjust image height for mobile */
    }

    .page-news__category-title,
    .page-news__article-title,
    .page-news__benefit-title {
        font-size: 1.2em;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-news__category-description,
    .page-news__article-excerpt,
    .page-news__benefit-description {
        font-size: 0.95em;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-news__article-content {
        padding-bottom: 15px;
    }

    .page-news__article-meta,
    .page-news__article-readmore {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-news__category-list {
        margin-left: 35px;
        margin-right: 15px;
    }

    .page-news__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .page-news__cta-button {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Force responsive for all images and containers on mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__container,
    .page-news__category-card,
    .page-news__article-card,
    .page-news__benefit-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Remove horizontal padding for hero image wrapper if it causes issues */
    .page-news__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Specific override for section padding for mobile when container padding is added */
    .page-news__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-news__video-section { /* If video were present */
        padding-top: 10px !important;
    }
}