/* style/news.css */

/* Base styles for the page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for contrast calculation */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    color: #ffffff;
    background-color: #26A9E0; /* Brand primary color */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make it subtle */
    filter: none !important; /* Ensure no filter is applied */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3.5em;
    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;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Call to Action Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping 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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* Inline buttons for sections */
.page-news__btn-inline {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    display: block; /* Make them block level for better spacing */
    max-width: 300px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

.page-news__btn-inline.page-news__btn-primary {
    background-color: #26A9E0;
    border-color: #26A9E0;
}
.page-news__btn-inline.page-news__btn-primary:hover {
    background-color: #1f8ec4;
    border-color: #1f8ec4;
}

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

/* Video Section */
.page-news__video-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Max width for video */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    width: 100%; /* Ensure it takes full width of its container */
}

.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%;
    object-fit: cover;
    border-radius: 10px;
    max-width: 100%; /* Ensure video is responsive */
    height: auto; /* Ensure video is responsive */
    display: block; /* Remove extra space below video */
    filter: none !important; /* Ensure no filter is applied */
}

.page-news__video-description {
    font-size: 1.1em;
    color: #555555;
    margin-top: 20px;
}

/* Content Area */
.page-news__content-area {
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
}

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

.page-news p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none !important; /* Ensure no filter is applied */
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-news__article-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

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

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

.page-news__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none !important; /* Ensure no filter is applied */
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.page-news__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    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; /* Restore padding when active */
}

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

.page-news__cta-buttons--bottom {
    margin-top: 50px;
}

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
        padding-bottom: 40px;
    }
    .page-news__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__video-section {
        padding: 40px 15px;
    }
    .page-news__video-wrapper {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__content-area {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-news p {
        font-size: 1em;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-image {
        height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 15px;
        box-sizing: border-box !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 0;
    }
    .page-news__faq-answer {
        padding: 0 10px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px;
    }
    .page-news__btn-inline {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}

/* Ensure content area images do not shrink below 200px */
.page-news__content-area img,
.page-news__articles-grid img {
    min-width: 200px;
    min-height: 200px;
}