/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Assumed to be #FFFFFF from shared.css */
}

/* Header offset for main content */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

.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: 0 20px;
}

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

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

/* General Section Styles */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles on light background */
    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;
    color: #555555;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

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

.page-news__news-card:hover {
    transform: translateY(-5px);
}

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

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

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

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

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

.page-news__card-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__card-date {
    font-size: 0.85em;
    color: #999999;
    display: block;
    margin-bottom: 10px;
}

.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: #005f2c;
}

/* Promotions Section */
.page-news__promotions-section {
    padding: 60px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff;
}

.page-news__promotions-section .page-news__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-news__promotions-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-news__promo-card:hover {
    transform: translateY(-5px);
}

.page-news__promo-card .page-news__card-title a {
    color: #ffffff; /* White linked titles on dark card */
}

.page-news__promo-card .page-news__card-title a:hover {
    color: #cccccc;
}

.page-news__promo-card .page-news__card-text {
    color: #e0e0e0;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent; /* Base border for consistent sizing */
    white-space: normal; /* Allow button text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-news__btn-primary {
    background-color: #C30800; /* Adjusted to C30800 for better contrast with FFFF00 */
    color: #FFFF00; /* Yellow text for contrast */
    border-color: #C30800;
}

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

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color for secondary action */
    border-color: #017439;
}

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

/* Insights Section */
.page-news__insights-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light gray background */
    color: #333333;
}

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

.page-news__article-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

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

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

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

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

.page-news__article-title a:hover {
    color: #005f2c;
}

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

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

.page-news__article-read-more:hover {
    color: #005f2c;
}

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

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

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

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

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

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-news__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For details tag */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7ed; /* Lighter brand color for summary */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #dcf2e0; /* Slightly darker when open */
    border-bottom: none;
}

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

.page-news__faq-qtext {
    flex-grow: 1;
}

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

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #fdfdfd;
}

.page-news__faq-answer p {
    margin: 0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

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

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

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

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        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__cta-buttons {
        flex-direction: column !important;
        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: 20px 15px;
    }

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

    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__articles-list {
        grid-template-columns: 1fr; /* Single column layout for cards/articles */
        gap: 20px;
    }

    .page-news__card-image,
    .page-news__article-image {
        height: 180px;
    }

    .page-news__card-title,
    .page-news__article-title {
        font-size: 1.2em;
    }

    .page-news__cta-section {
        padding: 50px 0;
    }

    .page-news__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

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

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

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}