/* style/news.css */

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

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

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

.page-news__section-spacing {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above text in DOM order */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-news-bg-color);
    position: relative;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop to fill space */
    min-height: 200px; /* Min size */
}

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

.page-news__hero-title {
    font-size: 3.2em;
    color: var(--page-news-gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

.page-news__hero-description {
    font-size: 1.2em;
    color: var(--page-news-text-main);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn-primary {
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--page-news-glow-color) inset;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 25px var(--page-news-glow-color) inset;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--page-news-primary-color);
    border: 2px solid var(--page-news-primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* About Section (General News Intro) */
.page-news__about-section p {
    text-align: justify;
    margin-bottom: 15px;
}

/* Categories Section */
.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__category-item {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-news-border-color);
    min-height: 400px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-news__category-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Min image size for content */
}

.page-news__category-title {
    font-size: 1.6em;
    color: var(--page-news-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-news__btn-text {
    color: var(--page-news-gold-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-news__btn-text:hover {
    color: var(--page-news-glow-color);
}

.page-news__arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-news__btn-text:hover .page-news__arrow {
    transform: translateX(5px);
}

/* Latest News Section (News List) */
.page-news__news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

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

.page-news__card-title {
    font-size: 1.4em;
    color: var(--page-news-text-main);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
    flex-grow: 1;
}

.page-news__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--page-news-primary-color);
}

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

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-news__read-more {
    color: var(--page-news-gold-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

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

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

.page-news__view-all-btn {
    min-width: 250px;
}

/* Why Follow Section */
.page-news__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-news__benefit-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--page-news-primary-color);
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--page-news-text-main);
}

.page-news__benefit-item strong {
    color: var(--page-news-gold-color);
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-news-text-main);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-item summary {
    list-style: none;
}

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

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

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

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

.page-news__faq-answer p {
    margin: 0;
    padding: 0;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--page-news-deep-green);
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin: 60px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--page-news-border-color);
}

.page-news__cta-content {
    padding: 0;
}

.page-news__cta-title {
    font-size: 2.8em;
    color: var(--page-news-gold-color);
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-news__cta-description {
    font-size: 1.15em;
    color: var(--page-news-text-main);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Dark background for contrast */
.page-news__dark-bg {
    background-color: var(--page-news-deep-green);
    color: var(--page-news-text-main);
}

.page-news a {
    color: var(--page-news-gold-color);
    text-decoration: none;
}

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

/* --- Responsive Styles --- */

/* Mobile/Tablet General */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__cta-title {
        font-size: 2.2em;
    }

    .page-news__category-grid,
    .page-news__news-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-news__card-image {
        height: 180px;
    }

    .page-news__hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__section-spacing {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-news__hero-image-wrapper {
        max-height: none;
        margin-bottom: 30px;
    }

    .page-news__hero-image {
        object-fit: contain; /* Prevent cropping on mobile */
        aspect-ratio: unset;
        max-height: none;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-news__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Buttons general for mobile */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Button containers mobile */
    .page-news__hero-cta-buttons,
    .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: 0px;
        padding-right: 0px;
        flex-wrap: wrap !important; /* Ensure multiple buttons wrap */
        gap: 10px;
        display: flex;
        flex-direction: column; /* Force vertical stacking for multiple buttons */
    }

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

    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Categories Section */
    .page-news__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__category-item {
        padding: 20px;
        min-height: auto;
    }

    .page-news__category-image {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 200px;
    }

    /* Latest News Section */
    .page-news__news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__card-image {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 200px;
    }

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

    .page-news__card-title {
        font-size: 1.2em;
    }

    .page-news__card-excerpt {
        font-size: 0.9em;
    }

    .page-news__view-all-container {
        margin-top: 30px;
    }

    /* Why Follow Section */
    .page-news__benefits-list {
        margin-top: 30px;
    }

    .page-news__benefit-item {
        font-size: 0.95em;
        padding: 15px 20px;
    }

    /* FAQ Section */
    .page-news__faq-question {
        font-size: 1.05em;
        padding: 15px 20px;
    }

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

    /* CTA Section */
    .page-news__cta-section {
        padding: 50px 15px;
        margin: 40px auto;
    }

    .page-news__cta-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-news__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* General image responsive styles for content area */
    .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__category-item,
    .page-news__news-card,
    .page-news__faq-item,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust padding for elements that are already within a container with padding */
    .page-news__hero-content,
    .page-news__cta-content {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__news-list,
    .page-news__category-grid,
    .page-news__faq-list,
    .page-news__benefits-list {
        padding-left: 0;
        padding-right: 0;
    }
}