/* 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: 20px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    background-color: #0A2463; /* Main brand color for hero */
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__main-title {
    font-size: 2.8em;
    color: #E8B70A; /* Accent color for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-news__hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #E8B70A; /* Accent color */
    color: #0A2463;
    border: 2px solid #E8B70A;
}

.page-news__btn-primary:hover {
    background-color: #ffc82f;
    border-color: #ffc82f;
    transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
    background-color: #E8B70A;
    color: #0A2463;
    transform: translateY(-2px);
}

/* Video Section */
.page-news__video-section {
    background-color: #1a1a1a; /* Dark background from body */
    padding: 60px 20px;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px auto 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* Articles Section */
.page-news__articles-section {
    background-color: #f0f0f0; /* Light background */
    padding: 60px 20px;
    color: #333333;
}

.page-news__section-title {
    font-size: 2.2em;
    color: #0A2463;
    text-align: center;
    margin-bottom: 20px;
}

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

.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;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-news__article-title {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

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

.page-news__article-summary {
    font-size: 1em;
    color: #444444;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    background-color: #E8B70A;
    color: #0A2463;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__read-more:hover {
    background-color: #ffc82f;
}

/* Updates Section */
.page-news__updates-section {
    background-color: #0A2463; /* Main brand color */
    padding: 60px 20px;
    color: #ffffff;
}

.page-news__updates-section .page-news__section-title,
.page-news__updates-section .page-news__section-description {
    color: #ffffff;
}

.page-news__update-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.page-news__update-title {
    font-size: 1.8em;
    color: #E8B70A;
    margin-bottom: 15px;
}

.page-news__update-title a {
    color: #E8B70A;
    text-decoration: none;
}

.page-news__update-title a:hover {
    color: #ffffff;
}

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

/* Promotions Section */
.page-news__promotions-section {
    background-color: #f0f0f0;
    padding: 60px 20px;
    color: #333333;
}

.page-news__promotions-section .page-news__section-title {
    color: #0A2463;
}

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

.page-news__promotion-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 20px;
}

.page-news__promotion-title {
    font-size: 1.8em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-news__promotion-title a {
    color: #0A2463;
    text-decoration: none;
}

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

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

/* FAQ Section */
.page-news__faq-section {
    background-color: #1a1a1a; /* Dark background from body */
    padding: 60px 20px;
    color: #ffffff;
}

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

.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 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #ffffff;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #E8B70A;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    color: #ffffff;
}

.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 25px;
}

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

/* CTA Section */
.page-news__cta-section {
    background-color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    color: #333333;
}

.page-news__cta-section .page-news__section-title {
    color: #0A2463;
}

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

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.2em;
    }

    .page-news__intro-description {
        font-size: 1em;
    }

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

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

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .page-news__intro-description {
        font-size: 0.95em;
    }

    .page-news__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }

    .page-news__video-section,
    .page-news__articles-section,
    .page-news__updates-section,
    .page-news__promotions-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 15px;
    }

    .page-news__container {
        padding: 0 15px;
    }

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

    .page-news__section-description {
        font-size: 0.9em;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-news__update-title,
    .page-news__promotion-title {
        font-size: 1.4em;
    }

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

    .page-news__faq-question h3 {
        font-size: 1em;
    }

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Ensure all images are responsive on mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.5em;
    }

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

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

    .page-news__update-title,
    .page-news__promotion-title {
        font-size: 1.2em;
    }
}

/* Color Contrast Adjustments for specific elements on dark background */
.page-news__dark-bg {
    color: #ffffff; /* Explicitly light text on dark background */
}

.page-news__light-bg {
    color: #333333; /* Explicitly dark text on light background */
}

.page-news__faq-question h3 {
    color: #ffffff; /* Ensure FAQ questions are white on dark background */
}