/* style/news.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --body-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--body-bg);
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
}

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

.page-news__hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-news__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

/* Shared Section Styles */
.page-news__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-news__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    margin-left: 15px;
}

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

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

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

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

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

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

.page-news__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

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

.page-news__card-title a:hover {
    color: var(--glow-color);
}

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

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

.page-news__card-link {
    display: inline-block;
    margin-top: auto;
    color: var(--glow-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__card-link:hover {
    text-decoration: underline;
    color: var(--gold-color);
}

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

/* Platform Updates & Industry Insights Sections */
.page-news__platform-updates,
.page-news__industry-insights {
    padding: 80px 0;
}

.page-news__industry-insights {
    background-color: var(--body-bg);
}

.page-news__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-news__content-block {
    padding: 20px;
}

.page-news__content-block .page-news__section-title {
    text-align: left;
    padding-top: 0;
    margin-bottom: 25px;
}

.page-news__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-news__image-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Promotions & Events Section */
.page-news__promotions-events {
    padding: 80px 0;
    text-align: center;
}

.page-news__promotions-events .page-news__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-news__promotions-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

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

/* CTA Banner Section */
.page-news__cta-banner {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green);
}

.page-news__cta-content {
    max-width: 900px;
}

.page-news__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news__cta-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__grid-two-cols {
        grid-template-columns: 1fr;
    }
    .page-news__reverse-mobile {
        flex-direction: column-reverse;
    }
    .page-news__image-block {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__latest-section,
    .page-news__platform-updates,
    .page-news__industry-insights,
    .page-news__promotions-events,
    .page-news__faq-section,
    .page-news__cta-banner {
        padding: 40px 0;
    }
    .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__card-grid {
        gap: 20px;
    }
    .page-news__news-card {
        margin-bottom: 20px;
    }
    .page-news__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-news__content-block .page-news__section-title {
        text-align: center;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .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: 0 0 10px 0 !important; /* Stack buttons */
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-news__hero-image,
    .page-news__card-image,
    .page-news__image,
    .page-news__promotions-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-card,
    .page-news__platform-updates,
    .page-news__industry-insights,
    .page-news__promotions-events,
    .page-news__faq-section,
    .page-news__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
    .page-news__faq-answer {
        font-size: 0.9em;
    }
}