/* style/news.css */
/* Custom colors from prompt */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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;
}

.page-news {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Ensure contrast with dark background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-size: 16px;
}

/* Base container for content */
.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;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-background);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 clamp for responsiveness */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

.page-news__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 15px;
    margin-top: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

/* Latest Updates Section */
.page-news__latest-updates {
    background-color: var(--color-card-bg); /* Darker background for this section */
    padding: 60px 0;
}

.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(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-news__news-card-content {
    padding: 20px;
}

.page-news__news-card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    min-height: 60px; /* Ensure consistent height for titles */
}

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

.page-news__news-card-title a:hover {
    color: var(--color-gold);
}

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

.page-news__news-card-excerpt {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-news__read-more {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--color-gold);
}

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

.page-news__view-all-button {
    display: inline-block;
    background: var(--color-deep-green);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-news__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__promotion-card-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-news__promotion-card-title {
    font-size: 1.4em;
    color: var(--color-text-main);
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-news__promotion-card-text {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    padding: 0 20px;
}

.page-news__btn-primary {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent; /* Required for contrast section */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.page-news__btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--color-card-bg); /* Dark background */
    color: var(--color-text-main); /* White text for contrast */
}

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

.page-news__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    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;
}

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

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

.page-news__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    background-color: var(--color-background);
}

.page-news__faq-answer p {
    margin-bottom: 10px;
    color: var(--color-text-secondary); /* Ensure text color for paragraphs inside FAQ answers */
}

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

.page-news__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-news__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--color-primary); /* Required for contrast section */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.page-news__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

/* Final CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background-color: var(--color-background);
    text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-news__news-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 15px;
    }
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

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

    .page-news__description {
        font-size: 1em;
    }

    .page-news__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

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

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

    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-news__cta-button,
    .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-left: 15px;
        padding-right: 15px;
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        flex-direction: column !important;
        gap: 15px;
    }

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

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

    .page-news__news-card-image,
    .page-news__promotion-card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}