:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Auxiliary */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* General text colors for contrast */
    --color-dark-text: #333333;
    --color-light-text: #ffffff;
    --color-light-bg: #ffffff;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page, assuming dark background */
    background-color: var(--color-background); /* Page background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-news a {
    color: var(--color-gold); /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Prevents overflow of hero image */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of image */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-news__hero-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Slightly darken image for text readability */
    min-height: 200px; /* Ensure minimum size */
}

.page-news__hero-content {
    position: relative; /* Relative to hero section, not absolute over image */
    z-index: 1;
    max-width: 900px;
    margin: 40px auto 0 auto; /* Margin from image */
    padding: 0 20px;
    color: var(--color-text-main); /* Ensure text is light on potentially dark background */
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold); /* Using gold for main title */
}

.page-news__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-light-text);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

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

.page-news__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.page-news__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--color-text-secondary);
}

.page-news__about-platform-section {
    padding: 80px 0;
    background-color: var(--color-card-bg); /* Darker background for this section */
    color: var(--color-text-main);
}

.page-news__about-platform-section .page-news__section-title,
.page-news__about-platform-section .page-news__section-description {
    color: var(--color-text-main);
}

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

.page-news__info-card {
    background-color: var(--color-background); /* Even darker background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__info-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-news__info-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.page-news__info-card-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.page-news__latest-news-section {
    padding: 80px 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: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    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 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-news__news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    min-width: 200px;
    min-height: 200px;
}

.page-news__news-card:hover img {
    transform: scale(1.05);
}

.page-news__card-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
}

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

.page-news__card-title a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-news__card-title a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.page-news__card-meta {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--color-light-text);
    background-color: var(--color-primary);
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Aligns button to the left */
}

.page-news__read-more-button:hover {
    background-color: var(--color-secondary);
    text-decoration: none;
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-light-text);
    background-color: var(--color-primary);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__view-all-button:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    text-decoration: none;
}

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

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

.page-news__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--color-text-main); /* Ensure text is visible */
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    color: var(--color-gold);
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-news__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

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

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

.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-card-bg) 0%, var(--color-background) 100%);
}

.page-news__cta-section .page-news__section-title {
    margin-top: 0;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-light-text);
    border: none;
}

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

.page-news__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .page-news__hero-content {
        max-width: 700px;
    }
    .page-news__news-grid,
    .page-news__info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .page-news__hero-description {
        font-size: 1rem;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-news__section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-top: 40px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-news__about-platform-section,
    .page-news__latest-news-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 60px 0;
    }

    .page-news__news-card img,
    .page-news__info-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-news__news-card,
    .page-news__info-card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-news__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-news__faq-toggle {
        font-size: 1.2rem;
    }

    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: 10px !important; /* body already handles header offset */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    .page-news__hero-description {
        font-size: 0.9rem;
    }
    .page-news__section-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-news__cta-buttons {
        flex-direction: column;
    }
}