/* style/news.css */

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

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

/* General section spacing */
.page-news__section-spacing {
    padding: 60px 0;
}

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

/* Typography */
.page-news h1, .page-news h2, .page-news h3 {
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-news__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.5rem); 
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-align: center;
    margin-bottom: 30px;
}

.page-news__section-title--light {
    color: var(--text-main); 
}

.page-news__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-news__description--light {
    color: var(--text-main); 
}

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

.page-news__article-title a:hover,
.page-news__list-title a:hover {
    color: var(--primary-color);
}

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

.page-news__read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Buttons */
.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #ffffff; 
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--large {
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-news__cta-button--small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; 
    overflow: hidden;
    background-color: var(--deep-green); 
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; 
    overflow: hidden;
    margin-bottom: 40px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); 
    min-height: 200px; 
    min-width: 200px;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-news__hero-content .page-news__cta-button {
    margin-top: 20px;
}

/* Featured Articles */
.page-news__featured-articles {
    background-color: var(--background);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-news__article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

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

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


/* Latest Articles */
.page-news__latest-articles {
    background-color: var(--background);
    border-bottom: 1px solid var(--divider-color);
}

.page-news__articles-list {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.page-news__list-item {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}

.page-news__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__list-image {
    width: 250px; 
    height: 150px; 
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    min-width: 200px; 
    min-height: 200px; 
}

.page-news__list-content {
    padding: 15px 20px;
    flex-grow: 1;
}

.page-news__list-title {
    font-size: 1.2em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-news__list-excerpt {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

/* CTA Section */
.page-news__cta-section {
    text-align: center;
    background-color: var(--deep-green); 
    padding: 80px 20px;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--background);
}

.page-news__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green); 
    user-select: none;
}

/* Hide default details marker */
.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;
    transition: transform 0.3s ease;
}
}