/* style/news.css */

/* Base Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color, #ffffff); /* Default text color for dark body background */
    background-color: var(--dark-bg1); /* Inherit from shared.css, assuming dark */
}

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

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

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

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

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

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to 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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons adapt to screen width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
    background-color: #1a7bb7; /* Darker shade */
    border-color: #1a7bb7;
}

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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    text-align: center;
    overflow: hidden;
    background-color: var(--dark-bg1); /* Ensure consistent dark background */
    color: #ffffff; /* Light text for dark background */
}

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

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

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

.page-news__intro-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Latest Updates Section */
.page-news__latest-updates {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for news cards */
    color: #333333; /* Dark text for light background */
}

.page-news__latest-updates .page-news__section-title {
    color: #26A9E0;
}

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

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

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

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    object-fit: cover;
    display: block;
}

.page-news__news-card h3 {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    color: #26A9E0;
    flex-grow: 1; /* Allow title to take available space */
}

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

.page-news__news-card h3 a:hover {
    color: #1a7bb7;
}

.page-news__card-text {
    font-size: 1em;
    color: #666666;
    margin: 0 20px 20px 20px;
}

.page-news__read-more-link {
    display: inline-flex;
    align-items: center;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: color 0.3s ease;
}

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

.page-news__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

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

/* Video Section */
.page-news__video-section {
    padding: 60px 0;
    background-color: var(--dark-bg1); /* Dark background */
    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: 900px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__video-link {
    display: block; /* Make the entire video area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure video is block level */
}

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

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

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

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

.page-news__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #eef7fc; /* Lighter brand color */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.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: #ffffff;
    color: #555555;
}

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

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing below paragraph */
}

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

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

/* Call to Action Bottom Section */
.page-news__cta-bottom {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

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

.page-news__cta-bottom .page-news__section-description {
    color: #ffffff;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }
    .page-news__intro-description {
        font-size: 1.2em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding: 60px 0;
    }
    .page-news__main-title {
        font-size: 2.2em;
        padding: 0 15px;
    }
    .page-news__intro-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-news__section-description {
        font-size: 0.95em;
        padding: 0 15px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news__video-wrapper {
        margin: 20px auto 0 auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent video touching edges */
        overflow: hidden !important;
    }
    .page-news__video-section .page-news__container {
        padding-left: 0 !important; /* Remove container padding if video has its own */
        padding-right: 0 !important;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__faq-list {
        padding: 0 15px;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px;
    }
    /* Ensure all images are responsive and do not overflow */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__news-card h3 {
        font-size: 1.2em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}

/* Image color filter restriction */
.page-news img {
    filter: none; /* Ensure no filter is applied */
}