/* style/news.css */

/* --- General Styles for Page News --- */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
    line-height: 1.6;
}

.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; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

.page-news__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__text-block {
    font-size: 1em;
    margin-bottom: 15px;
}

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

.page-news a:hover {
    color: #1a7fb8; /* Darker shade for hover */
    text-decoration: underline;
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none; /* Ensure no underline */
    box-sizing: border-box; /* Crucial for responsiveness */
}

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

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

.page-news__btn-primary--center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px; /* Limit width for center button */
}

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

.page-news__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb8;
    border-color: #1a7fb8;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-news__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text 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;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
}

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

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light grey background for contrast */
}

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

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

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

.page-news__article-image {
    width: 100%;
    min-height: 200px; /* Enforce minimum size */
    height: auto; /* Allow height to adjust */
    object-fit: cover;
    display: block;
}

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

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

.page-news__article-title a {
    color: #333333;
    text-decoration: none;
}

.page-news__article-title a:hover {
    color: #26A9E0;
    text-decoration: underline;
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__read-more {
    color: #26A9E0;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.page-news__read-more:hover {
    text-decoration: underline;
    color: #1a7fb8;
}

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

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

/* --- Featured Video Section --- */
.page-news__featured-video {
    background-color: #26A9E0; /* Brand color background */
    padding: 80px 0;
    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;
    background-color: #000; /* Placeholder background for video */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__video-link {
    display: block;
    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%;
    border: none;
    display: block;
    cursor: pointer; /* Ensure cursor is pointer */
}

/* --- Deep Content Section --- */
.page-news__deep-content {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-news__deep-content img {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #eef7fc; /* Lighter brand color hover */
}

.page-news__faq-title {
    margin: 0;
    color: #26A9E0;
    flex-grow: 1;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or 'minus' */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-news__faq-answer p {
    margin: 0;
    padding: 0;
}

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 992px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-news__sub-title {
        font-size: 1.5em;
    }

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

    .page-news__article-image {
        height: 200px;
    }
}

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

    .page-news__container {
        padding: 0 15px !important; /* Ensure padding for mobile */
    }

    .page-news__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-news__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Images responsiveness */
    .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;
    }

    /* Video responsiveness */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-news__featured-video {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__video-wrapper {
        padding-bottom: 75% !important; /* Adjust aspect ratio for mobile, e.g., 4:3 */
        margin-left: 0;
        margin-right: 0;
    }

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

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

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

/* Ensure content area images are not smaller than 200px */
.page-news__content-area img,
.page-news__latest-articles img,
.page-news__deep-content img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space properly */
}

/* Color contrast enforcement */
.page-news__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__dark-bg .page-news__hero-title,
.page-news__dark-bg .page-news__hero-description,
.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description {
    color: #FFFFFF;
}

.page-news__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__sub-title {
    color: #26A9E0;
}

.page-news__light-bg .page-news a {
    color: #26A9E0;
}

.page-news__article-title a {
    color: #333333; /* Ensure contrast for article titles */
}
.page-news__article-title a:hover {
    color: #26A9E0;
}

.page-news__faq-title {
    color: #26A9E0; /* Ensure FAQ question titles are branded */
}
.page-news__faq-question {
    color: #333333; /* Text for question itself */
}
.page-news__faq-toggle {
    color: #26A9E0;
}
.page-news__faq-answer {
    color: #555555; /* Text for answer */
}