/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg-lighter); /* Inherit from shared, assumed dark */
}

.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: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

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

.page-news__hero-section > .page-news__container {
    position: relative;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    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;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    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: #1e87b8;
    border-color: #1e87b8;
}

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

.page-news__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1e87b8;
    border-color: #1e87b8;
}

/* Latest News Section */
.page-news__latest-news {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-news__latest-news .page-news__section-title {
    color: #333333;
}

.page-news__latest-news .page-news__section-description {
    color: #555555;
}

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

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

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

.page-news__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

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

.page-news__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-news__featured-articles .page-news__section-title {
    color: #FFFFFF;
}

.page-news__featured-articles .page-news__section-description {
    color: #f0f0f0;
}

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

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

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

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

.page-news__article-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    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-text {
    font-size: 1em;
    color: #cccccc;
    margin: 0 20px 20px;
    flex-grow: 1;
}

/* Video Section */
.page-news__video-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-news__video-section .page-news__section-title {
    color: #333333;
}

.page-news__video-section .page-news__section-description {
    color: #555555;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-news__faq-section .page-news__section-title {
    color: #FFFFFF;
}

.page-news__faq-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__faq-item {
    background-color: #222222;
    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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

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

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

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

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

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

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

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

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
    text-align: center;
}

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

.page-news__cta-section .page-news__section-description {
    color: #555555;
}

.page-news__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
}

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

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

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

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

    .page-news__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        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__news-grid,
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    /* Images responsive for mobile */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__card-image,
    .page-news__article-image {
        height: auto;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-news__latest-news,
    .page-news__featured-articles,
    .page-news__video-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 15px !important;
    }

    .page-news__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Video responsive for mobile */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .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 !important;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__card-title {
        font-size: 1.1em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
}