/* General Styles for .page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly white background */
}

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

.page-news__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #f8f8f8;
}

.page-news__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-news__hero-content {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.page-news__hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #000000; /* Strong contrast for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-news__hero-cta-button {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* For mobile button responsiveness */
    word-wrap: break-word; /* For mobile button responsiveness */
}

.page-news__hero-cta-button:hover {
    background-color: #1e8dc7;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-news__article-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.page-news__article-content {
    padding: 20px;
}

.page-news__article-title {
    font-size: 20px;
    font-weight: 700;
    color: #26A9E0; /* Brand color for article titles */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-meta {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
}

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

.page-news__read-more {
    display: inline-block;
    color: #26A9E0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 2px;
}

.page-news__read-more:hover {
    color: #1e8dc7;
    border-color: #1e8dc7;
}

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

.page-news__view-all-button {
    display: inline-block;
    background-color: #000000; /* Dark button for contrast */
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* For mobile button responsiveness */
    word-wrap: break-word; /* For mobile button responsiveness */
}

.page-news__view-all-button:hover {
    background-color: #333333;
}

/* Featured Article Section */
.page-news__featured-article {
    padding: 60px 0;
    background-color: #f2f7fb; /* Light blue background */
}

.page-news__featured-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__featured-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-news__text-block {
    width: 50%;
    color: #333333;
}

.page-news__text-block-title {
    font-size: 28px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-news__text-block-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__text-block p {
    font-size: 17px;
    margin-bottom: 15px;
    color: #555555;
}

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

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
    background: #f5f5f5;
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Dark text for question */
}
.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555; /* Dark text for answer */
}

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for brand color background */
    text-align: center;
}

.page-news__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__cta-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-news__cta-description {
    font-size: 19px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-news__cta-button {
    display: inline-block;
    background-color: #EA7C07; /* Login button color from custom palette */
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* For mobile button responsiveness */
    word-wrap: break-word; /* For mobile button responsiveness */
}

.page-news__cta-button:hover {
    background-color: #d16b06;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 40px;
    }

    .page-news__articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-news__featured-content {
        flex-direction: column;
        align-items: center;
    }

    .page-news__featured-image,
    .page-news__text-block {
        width: 100%;
        max-width: 700px;
    }

    .page-news__text-block {
        padding: 0 20px;
    }

    .page-news__section-title {
        font-size: 28px;
    }
    .page-news__text-block-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    /* Hero Section - Mobile */
    .page-news__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        padding-bottom: 40px;
    }
    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Ensure image fits */
        min-height: 200px; /* Minimum size */
    }
    .page-news__hero-content {
        padding: 0;
    }
    .page-news__hero-title {
        font-size: 32px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-description {
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Latest Articles Section - Mobile */
    .page-news__latest-articles {
        padding: 40px 0;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
        object-fit: cover;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-excerpt {
        font-size: 15px;
    }
    .page-news__view-all-button-container {
        margin-top: 30px;
    }
    .page-news__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Featured Article Section - Mobile */
    .page-news__featured-article {
        padding: 40px 0;
    }
    .page-news__featured-content {
        gap: 20px;
    }
    .page-news__featured-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
        object-fit: cover;
        margin-bottom: 20px;
    }
    .page-news__text-block {
        padding: 0;
    }
    .page-news__text-block-title {
        font-size: 24px;
    }
    .page-news__text-block-subtitle {
        font-size: 20px;
    }
    .page-news__text-block p {
        font-size: 16px;
    }

    /* FAQ Section - Mobile */
    .page-news__faq-section {
        padding: 40px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 15px; }
    details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

    /* CTA Section - Mobile */
    .page-news__cta-section {
        padding: 40px 0;
    }
    .page-news__cta-title {
        font-size: 28px;
    }
    .page-news__cta-description {
        font-size: 17px;
        margin-bottom: 30px;
    }
    .page-news__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image/button responsiveness */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box !important;
    }
    .page-news__section-title {
        font-size: 24px;
    }
    /* Mobile specific container padding for all sections */
    .page-news__hero-section .page-news__container,
    .page-news__latest-articles .page-news__container,
    .page-news__featured-article .page-news__container,
    .page-news__faq-section .page-news__container,
    .page-news__cta-section .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Ensure all buttons within page-news adhere to mobile rules */
    .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;
    }
    /* For button groups if any were present */
    .page-news__button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}