/* style/news.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-dark: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

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

.page-news__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-news__section-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: -150px; /* Pull content up over the image, but not overlap text */
    max-width: 800px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow-color);
}

.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: #ffffff;
}

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

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

.page-news__news-card {
    background-color: var(--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;
    border: 1px solid var(--border-color);
}

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

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 25px;
}

.page-news__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

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

.page-news__card-summary {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    height: 75px; /* Limit summary height */
    overflow: hidden;
}

.page-news__read-more {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-news__cta-button-container {
    text-align: center;
}

/* Featured Promotions Section */
.page-news__featured-promotions {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

.page-news__featured-promotions .page-news__cta-buttons {
    margin-top: 40px;
}

/* About News Policy Section */
.page-news__about-news-policy {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--divider-color);
}

.page-news__faq-item {
    margin-bottom: 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-news__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-news__faq-item summary:hover {
    color: var(--primary-color);
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-news__faq-answer {
    padding: 10px 0 20px 0;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Final CTA Section */
.page-news__final-cta {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-news__final-cta .page-news__cta-buttons {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -100px;
    }
}

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

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

    .page-news__hero-image {
        max-height: 400px;
    }

    .page-news__hero-content {
        margin-top: -80px;
    }

    .page-news__main-title {
        font-size: clamp(30px, 8vw, 42px);
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-news__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .page-news__section-description,
    .page-news__text-block {
        font-size: 15px;
    }

    .page-news__latest-news,
    .page-news__featured-promotions,
    .page-news__about-news-policy,
    .page-news__faq-section,
    .page-news__final-cta {
        padding: 50px 0;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__card-image {
        height: 180px;
    }

    .page-news__card-title {
        font-size: 18px;
    }

    .page-news__card-summary {
        font-size: 14px;
        height: auto; /* Allow full summary on mobile */
    }

    .page-news__faq-item summary {
        font-size: 18px;
        padding: 15px 0;
    }

    .page-news__faq-answer {
        font-size: 14px;
    }

    /* Mobile image responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-news__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(26px, 9vw, 36px);
    }

    .page-news__hero-description {
        font-size: 14px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        min-width: unset;
    }
}