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

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

.page-news__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles */
}

.page-news__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for 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.6);
    z-index: 2;
}

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

.page-news__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-news__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.page-news__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333; /* Dark text for light background */
}

.page-news__latest-articles .page-news__section-title {
  color: #017439;
}

.page-news__latest-articles .page-news__section-description {
  color: #555555;
}

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

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

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

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

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

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

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

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

.page-news__article-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__read-more {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff;
}

.page-news__featured-video .page-news__section-title {
  color: #ffffff;
}

.page-news__featured-video .page-news__section-description {
  color: #f0f0f0;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.page-news__video-cta {
    text-align: center;
}

/* Promotions Section */
.page-news__promotions {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-news__promotions .page-news__section-title {
  color: #017439;
}

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

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

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

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

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

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

.page-news__promotion-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #017439;
}

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

.page-news__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

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

.page-news__faq-section .page-news__section-title {
  color: #ffffff;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(0deg); /* Explicitly set to 0 for '-' */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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 */
    padding: 20px;
    padding-top: 0;
}

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

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

/* Contact CTA Section */
.page-news__contact-cta {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-news__contact-cta .page-news__section-title {
  color: #017439;
}

.page-news__contact-cta .page-news__section-description {
  color: #555555;
}

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

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-news__hero-title {
        font-size: 2.2rem;
    }
    .page-news__hero-description {
        font-size: 1rem;
    }
    .page-news__hero-actions,
    .page-news__cta-faq,
    .page-news__contact-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__article-card,
    .page-news__promotion-card {
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        /* Removed direct padding-left/right here to prevent double padding with container */
    }
    .page-news__articles-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Video responsive */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button responsive */
    .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;
    }
    .page-news__hero-actions,
    .page-news__cta-faq,
    .page-news__contact-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-news__cta-bottom {
      padding: 0 15px; /* Adjust padding for button container */
      box-sizing: border-box;
    }
    .page-news__cta-bottom .page-news__btn-primary {
      width: 100%;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8rem;
    }
    .page-news__hero-description {
        font-size: 0.9rem;
    }
    .page-news__section-title {
        font-size: 1.8rem;
    }
}

/* Color Contrast Adjustments for light backgrounds */
.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__article-title a,
.page-news__light-bg .page-news__promotion-title,
.page-news__light-bg .page-news__read-more {
    color: #017439; /* Ensure brand color on light background */
}

.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__article-excerpt,
.page-news__light-bg .page-news__promotion-text {
    color: #555555; /* Darker text for readability on light background */
}

/* Color Contrast Adjustments for dark backgrounds */
.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__faq-question,
.page-news__dark-section .page-news__faq-toggle {
    color: #ffffff; /* White text on dark background */
}

.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__faq-answer p {
    color: #f0f0f0; /* Slightly off-white for body text on dark background */
}