/* style/news.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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 {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background);
}

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

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

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

.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-news__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: #ffffff;
}

/* 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 */
    overflow: hidden;
    background-color: var(--color-deep-green);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

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

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

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

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

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

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

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

.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: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-block;
    color: var(--color-button-gradient-start);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

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

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__text-main {
    color: var(--color-text-main);
}

.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__text-secondary {
    color: var(--color-text-secondary);
}

.page-news__featured-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-news__featured-item:hover {
    transform: translateY(-3px);
}

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

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

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

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

.page-news__featured-excerpt {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-news__cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-content {
    flex: 1;
}

.page-news__cta-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--color-text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-news__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-news__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-news__cta-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
}

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

.page-news__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

.page-news__faq-question:hover {
    color: var(--color-gold);
}

.page-news__faq-item summary {
    list-style: none;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

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

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer a {
    color: var(--color-button-gradient-start);
    text-decoration: none;
    font-weight: bold;
}

.page-news__faq-answer a:hover {
    color: var(--color-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__hero-section {
        padding: 40px 20px;
    }

    .page-news__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-news__cta-container {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .page-news__cta-image-wrapper {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 30px;
    }

    .page-news__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-news__section-title {
        font-size: 2em;
    }

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

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

    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-news-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 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,
    .page-news__cta-container,
    .page-news__news-card,
    .page-news__featured-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px; /* Handled by section padding */
        padding-right: 0px; /* Handled by section padding */
    }

    /* Mobile video responsiveness (if any, though not explicitly used here) */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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;
    }
    
    .page-news__video-section {
        padding-top: 10px !important;
    }

    /* Mobile button 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;
        gap: 10px;
        flex-direction: column !important; /* Force vertical stacking for multiple buttons */
    }

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

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

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-news__cta-title {
        font-size: 1.8em;
    }
}