/* style/news.css */

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

/* Base styles for page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background-primary); /* Assuming body background is dark */
    line-height: 1.6;
    font-size: 1rem;
}

/* Sections */
.page-news__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

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

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

/* Titles */
.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column; /* Content after image */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* Small top padding */
    background-color: var(--color-background-primary);
}

.page-news__hero-content {
    order: 2;
    max-width: 900px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-news__hero-image-wrapper {
    order: 1;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid transparent;
    margin: 10px;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    margin: 10px;
}

.page-news__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(87, 227, 141, 0.2);
}

/* Card styles */
.page-news__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
}

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

/* Article Grid */
.page-news__latest-articles {
    background-color: var(--color-background-primary);
}

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

.page-news__article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.page-news__article-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for thumbnails */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

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

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

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

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

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

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

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

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

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

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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