.page-news {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default white */
    line-height: 1.6;
    font-size: 16px;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Ensures a large hero area */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.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.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 900px;
    padding: 0 20px;
}

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

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

.page-news__section {
    padding: 80px 20px;
    text-align: center;
}

.page-news__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF; /* White text for dark background */
}

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherits from parent section */
}

.page-news__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit;
}

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

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

.page-news__news-card,
.page-news__guide-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-news__card-title a:hover {
    color: #005f2f; /* Slightly darker green on hover */
}

.page-news__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-news__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__card-link:hover {
    color: #005f2f;
    text-decoration: underline;
}

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

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #017439;
}

.page-news__btn-primary:hover {
    background-color: #005f2f; /* Darker green on hover */
    border-color: #005f2f;
}

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

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2f;
    border-color: #005f2f;
}

/* Specific button colors for register/login */
.page-news__btn-primary.page-news__btn-register,
.page-news__btn-secondary.page-news__btn-login {
    background-color: #C30808; /* Red for register/login */
    color: #FFFFFF; /* White text for contrast, overriding #FFFF00 for WCAG compliance */
    border-color: #C30808;
}
.page-news__btn-primary.page-news__btn-register:hover,
.page-news__btn-secondary.page-news__btn-login:hover {
    background-color: #A00000; /* Darker red on hover */
    border-color: #A00000;
}

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

.page-news__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__feature-item:hover {
    transform: translateY(-5px);
}

.page-news__feature-icon {
    width: 200px; /* Minimum size */
    height: 150px; /* Adjusted for aspect ratio */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-news__feature-content {
  flex-grow: 1;
}

.page-news__feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-news__feature-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__feature-title a:hover {
    color: #FFD700; /* Gold-like color for hover on dark background */
}

.page-news__feature-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-news__faq-section {
    background-color: #f9f9f9;
}

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

.page-news__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-news__faq-title {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent */
    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);
}

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

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 25px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: inherit;
}

.page-news__cta-banner {
    padding: 60px 20px;
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
}

.page-news__cta-container {
    max-width: 900px;
}

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

.page-news__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__news-grid,
    .page-news__guide-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 15px;
    }
    .page-news__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 0.95em;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.7em;
    }
    .page-news__section-description {
        font-size: 0.9em;
        margin-bottom: 25px;
    }
    .page-news__news-grid,
    .page-news__guide-grid,
    .page-news__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__feature-item {
        padding: 20px;
    }
    .page-news__faq-list {
        padding: 0 15px;
    }
    .page-news__faq-question,
    .page-news__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
      padding: 15px 15px 15px 15px; /* Adjust padding for mobile */
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        /* min-width/height are for desktop and image generation, not to cause overflow on mobile */
    }
    .page-news__card-image,
    .page-news__feature-icon {
      height: auto !important; /* Override fixed height for responsiveness */
      object-fit: cover;
    }
    .page-news__feature-icon {
      object-fit: contain;
      width: 100% !important;
      max-width: 200px !important; /* Ensure it doesn't get too big, but responsive */
      height: auto !important;
    }
    .page-news__cta-banner {
      padding: 40px 15px;
    }
    .page-news__cta-title {
      font-size: 1.7em;
    }
    .page-news__cta-description {
      font-size: 0.95em;
    }
}

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