/* style/news.css */

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

/* Fixed Header Spacing: body handles padding-top, this page uses minimal top padding for its first section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px;
    box-sizing: border-box;
    background-color: #f8f8f8; /* Light background for the hero section */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

.page-news__intro-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

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

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

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

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

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

.page-news__latest-articles {
    padding: 60px 0;
    background-color: #26A9E0; /* Darker section background for contrast */
    color: #FFFFFF; /* Light text for dark background */
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

.page-news__categories .page-news__section-title,
.page-news__cta-section .page-news__section-title {
    color: #26A9E0;
}

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

.page-news__article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text on white card background */
}

.page-news__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__card-title a {
    color: #26A9E0; /* Brand color for card title links */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.page-news__view-all {
    text-align: center;
}

.page-news__categories {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-news__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333333;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.page-news__category-item:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__faq-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark section background */
    color: #FFFFFF; /* Light text */
}

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

.page-news__faq-item {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: #333333; /* Dark text for question */
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555; /* Dark text for answer */
    background-color: #FFFFFF;
}

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

/* CSS for details/summary native toggle, JS will update the +/– */
.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: none;
}

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

.page-news__cta-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    padding: 0 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .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: 0 15px 30px !important;
    }

    .page-news__hero-content {
        padding: 15px;
    }

    .page-news__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-news__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .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;
        margin: 5px 0 !important;
        padding: 12px 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-news__latest-articles,
    .page-news__categories,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

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

    .page-news__article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-card {
        margin-left: 0;
        margin-right: 0;
    }

    .page-news__article-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    .page-news__card-title {
        font-size: 1.2em;
    }

    .page-news__card-excerpt {
        font-size: 0.95em;
    }

    .page-news__category-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
    }

    .page-news__category-item {
        width: 100%;
        text-align: center;
    }

    .page-news__faq-list {
        margin: 0 15px;
    }

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

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

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

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Content within container should not have additional padding if container handles it */
    .page-news__hero-content,
    .page-news__cta-description {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}