/* style/news.css */
.page-news {
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-news__hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 30px;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Ensure button minimum size */
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-news__btn-secondary {
    background: #11271B; /* Custom Card BG */
    color: #57E38D; /* Custom Glow */
    border: 2px solid #2E7A4E; /* Custom Border */
}

.page-news__btn-secondary:hover {
    background: #2E7A4E; /* Custom Border on hover */
    color: #F2FFF6; /* Custom Text Main */
    transform: translateY(-3px);
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #F2FFF6; /* Custom Text Main */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #57E38D; /* Custom Glow */
    border-radius: 2px;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Custom Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Custom Deep Green for contrast */
}

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

.page-news__article-card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px 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(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__card-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;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-news__article-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Custom Text Secondary */
    flex-grow: 1;
}

.page-news__view-all-button-container {
    text-align: center;
}

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
}

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

.page-news__category-card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #F2FFF6; /* Custom Text Main */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Ensure category cards are not too small */
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    background-color: #2E7A4E; /* Custom Border on hover */
}

.page-news__category-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Explicitly set to meet the minimum requirement */
    min-height: 200px;
    margin-left: auto; /* Center if smaller than container */
    margin-right: auto;
}

.page-news__category-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
}

/* Why Trust Section */
.page-news__why-trust-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Custom Deep Green */
}

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

.page-news__feature-item {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Explicitly set to meet the minimum requirement */
    min-height: 200px;
    margin-left: auto; /* Center if smaller than container */
    margin-right: auto;
}

.page-news__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 10px;
}

.page-news__feature-text {
    font-size: 1em;
    color: #A7D9B8; /* Custom Text Secondary */
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
}

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

.page-news__faq-item {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #2E7A4E; /* Custom Border */
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    transition: background-color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-item summary:hover {
    background-color: #2E7A4E; /* Custom Border on hover */
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Custom Glow */
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Custom Text Secondary */
}

/* Bottom CTA Section */
.page-news__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0A4B2C; /* Custom Deep Green */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important; /* Ensure container takes full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: unset;
    }

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

    .page-news__latest-articles-section,
    .page-news__categories-section,
    .page-news__why-trust-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        padding: 40px 0;
    }

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

    .page-news__section-description {
        font-size: 0.9em;
    }

    .page-news__article-image,
    .page-news__category-icon,
    .page-news__feature-icon,
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }

    .page-news__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}