/* style/news.css */

/* --- General Page Styles --- */
.page-news {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-news__dark-section {
    background-color: #0A2342; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-news__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E5A000; /* Auxiliary color for emphasis */
    line-height: 1.2;
}

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

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    display: block;
    filter: none; /* Ensure no CSS filter is applied */
}

/* --- Call to Action Buttons --- */
.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border included in width */
    text-align: center;
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background-color: #E5A000; /* Auxiliary color for primary action */
    color: #0A2342; /* Dark text for auxiliary background */
    border: 2px solid #E5A000;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #E5A000;
    color: #0A2342;
}

/* --- Content Area --- */
.page-news__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for content sections */
    border-radius: 8px;
    margin-bottom: 40px;
    color: #ffffff; /* Light text for content area */
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #E5A000;
    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: #f0f0f0;
}

/* --- Articles Grid --- */
.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);
    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;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, will be responsive */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filter is applied */
}

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #E5A000;
}

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

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

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

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

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

/* --- Promotions CTA Section --- */
.page-news__promotions-cta {
    padding: 80px 20px;
    text-align: center;
    background-color: #0A2342; /* Main brand color */
    color: #ffffff;
}

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

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

/* --- FAQ Section --- */
.page-news__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #0A2342; /* Dark blue for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

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

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

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

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

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }

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

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

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

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-news__hero-section {
        padding: 60px 15px;
    }

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

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        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;
    }

    .page-news__content-area,
    .page-news__promotions-cta,
    .page-news__faq-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-news__article-card {
        margin-bottom: 20px;
    }

    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Enforce minimum size */
        object-fit: cover;
        box-sizing: border-box !important;
    }

    /* Ensure all images in content area are responsive and not too small */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Minimum size for content images */
        min-height: 200px !important; /* Minimum size for content images */
        box-sizing: border-box !important;
    }

    /* Video responsiveness (if any, though not explicitly in current HTML) */
    .page-news video,
    .page-news__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !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;
    }

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

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

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

    .page-news__faq-heading {
        font-size: 1.1em;
    }

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px; /* Adjust padding for mobile active state */
    }
}

/* Ensure no CSS filter is applied to any images */
.page-news img {
    filter: none;
}