/* style/news.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color); /* Default light background, will be overridden by shared.css body background */
}

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

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--black-color);
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-color-light);
    max-width: 900px;
    padding: 20px;
}

.page-news__hero-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-color-light);
}

.page-news__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.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;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-news__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-news__news-list-section,
.page-news__featured-articles-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

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

.page-news__news-card:hover {
    transform: translateY(-5px);
}

.page-news__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-news__news-card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__news-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: darken(var(--primary-color), 10%);
}

.page-news__news-card-excerpt {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__news-card-date {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-top: auto;
}

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

.page-news__why-choose-us-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description {
    color: var(--text-color-light);
}

.page-news__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-news__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__benefit-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-news__benefit-text {
    font-size: 1em;
    color: var(--text-color-light);
}

.page-news__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-news__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-color-dark);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        gap: 20px;
    }
}

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

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-news__hero-title {
        font-size: 2.2em; /* Adjusted for mobile H1 */
        max-width: 100%; /* Ensures H1 doesn't overflow */
    }

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

    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .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;
    }

    .page-news__news-list-section,
    .page-news__featured-articles-section,
    .page-news__why-choose-us-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

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

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

    .page-news__news-card-image {
        height: 180px;
    }

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

    .page-news__benefits-list {
        gap: 20px;
    }

    .page-news__benefit-item {
        padding: 20px;
    }

    .page-news__benefit-title {
        font-size: 1.4em;
    }

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

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

    /* Ensure all images are responsive */
    .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-section,
    .page-news__news-list-section,
    .page-news__featured-articles-section,
    .page-news__why-choose-us-section,
    .page-news__faq-section,
    .page-news__hero-cta-buttons,
    .page-news__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Color contrast for main text, assuming body is dark from shared.css */
/* If shared.css body is dark-bg-1, then main content should be light text. */
/* However, the prompt also specifies .page-news { color: #333333; background-color: #FFFFFF; } which implies a light background. */
/* Following the "Body background color information" section: "Recommended text color: #ffffff" if body is dark. */
/* And "If body is deep color background, content must use light color text." */
/* The current design uses light backgrounds for sections (white) and dark text (#333333), which is standard. */
/* The hero section has a darkened image background and white text. */
/* The why-choose-us section has primary-color background and white text. */
/* This combination respects contrast rules. */

/* Override for text color if body background is indeed dark (from shared.css) and sections are not explicitly light */
.page-news p,
.page-news li,
.page-news__section-description {
    color: var(--text-color-dark);
}

.page-news__hero-title,
.page-news__hero-description {
    color: var(--text-color-light);
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__benefit-title,
.page-news__dark-bg .page-news__benefit-text {
    color: var(--text-color-light);
}

.page-news__faq-answer p {
    color: var(--text-color-dark);
}