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

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

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

.page-news__section-title {
    font-size: clamp(2em, 5vw, 2.8em);
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-news__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    border: none;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.page-news__hero-title {
    font-size: clamp(2.5em, 6vw, 3.5em);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.1;
}

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

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-news__category-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.page-news__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-news__category-icon {
    width: 100%;
    max-width: 150px; /* Small icon size constraint override */
    height: auto;
    margin-bottom: 15px;
    display: block;
    border-radius: 8px;
}

.page-news__category-name {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-main-color);
}

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

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

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

.page-news__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-news__article-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-main-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__article-date {
    font-size: 0.85em;
    color: var(--text-secondary-color);
    opacity: 0.8;
}

.page-news__button-group {
    text-align: center;
    margin-top: 50px;
}

/* Updates Section */
.page-news__updates-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-news__updates-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__update-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.page-news__update-item:hover {
    background-color: var(--deep-green-color);
}

.page-news__update-date {
    font-size: 0.9em;
    color: var(--gold-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-news__update-text {
    font-size: 1.1em;
    color: var(--text-main-color);
}

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

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

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

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

.page-news__faq-item summary:hover {
    background-color: var(--deep-green-color);
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

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

/* Newsletter Section */
.page-news__newsletter-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-news__newsletter-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-news__newsletter-content {
    flex: 1;
    text-align: left;
}

.page-news__newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.page-news__newsletter-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main-color);
    font-size: 1em;
    box-sizing: border-box;
}

.page-news__newsletter-input::placeholder {
    color: var(--text-secondary-color);
    opacity: 0.7;
}

.page-news__newsletter-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__newsletter-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 10px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-section,
    .page-news__categories-section,
    .page-news__articles-section,
    .page-news__updates-section,
    .page-news__faq-section,
    .page-news__newsletter-section,
    .page-news__contact-section {
        padding: 40px 0;
    }

    .page-news__hero-section {
        padding-top: 10px !important;
    }

    .page-news__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-news__hero-description {
        font-size: 1em;
    }

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

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

    .page-news__article-image {
        height: auto;
        max-height: 200px;
    }

    .page-news__newsletter-section .page-news__container {
        flex-direction: column;
        text-align: center;
    }

    .page-news__newsletter-content {
        text-align: center;
        margin-bottom: 30px;
    }

    .page-news__newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .page-news__newsletter-input,
    .page-news__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 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-image-wrapper,
    .page-news__newsletter-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex for wrapping if multiple buttons */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}