.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fixed header offset for main content */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first main content section */
}

/* General container for content sections */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Dark background sections */
.page-news__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

/* Light background sections */
.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-news__main-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent for contrast */
}

.page-news__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent for contrast */
}

.page-news__description,
.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from parent for contrast */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1a8cc2;
    border-color: #1a8cc2;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
}

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

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
}

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

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

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

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

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #26A9E0; /* Primary brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #1a8cc2;
    text-decoration: underline;
}

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

.page-news__article-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__read-more {
    display: inline-block;
    color: #EA7C07; /* Login color for read more */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
    transition: color 0.3s ease;
}

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

.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover {
    background-color: #e0e0e0;
}

.page-news__pagination-link--active {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-news__pagination-link--active:hover {
    background-color: #1a8cc2;
}

/* Categories Section */
.page-news__categories {
    padding: 80px 0;
}

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

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-news__category-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-news__category-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    padding: 0 15px;
}

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
}

.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 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-news__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make sure it's above the video */
    background: transparent; /* Invisible overlay */
    cursor: pointer;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
    margin: 0;
    color: inherit;
}

.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 minus sign effect */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing at the end of the paragraph */
    color: inherit;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.5em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-news__main-title {
        font-size: 2em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__description,
    .page-news__section-description {
        font-size: 1em;
    }

    /* Mobile image, video, button responsiveness */
    .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;
    }

    /* Video wrapper for aspect ratio */
    .page-news__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
        height: 0 !important;
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-news__video-overlay-link {
        width: 100% !important;
        height: 100% !important;
    }

    .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;
        text-align: center; /* Center button text on mobile */
    }

    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure container itself doesn't cause scroll */
    }
    
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__categories,
    .page-news__featured-video,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0; /* Adjust section padding for mobile */
    }

    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        min-height: 400px;
    }

    .page-news__articles-grid,
    .page-news__categories-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

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

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

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px;
    }
    
    /* Ensure content images are not smaller than 200px in display */
    .page-news__article-card img,
    .page-news__category-card img {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Global image size constraint for content area */
.page-news img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}

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