/* style/news.css */

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

/* Global styles for page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--page-news-text-main);
    background-color: var(--page-news-background); /* Body background handled by shared.css */
}

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

.page-news__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 25px;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-main);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    box-sizing: border-box;
    min-height: 500px; /* Ensure sufficient height */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-news-text-main);
    margin-bottom: 20px;
}

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

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

.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(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-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__news-date {
    font-size: 0.9rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 10px;
}

.page-news__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.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-primary-color);
}

.page-news__card-excerpt {
    font-size: 1rem;
    color: var(--page-news-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--page-news-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

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

/* Promotional Block */
.page-news__promo-block {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-news__promo-block .page-news__section-title,
.page-news__promo-block .page-news__section-description {
    position: relative;
    z-index: 1;
}

.page-news__promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-news__promo-button {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

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

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-news-text-main);
    background-color: var(--page-news-card-bg);
    border-bottom: 1px solid var(--page-news-divider-color);
    transition: background-color 0.3s ease;
}

.page-news__faq-item summary:hover {
    background-color: rgba(var(--page-news-primary-color), 0.1);
}

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

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-news-primary-color);
    margin-left: 15px;
}

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

.page-news__faq-item[open] summary {
    border-bottom: 1px solid var(--page-news-primary-color);
}

/* Final CTA Section */
.page-news__final-cta {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 30px 15px;
    }

    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-news__hero-description {
        font-size: 1.1rem;
    }

    .page-news__news-grid {
        gap: 20px;
    }

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

    .page-news__card-title {
        font-size: 1.2rem;
    }

    .page-news__card-excerpt {
        font-size: 0.95rem;
    }
}

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

    .page-news__hero-section {
        padding: 40px 0 !important;
        padding-top: 10px !important;
        min-height: 400px;
    }

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

    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .page-news__cta-button {
        padding: 10px 20px !important;
        font-size: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__latest-news,
    .page-news__promo-block,
    .page-news__faq-section,
    .page-news__final-cta {
        padding: 40px 0 !important;
    }

    .page-news__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: 20px;
    }

    .page-news__section-description {
        font-size: 0.9rem !important;
        margin-bottom: 30px;
    }

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

    .page-news__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__news-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__card-title {
        font-size: 1.1rem !important;
    }

    .page-news__card-excerpt {
        font-size: 0.85rem !important;
    }

    .page-news__faq-item summary {
        font-size: 1rem !important;
        padding: 15px !important;
    }

    .page-news__faq-answer {
        font-size: 0.9rem !important;
        padding: 15px !important;
    }

    /* Ensure all images are responsive in content areas */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-news__promo-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__view-all-button-wrapper {
        padding: 0 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        min-height: 300px;
    }

    .page-news__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    }

    .page-news__hero-description {
        font-size: 0.9rem !important;
    }

    .page-news__cta-button {
        font-size: 0.9rem !important;
    }
}