/* style/news.css */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-bg-card: #11271B;
    --color-bg-body: #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-bg-body); /* Should be overridden by body from shared.css */
}

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

.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;
    background-color: var(--color-bg-body);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

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

.page-news__hero-content {
    order: 2; /* Content after image */
    text-align: center;
    padding: 30px 20px;
    max-width: 800px;
    margin-top: -80px; /* Pull content up slightly over the image if needed, but not overlap text on image */
    position: relative;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(34, 199, 104, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-news__intro-text-section,
.page-news__latest-news-section,
.page-news__call-to-action-section,
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--color-bg-body);
}

.page-news__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 2.5rem;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-news__paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.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(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news__card-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistent card image display */
    overflow: hidden;
}

.page-news__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
    transform: scale(1.05);
}

.page-news__card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-news__card-title {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

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

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

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

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

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

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

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

.page-news__featured-article {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-news__featured-article:last-child {
    margin-bottom: 0;
}

.page-news__featured-image-wrapper {
    flex-shrink: 0;
    width: 40%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-news__featured-content {
    flex-grow: 1;
}

.page-news__featured-title {
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

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

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

.page-news__featured-excerpt {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-news__faq-item summary:hover {
    background-color: #0d3824; /* Slightly darker deep green */
}

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

.page-news__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    background-color: var(--color-bg-card);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__featured-article {
        flex-direction: column;
        text-align: center;
    }

    .page-news__featured-image-wrapper {
        width: 100%;
        margin-bottom: 20px;
    }
}

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

    .page-news__hero-content {
        margin-top: -50px;
        padding: 20px 15px;
    }

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

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

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-news__featured-title {
        font-size: 1.5rem;
    }

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

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

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

    /* 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__hero-section,
    .page-news__intro-text-section,
    .page-news__latest-news-section,
    .page-news__call-to-action-section,
    .page-news__faq-section,
    .page-news__featured-article,
    .page-news__news-card,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .page-news__hero-image-wrapper,
    .page-news__featured-image-wrapper,
    .page-news__card-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news__hero-section,
    .page-news__intro-text-section,
    .page-news__latest-news-section,
    .page-news__call-to-action-section,
    .page-news__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__hero-section { padding-top: 10px !important; }
}

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

    .page-news__section-title {
        font-size: 1.8rem;
    }

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

    .page-news__featured-title {
        font-size: 1.3rem;
    }
}