:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F; /* Overall body background, but shared.css handles body */
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-deep-green: #0A4B2C;
}

.page-news {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-background); /* This will be overridden by shared.css body background, but good for internal sections */
    color: var(--color-text-main); /* Default text color for the page content */
    line-height: 1.6;
}

/* General container for content sections */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

/* Buttons */
.page-news__hero-cta-button,
.page-news__view-all-button,
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-news__hero-cta-button,
.page-news__view-all-button {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-news__hero-cta-button:hover,
.page-news__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, larger bottom */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image wrapper */
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7); /* Slightly dim the image for text contrast, allowed as it doesn't change color hue */
}

.page-news__hero-content {
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual appeal, but text is still below the image */
    position: relative; /* Ensure z-index works if needed */
    z-index: 1;
    padding: 0 20px;
}

.page-news__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Using clamp for H1 font-size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-news__hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

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

.page-news__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-news__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    filter: brightness(0.8); /* Slightly dim for text contrast, allowed */
}

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

.page-news__card-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1; /* Allows excerpt to take available space */
}

.page-news__card-date {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    opacity: 0.8;
}

.page-news__read-more {
    display: block;
    color: var(--color-secondary);
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
    align-self: flex-start;
}

.page-news__button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Industry Insights & Platform Updates Sections */
.page-news__industry-insights-section,
.page-news__platform-updates-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-news__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-news__content-image {
    flex: 1;
    min-width: 400px; /* Minimum width before wrapping */
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    filter: brightness(0.85); /* Slightly dim for text contrast, allowed */
}

.page-news__text-block {
    flex: 1;
    min-width: 400px; /* Minimum width before wrapping */
    color: var(--color-text-main);
}

.page-news__text-block h3 {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__text-block p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

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

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

.page-news__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: var(--color-primary);
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: var(--color-primary);
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-news__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-text-main);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    color: var(--color-text-main);
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-news__faq-answer p {
    margin-top: 15px;
}

.page-news__faq-answer a {
    color: var(--color-secondary);
    text-decoration: underline;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }

    .page-news__hero-description {
        font-size: 1.1rem;
    }

    .page-news__section-title {
        font-size: 2.2rem;
    }

    .page-news__content-image,
    .page-news__text-block {
        min-width: unset; /* Allow shrinking */
        flex-basis: 100%; /* Take full width on smaller screens */
    }

    .page-news__content-wrapper {
        flex-direction: column; /* Stack vertically */
    }

    .page-news__content-wrapper--reversed {
        flex-direction: column; /* Stack vertically */
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__hero-section {
        padding: 10px 0 40px;
    }

    .page-news__hero-content {
        margin-top: -60px; /* Less overlap on mobile */
        padding: 0 15px;
    }

    .page-news__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

    .page-news__hero-cta-button,
    .page-news__view-all-button,
    .page-news__cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px;
    }
    
    .page-news__button-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

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

    .page-news__latest-news-section,
    .page-news__industry-insights-section,
    .page-news__platform-updates-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

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

    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

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

    .page-news__card-excerpt {
        font-size: 0.9rem;
    }

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

    .page-news__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
}