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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for desktop hero */
    overflow: hidden;
}

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

.page-news__hero-content {
    max-width: 900px;
    margin-top: 30px;
    padding: 0 20px;
}

.page-news__hero-title {
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive H1 */
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* News Grid */
.page-news__news-grid,
.page-news__community-grid,
.page-news__offers-grid,
.page-news__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Styles */
.page-news__news-card,
.page-news__community-card,
.page-news__offer-card,
.page-news__guide-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-news__news-card:hover,
.page-news__community-card:hover,
.page-news__offer-card:hover,
.page-news__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__news-card-image,
.page-news__community-card-image,
.page-news__offer-card-image,
.page-news__guide-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
}

.page-news__community-card-image {
    height: 300px; /* Specific height for community cards */
}

.page-news__news-card-content,
.page-news__community-card-content,
.page-news__offer-card-content,
.page-news__guide-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 225px); /* Adjust height based on image for consistent card height */
}

.page-news__community-card-content {
    height: calc(100% - 300px); /* Adjust height based on image for consistent card height */
}

.page-news__news-card-date,
.page-news__community-card-date,
.page-news__offer-card-date,
.page-news__guide-card-date {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
}

.page-news__news-card-title,
.page-news__community-card-title,
.page-news__offer-card-title,
.page-news__guide-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-news__news-card-title a,
.page-news__community-card-title a,
.page-news__offer-card-title a,
.page-news__guide-card-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__community-card-title a:hover,
.page-news__offer-card-title a:hover,
.page-news__guide-card-title a:hover {
    color: #57E38D; /* Glow */
}

.page-news__news-card-excerpt,
.page-news__community-card-excerpt,
.page-news__offer-card-excerpt,
.page-news__guide-card-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__news-card-link,
.page-news__community-card-link,
.page-news__offer-card-link,
.page-news__guide-card-link {
    color: #2AD16F; /* A lighter green from button gradient start */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align to start */
}

.page-news__news-card-link:hover,
.page-news__community-card-link:hover,
.page-news__offer-card-link:hover,
.page-news__guide-card-link:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

/* Button Group */
.page-news__button-group {
    text-align: center;
    margin-top: 20px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0 10px; /* Spacing between buttons */
}

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

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Lighter green */
    border: 2px solid #2E7A4E; /* Border */
}

.page-news__btn-secondary:hover {
    background-color: #2E7A4E; /* Border */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
    padding-bottom: 60px;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    list-style: none; /* For details/summary */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Change + to X */
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding-top: 10px;
}

/* General image rules for content area */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

    .page-news__hero-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for smaller screens */
        padding: 0 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-news__hero-cta {
        max-width: calc(100% - 30px) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General containers and images */
    .page-news__container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__section-title {
        font-size: 2em;
        padding: 0 15px;
    }

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

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Card grid layout */
    .page-news__news-grid,
    .page-news__community-grid,
    .page-news__offers-grid,
    .page-news__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-card-image,
    .page-news__community-card-image,
    .page-news__offer-card-image,
    .page-news__guide-card-image {
        height: auto;
        max-height: 250px;
    }

    .page-news__news-card-content,
    .page-news__community-card-content,
    .page-news__offer-card-content,
    .page-news__guide-card-content {
        padding: 15px;
        height: auto;
    }

    .page-news__news-card-title,
    .page-news__community-card-title,
    .page-news__offer-card-title,
    .page-news__guide-card-title {
        font-size: 1.2em;
    }

    .page-news__news-card-excerpt,
    .page-news__community-card-excerpt,
    .page-news__offer-card-excerpt,
    .page-news__guide-card-excerpt {
        font-size: 0.9em;
    }

    /* Buttons and button containers */
    .page-news__button-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .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;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

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