/* style/news.css */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--black-color); /* Inherit from shared */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #1a7bbd);
    color: #FFFFFF;
    padding-top: var(--header-offset, 120px);
}

.page-news__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
    z-index: 1;
}

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

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-news__introduction-section {
    padding: 60px 0;
    background-color: var(--black-color);
    color: #f0f0f0;
}

.page-news__introduction-section .page-news__section-title {
    color: #26A9E0;
}

.page-news__introduction-section .page-news__paragraph {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Article Grid */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

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

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

.page-news__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.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;
    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: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

/* Featured Content Grid */
.page-news__featured-content-section {
    padding: 60px 0;
    background-color: var(--black-color);
    color: #f0f0f0;
}

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

.page-news__content-block {
    background-color: #282828;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__content-subtitle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__content-block .page-news__paragraph {
    color: #cccccc;
    margin-bottom: 25px;
}

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

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

.page-news__faq-item {
    background-color: #282828;
    border-radius: 10px;
    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: #26A9E0;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
    margin: 0;
    color: #FFFFFF;
}

.page-news__faq-toggle {
    font-size: 1.8em;
    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, padding 0.3s ease;
    background-color: #333333;
    color: #cccccc;
}

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

.page-news__faq-answer .page-news__paragraph {
    margin-bottom: 0;
    color: #cccccc;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--black-color);
    color: #f0f0f0;
}

.page-news__cta-section .page-news__section-title {
    color: #26A9E0;
}

.page-news__cta-section .page-news__paragraph {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 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;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

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

.page-news__btn-primary:hover {
    background-color: #1a7bbd;
    border-color: #1a7bbd;
    transform: translateY(-3px);
}

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

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__content-subtitle {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 60px 0;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__articles-grid,
    .page-news__content-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: 200px;
    }
    .page-news__article-card,
    .page-news__content-block,
    .page-news__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-news__introduction-section,
    .page-news__latest-articles-section,
    .page-news__featured-content-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

    /* Image responsive force */
    .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__hero-section,
    .page-news__introduction-section,
    .page-news__latest-articles-section,
    .page-news__featured-content-section,
    .page-news__faq-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__hero-section .page-news__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        margin: 0 auto; /* Center buttons if they are block */
    }
}

/* Ensure contrast for specific elements on dark background */
.page-news__dark-bg {
    background-color: var(--black-color);
    color: #f0f0f0;
}

.page-news__light-bg {
    background-color: #282828;
    color: #f0f0f0;
}

.page-news__article-card .page-news__article-title a {
    color: #26A9E0; /* Ensure link color is visible */
}

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

.page-news__read-more-link {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__faq-question {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__faq-answer {
    background-color: #333333;
    color: #cccccc;
}