/* style/news.css */

/* Variables for colors based on the provided palette */
:root {
    --page-news-primary: #11A84E;
    --page-news-secondary: #22C768;
    --page-news-button-gradient-start: #2AD16F;
    --page-news-button-gradient-end: #13994A;
    --page-news-card-bg: #11271B;
    --page-news-background: #08160F;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--page-news-text-main); /* Dark background, so light text */
    background-color: var(--page-news-background);
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

/* Container for max-width and centering */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    overflow: hidden; /* Ensure no overflow */
    padding-top: 10px; /* Small top padding for first section, body handles header offset */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to prevent overly tall hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: 3em;
    color: var(--page-news-gold); /* Use gold for main title for emphasis */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    /* No fixed font-size, rely on clamp if needed but for now just relative em */
}

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

/* CTA Button */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--page-news-button-gradient-start) 0%, var(--page-news-button-gradient-end) 100%);
    color: var(--page-news-text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-news__category-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--page-news-text-main);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__category-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__category-title {
    font-size: 1.5em;
    padding: 20px 15px 10px;
    margin: 0;
    color: var(--page-news-gold);
}

.page-news__category-text {
    font-size: 0.95em;
    padding: 0 15px 20px;
    color: var(--page-news-text-secondary);
    flex-grow: 1; /* Make sure text takes available space */
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
}

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

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    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.3);
}

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-news__article-date {
    font-size: 0.85em;
    color: var(--page-news-text-secondary);
    margin-bottom: 10px;
    display: block;
}

.page-news__article-title-link {
    text-decoration: none;
    color: var(--page-news-text-main);
}

.page-news__article-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--page-news-text-main);
    transition: color 0.3s ease;
}

.page-news__article-title-link:hover .page-news__article-title {
    color: var(--page-news-primary);
}

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

.page-news__read-more {
    color: var(--page-news-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

/* Pagination */
.page-news__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-news__pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--page-news-card-bg);
    color: var(--page-news-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-item:hover {
    background-color: var(--page-news-primary);
    color: #ffffff;
}

.page-news__pagination-item--active {
    background-color: var(--page-news-primary);
    color: #ffffff;
}

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

.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-news__benefit-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-news__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-news__benefit-title {
    font-size: 1.3em;
    color: var(--page-news-gold);
    margin-bottom: 15px;
}

.page-news__benefit-text {
    font-size: 0.95em;
    color: var(--page-news-text-secondary);
}

/* Process Section */
.page-news__process-section {
    padding: 80px 0;
}

.page-news__process-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--page-news-text-secondary);
}

.page-news__process-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-news__process-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-news__process-item {
    background-color: var(--page-news-card-bg);
    border-left: 5px solid var(--page-news-primary);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-news__process-step-title {
    font-size: 1.4em;
    color: var(--page-news-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

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

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-news-text-main);
    cursor: pointer;
    background-color: var(--page-news-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-question:hover {
    background-color: rgba(var(--page-news-primary), 0.1); /* Lighter hover effect */
}

.page-news__faq-qtext {
    flex-grow: 1;
    color: var(--page-news-text-main);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--page-news-primary);
    margin-left: 15px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.5em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-news__hero-content {
        padding: 0 15px;
    }

    .page-news__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__category-section,
    .page-news__latest-articles,
    .page-news__benefits-section,
    .page-news__process-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

    .page-news__categories-grid,
    .page-news__articles-grid,
    .page-news__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__category-card,
    .page-news__article-card,
    .page-news__benefit-item,
    .page-news__process-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-news__category-image,
    .page-news__article-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* Buttons */
    .page-news__cta-button {
        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__pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

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