/* style/news.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-news {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content background can be transparent to show body background or set to a dark color */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #017439; /* Brand green background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-news__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-news__subtitle {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-news__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* 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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-news__article-title a:hover {
    color: #017439; /* Brand color on hover */
}

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

.page-news__read-more {
    display: inline-flex;
    align-items: center;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #00a04a; /* Lighter brand color on hover */
}

.page-news__read-more span {
    margin-left: 5px;
}

/* Strategy Guides Section */
.page-news__strategy-guides {
    padding: 80px 0;
    background-color: #121212; /* Body background color */
    color: #ffffff;
}

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

.page-news__strategy-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

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

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

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

.page-news__strategy-title a:hover {
    color: #017439;
}

.page-news__strategy-text {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Promotions & Events Section */
.page-news__promotions-events {
    padding: 80px 0;
    background-color: #f0f0f0; /* Lighter background for contrast */
    color: #333333; /* Dark text for light background */
}

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

.page-news__promotions-events .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, box-shadow 0.3s ease;
    color: #333333;
    text-align: center;
}

.page-news__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-news__promotion-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    line-height: 1.3;
}

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

.page-news__promotion-title a:hover {
    color: #017439;
}

.page-news__promotion-text {
    font-size: 0.9em;
    margin: 0 15px 20px;
    color: #555555;
}

.page-news__promotion-card .page-news__btn-primary {
    margin-bottom: 20px;
}

/* Video Section */
.page-news__video-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
    color: #ffffff;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
}

.page-news__video-wrapper .page-news__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    list-style: none; /* Remove default marker for details */
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: #ffffff;
    list-style: none; /* For firefox */
}

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

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

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

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

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

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

.page-news__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__main-title {
        font-size: 2.2em;
    }

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

    .page-news__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

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

    .page-news__articles-grid,
    .page-news__strategy-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-news__article-image,
    .page-news__promotion-image {
        height: 200px;
    }

    .page-news__article-title,
    .page-news__strategy-title,
    .page-news__promotion-title {
        font-size: 1.3em;
    }

    .page-news__article-excerpt,
    .page-news__strategy-text,
    .page-news__promotion-text {
        font-size: 0.85em;
    }

    .page-news__video-wrapper {
        padding-bottom: 56.25%; /* Ensure aspect ratio is maintained */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0; /* Remove auto margin to allow padding */
        padding: 0 15px; /* Add padding to wrapper */
    }

    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__video-section {
        padding: 40px 0;
    }

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

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

    .page-news__cta-title {
        font-size: 1.8em;
    }

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

    /* General image responsiveness for all images within .page-news */
    .page-news img {
      max-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;
    }
}

/* Ensure content images are not too small */
.page-news__article-image,
.page-news__promotion-image {
    min-width: 200px;
    min-height: 200px;
}
.page-news__video {
    min-width: 200px;
    min-height: 200px;
}

/* Specific dark/light background classes for contrast safety */
.page-news__dark-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #f0f0f0;
    color: #333333;
}
.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__article-title a,
.page-news__light-bg .page-news__promotion-title a {
    color: #333333;
}
.page-news__light-bg .page-news__article-excerpt,
.page-news__light-bg .page-news__promotion-text {
    color: #555555;
}

/* Ensure all images within .page-news conform to min-size and responsive rules */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all video elements within .page-news conform to responsive rules */
.page-news video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Content area images CSS dimensions lower bound */
/* Any img inside .page-news that is not header/footer/shared related */
.page-news .page-news__article-image,
.page-news .page-news__promotion-image {
    min-width: 200px;
    min-height: 200px;
}