/* style/news.css */

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

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

.page-news__section-title {
    font-size: 2.5em;
    color: #ffcc00; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: #ffcc00; /* Auxiliary color for primary button */
    color: #004aad; /* Main color for text on primary button */
    border: 2px solid #ffcc00;
}

.page-news__btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #002a7a;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffcc00; /* Auxiliary color for text on secondary button */
    border: 2px solid #ffcc00;
}

.page-news__btn-secondary:hover {
    background-color: #ffcc00;
    color: #004aad;
}

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

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    background-color: #004aad; /* Main color for hero background */
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

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

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background from body */
}

.page-news__article-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.08); /* Semi-transparent white for card background */
    border-radius: 12px;
    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; /* Light text for dark card background */
}

.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: 220px; /* 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: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #ffcc00; /* Auxiliary color for link titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

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

.page-news__read-more-icon {
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__read-more-icon {
    transform: translateX(5px);
}

/* --- Featured Video Section --- */
.page-news__featured-video {
    padding: 80px 0;
    background-color: #004aad; /* Main color for video section background */
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    max-width: 960px; /* Max width for the video player */
    margin: 0 auto 30px auto;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-news__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-news__video-wrapper:hover .page-news__video-overlay {
    opacity: 1;
}

.page-news__btn-play {
    background-color: #ffcc00;
    color: #004aad;
    font-size: 1.2em;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

.page-news__btn-play:hover {
    background-color: #e6b800;
    color: #002a7a;
}

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

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for FAQ item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffcc00; /* Auxiliary color for FAQ questions */
    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-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

/* --- CTA Section --- */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #004aad; /* Main color for CTA section background */
}

.page-news__cta-content {
    color: #ffffff;
}

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

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

/* --- Responsive Design --- */
@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.2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__latest-articles,
    .page-news__featured-video,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 60px 0;
    }

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

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

    .page-news__article-card {
        margin: 0 15px; /* Add some side padding for cards */
    }

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

    .page-news__video-wrapper {
        margin: 0 15px 30px 15px; /* Add side padding for video wrapper */
    }

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

    .page-news__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }

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

    /* Mobile image and video 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,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__faq-item {
        margin: 0 15px 15px 15px;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
}