/* style/news.css */

/* Custom Colors */
:root {
    --page-news-bg: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
}

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

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 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; /* body already handles --header-offset */
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-news__hero-content {
    position: relative; /* Ensure content is above the image if any layering */
    z-index: 2;
    max-width: 800px;
    margin-top: 20px; /* Space from image */
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--page-news-text-main);
    margin-bottom: 20px;
    /* font-size handled by default or clamp in shared.css for H1 */
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-news__btn-primary {
    background: var(--page-news-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-news__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-news__latest-news-section,
.page-news__promotions-section,
.page-news__faq-section,
.page-news__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--page-news-text-main);
    margin-bottom: 20px;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--page-news-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.page-news__news-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-news-border);
}

.page-news__news-card:hover {
    transform: translateY(-5px);
}

.page-news__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

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

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

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

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
}

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

.page-news__read-more:hover {
    text-decoration: underline;
}

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

/* Promotions Section */
.page-news__promotions-section {
    background-color: var(--page-news-deep-green); /* Example dark background */
    color: #ffffff; /* Light text on dark background */
}

.page-news__promotions-section .page-news__section-title,
.page-news__promotions-section .page-news__section-description {
    color: #ffffff;
}

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

.page-news__promo-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-news-border);
}

.page-news__promo-card:hover {
    transform: translateY(-5px);
}

.page-news__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

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

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

.page-news__promo-excerpt {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-news-text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    -webkit-tap-highlight-color: transparent; /* For mobile tap */
}

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

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-news-glow);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar visual */
}

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

/* Bottom CTA Section */
.page-news__cta-bottom-section {
    background-color: var(--page-news-deep-green);
    color: #ffffff;
    padding-bottom: 80px;
}
.page-news__cta-bottom-section .page-news__section-title,
.page-news__cta-bottom-section .page-news__section-description {
    color: #ffffff;
}

/* Image/Video/Button Responsive Adapation - MUST HAVE */
/* All images basic responsive styles */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All videos basic responsive styles */
.page-news video,
.page-news__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Video container basic responsive styles */
.page-news__video-section,
.page-news__video-container,
.page-news__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* All buttons basic responsive styles */
.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%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-news__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Responsive font size for H1 */
    }

    .page-news__hero-description,
    .page-news__section-description,
    .page-news__card-excerpt,
    .page-news__promo-excerpt,
    .page-news__faq-answer p {
        font-size: 1em;
    }

    .page-news__section-title {
        font-size: 2em;
    }

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

    .page-news__container {
        padding: 0 15px; /* Add padding to containers on mobile */
    }

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

    /* Videos */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video containers */
    .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;
    }

    /* Buttons */
    .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; /* Ensure text inside button has padding */
        padding-right: 15px;
    }

    /* Button containers */
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-news__news-card,
    .page-news__promo-card {
        margin-bottom: 20px;
    }
}

/* Dark background sections for contrast */
.page-news__dark-section {
    background-color: var(--page-news-deep-green);
    color: #ffffff;
}
.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__card-title a,
.page-news__dark-section .page-news__promo-title a {
    color: #ffffff;
}
.page-news__dark-section .page-news__read-more {
    color: var(--page-news-glow);
}