/* style/news.css */

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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjusted padding-top for header offset */
    background-color: #0A2463; /* Primary brand color */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Auxiliary brand color for highlight */
    line-height: 1.2;
}

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

.page-news__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

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

.page-news__btn-primary {
    background-color: #FFD700; /* Auxiliary brand color */
    color: #0A2463; /* Primary brand color for text */
    border: 2px solid #FFD700;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary brand color */
    border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
}

/* Section common styles */
.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary brand color */
}

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

/* Latest News Section */
.page-news__latest-news {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-news__news-card {
    background-color: #0A2463; /* Primary brand color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, ensure min 200px */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter is applied */
}

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

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

.page-news__card-title a {
    color: #FFD700; /* Auxiliary brand color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

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

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
    background-color: #0A2463; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for the video */
    margin: 0 auto;
    background-color: #000; /* Black background for video area */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer; /* Indicate clickability */
}

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

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size for video */
    min-height: 200px;
    filter: none; /* Ensure no filter is applied */
}

/* Important Announcements Section */
.page-news__important-announcements {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-news__announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-news__announcement-item {
    background-color: #0A2463; /* Primary brand color */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__announcement-title {
    font-size: 1.8em;
    color: #FFD700; /* Auxiliary brand color */
    margin-bottom: 10px;
}

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

.page-news__announcement-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-news__announcement-text a {
    color: #FFD700;
    text-decoration: none;
}

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

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for contrast */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-title {
    font-size: 1.2em;
    color: #FFD700; /* Auxiliary brand color */
    margin: 0;
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or simply rotate */
    content: '−'; /* Change to minus sign */
}

.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-bottom: 0;
    color: #f0f0f0;
}

.page-news__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__card-image {
        height: 200px; /* Ensure minimum height */
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    /* Fixed header spacing for mobile */
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

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

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

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

    /* Button responsiveness for mobile */
    .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__section-title {
        font-size: 1.8em;
    }

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

    /* Image responsiveness for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important;
    }

    .page-news__news-card,
    .page-news__announcement-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Video responsiveness for mobile */
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0; /* Remove auto margin to use full width */
        border-radius: 0; /* Optional: remove border-radius for full width */
    }

    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important;
    }

    .page-news__video-link {
        position: relative; /* Adjust for mobile if needed */
        display: block;
        width: 100%;
        height: 100%;
    }

    /* Content area padding for mobile to prevent overflow */
    .page-news__latest-news,
    .page-news__featured-video,
    .page-news__important-announcements,
    .page-news__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-news__card-image {
        height: auto; /* Allow height to adjust */
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none;
}

/* Content area image size constraint */
.page-news__news-card img,
.page-news__video {
    min-width: 200px;
    min-height: 200px;
}