/* style/news.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

.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;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-news__hero-content {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
    z-index: 1;
    position: relative;
}

.page-news__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gold-color);
    margin-bottom: 20px;
}

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

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

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

.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-news__latest-articles {
    padding: 80px 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-news__article-card {
    background-color: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-news__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 20px;
}

.page-news__article-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

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

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

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

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

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

.page-news__featured-news {
    padding: 80px 20px;
    background-color: var(--background-color);
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-news__featured-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

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

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

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

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

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

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

.page-news__about-news {
    padding: 80px 20px;
    background-color: var(--deep-green-color);
    color: var(--text-main);
}

.page-news__about-description {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-news__faq-section {
    padding: 80px 20px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
}

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

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

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

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

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

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

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

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

.page-news__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

.page-news__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--deep-green-color);
}

.page-news__cta-title {
    font-size: 2em;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-news__featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-news__hero-content {
        margin-top: 20px;
    }
    .page-news__main-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__article-title {
        font-size: 1.1em;
    }
    .page-news__featured-title {
        font-size: 1.3em;
    }
    .page-news__about-description, .page-news__cta-description {
        font-size: 0.95em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
    .page-news__faq-answer {
        font-size: 0.9em;
    }
    
    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__article-card,
    .page-news__featured-item,
    .page-news__latest-articles,
    .page-news__featured-news,
    .page-news__about-news,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__articles-grid,
    .page-news__featured-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Mobile button responsiveness */
    .page-news__cta-button,
    .page-news__read-more {
        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__view-all-wrapper {
        padding: 0 15px;
    }
}