/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body handles the actual background */
}

/* Section styling */
.page-news__section-title {
    font-size: clamp(28px, 4vw, 42px); /* H1 font size constraint */
    font-weight: 700;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.page-news__section-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: #0a0a0a; /* Match body background */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and content */
    display: flex;
    justify-content: center;
}

.page-news__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    color: #ffffff; /* Light text for dark background */
}

.page-news__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font size constraint */
    font-weight: 800;
    color: #26A9E0; /* Primary color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

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

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

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

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

/* Light background section (for contrast with dark body) */
.page-news__light-bg {
    background-color: #ffffff; /* Auxiliary color for background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-news__light-bg .page-news__section-title {
    color: #000000; /* Darker title on light background */
}

.page-news__light-bg .page-news__section-description {
    color: #555555;
}

/* Dark background section */
.page-news__dark-bg {
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

.page-news__dark-bg .page-news__section-title {
    color: #26A9E0; /* Primary color for titles on dark background */
}

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


/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
}

.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: #f8f8f8; /* Light background for news cards */
    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__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-news__news-card-content {
    padding: 25px;
    color: #333333; /* Dark text for light card background */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__news-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__news-card-title a {
    color: #000000; /* Dark text for link on light card */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #26A9E0; /* Primary color on hover */
}

.page-news__news-card-date {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
    display: block;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-news__news-card-link:hover {
    text-decoration: underline;
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.page-news__category-section {
    padding: 60px 0;
}

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

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Light text */
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-news__category-title {
    font-size: 24px;
    font-weight: 700;
    color: #26A9E0; /* Primary color */
    margin-bottom: 15px;
}

.page-news__category-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Value Proposition Section */
.page-news__value-proposition {
    padding: 60px 0;
}

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

.page-news__value-item {
    background-color: #f8f8f8; /* Light background for value items */
    border-left: 5px solid #26A9E0; /* Accent border */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333; /* Dark text */
}

.page-news__value-heading {
    font-size: 22px;
    font-weight: 700;
    color: #000000; /* Dark text for heading */
    margin-bottom: 15px;
}

.page-news__value-text {
    font-size: 16px;
    color: #555555;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff; /* Light text */
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    color: #ffffff; /* Light text */
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    margin-left: 15px;
    color: #26A9E0; /* Primary color for toggle */
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

.page-news__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Last CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-news__cta-content {
    max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 40px 15px;
    }
    .page-news__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-news__hero-description {
        font-size: 18px;
    }
    .page-news__section-title {
        font-size: clamp(24px, 3.5vw, 36px);
    }
}

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

    .page-news__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        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;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
    }

    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-news__latest-news-section,
    .page-news__category-section,
    .page-news__value-proposition,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

    .page-news__news-grid,
    .page-news__categories-grid,
    .page-news__value-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-news__news-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Adjust height for responsiveness */
    }

    .page-news__news-card-content,
    .page-news__category-card,
    .page-news__value-item,
    .page-news__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-news__section-description {
        font-size: 16px;
    }

    .page-news__news-card-title {
        font-size: 20px;
    }

    .page-news__category-title {
        font-size: 20px;
    }

    .page-news__value-heading {
        font-size: 20px;
    }

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

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

/* Ensure no CSS filters are applied to images */
.page-news img {
    filter: none !important;
}

/* Ensure content area images also adhere to min size and responsiveness */
.page-news__content-area img,
.page-news__text-block img,
.page-news__news-card-content img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-news__content-area img,
    .page-news__text-block img,
    .page-news__news-card-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}