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

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

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(18, 18, 18, 0.8)), url(' '); /* Background image will be dynamically inserted */
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-news__hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.page-news__hero-content {
    flex: 1;
    max-width: 600px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-news__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 400px; /* Ensure minimum size */
    min-height: 225px; /* Ensure minimum size */
}

/* CTA Buttons */
.page-news__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
}

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

.page-news__news-card {
    background-color: #282828;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-news__news-card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
    font-weight: bold;
}

.page-news__news-card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #FFFFFF;
}

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

.page-news__read-more {
    display: inline-block;
    color: #FFFFFF;
    background-color: #26A9E0;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

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

/* Featured Articles Section */
.page-news__featured-articles-section {
    padding: 60px 20px;
    background-color: #121212;
}

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

.page-news__article-item {
    background-color: #282828;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-news__article-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #26A9E0;
    font-weight: bold;
}

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

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

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0; /* Brand color as background */
    color: #FFFFFF; /* White text for brand color background */
}

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

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

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

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

.page-news__faq-item {
    background-color: #282828;
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #FFFFFF;
    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;
    color: #cccccc;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.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: #cccccc;
}

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        min-height: auto;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-news__hero-content {
        max-width: 100%;
    }

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

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

    .page-news__hero-image-wrapper {
        order: -1; /* Image above text on mobile */
    }

    .page-news__hero-image {
        min-width: 200px; /* Enforce min-width */
        min-height: 112px; /* Enforce min-height for 16:9 aspect */
        width: 100% !important;
        height: auto !important;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-news__news-card-image,
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure min-width */
        min-height: 150px; /* Ensure min-height */
    }

    .page-news__cta-section {
        padding: 50px 20px;
    }

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

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

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

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

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

    /* Ensure all content containers are responsive */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-articles-section,
    .page-news__cta-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px;
        padding-right: 15px; */ /* Handled by .page-news__container for consistency */
        overflow: hidden !important;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-news__news-card-title {
        font-size: 1.3em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
}